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.
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...
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...
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...
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...
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...
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...
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.
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...