Recent content by burns12

  1. B

    How can I design a program to calculate employee hours and pay?

    I just cannot see how to get these string values into a number I can do arithmetic with. I've tried everything I can think of, there is no way to turn a string into an int that I can think of without using libraries we haven't learned of yet.
  2. B

    How can I design a program to calculate employee hours and pay?

    Ok I get the 24 hour time thing, I think I have that function corrected now. Now about taking this string apart, can I use substrings? I tried that and can get everything extracted how I need it, but how do I get them to floats so the function will accept them? I can't type cast them can I...
  3. B

    How can I design a program to calculate employee hours and pay?

    That does help actually, it makes sense to do it like that now that I see it. But the problem is we haven't done any of that in class. I have some programming experience in java and this is c++ so I know the basics but this is killing me. We haven't done loops yet even. All we have to work with...
  4. B

    How can I design a program to calculate employee hours and pay?

    Homework Statement I have to design a program that will calculate the hours worked by an employee in one day. Then calculate how much money they made that day, including overtime. You enter the times and the pay rate. Overtime pay is 1.5 normal. For example start: 8:50 A end: 11:10 P pay...
  5. B

    Matlab Bode Plots: 1st Order High Pass & 2nd Order Band Reject

    Homework Statement In Matlab create bode plots for a first-order high-pass filter (with G at infinity = 2 and fc= 1 kHz) in series with a second order band-reject filter (with f0= 5000 Hz, B = 500 Hz, and GDC= G at infinity = 1 ). Homework Equations High pass TF = -jwCiRf/1+jwCiRi...
  6. B

    ROM Troubleshooting and K-Maps: 16x4 ROM Truth Table Homework Problem

    Alright good, I thought I knew how to do these and this completely threw me off. I'll ask him for it tomorrow. Thanks
  7. B

    ROM Troubleshooting and K-Maps: 16x4 ROM Truth Table Homework Problem

    Homework Statement a) complete the table for the 16 x 4 ROM shown and indicate on the diagram how the inputs and outputs are connected to the ROM. b) Show your K-maps for functions F, G, and H and complete diagram on following page. Note that only 8 product terms are needed. Homework...
  8. B

    Capacitive Keyboard: Calculating Effective Capacitance and Charge Transfer

    Ahhh ok, that's what I was missing. Now I feel dumb haha Thanks though. I'll see if I can scramble my way through it now.
  9. B

    Capacitive Keyboard: Calculating Effective Capacitance and Charge Transfer

    Homework Statement On one capacitative keyboard, each key has a capacitor bottom plate 7[mm]×7[mm] with a 0.4[mm] thick sheet of mica (κ≈7) on top of it; the capacitor top plate is the same size, glued to the key bottom, usually 4[mm] from the bottom plate ; the bottom plate is 5[V] higher...
  10. B

    Integrating a charge along a line

    Awesome, thanks for your help, that had me stumped for 2 days now ha
  11. B

    Integrating a charge along a line

    Alright awesome I think I got it. Is the r = to sqrt(x^2 +y^2) because it's like the components of r in a sense?
  12. B

    Integrating a charge along a line

    Thanks! Ok so, the y comes into play as a distance on the y-axis that this dq charge is going to affect? And do I integrate the dV = k*dq/r ? Or do I sub in λdx for dq and then integrate with respect to x to find dV? I'm still not sure where this distance y would come into this.
  13. B

    Integrating a charge along a line

    Homework Statement total charge Q = 200[nC] is spread along a line from x=−100[mm] to x=+100[mm] . a) write the dV caused by each dQ=λ dx . b) integrate along the line of charge ; write V as a function of y . c) take the derivative with y , to obtain that component of...
Back
Top