The logic is that a person falls down an elevator shaft N number of feet, climbs up U number of feet/minute, then rests for one minute and slips back down D number of feet.
So t = N - U which is...
Type: Posts; User: pass_prime
The logic is that a person falls down an elevator shaft N number of feet, climbs up U number of feet/minute, then rests for one minute and slips back down D number of feet.
So t = N - U which is...
The c is just a counter for the number of loops.. or when i wrote it in the code did i make it something else?..
Is it possible that my logic is correct but i didn't use the right statements to...
/* The Variables:
n = the initial depth
u = the height I can climb in 1 minute
d = the number of feet I slip back during rest
assume d < u and n < 100
a value...
that worked, the program now does the looping and adding, thanks, even though i have the math incorrect, i now can work on that because i can see what is happening,, many thanks for your help.
You...
I did what you said..I forgot and posted the un -edited code,, sorry for that,, now it will compile but not do the loop calculations.. this is where i am falling down,, all i need is direction of...
I run the compiler and the code is ok for that, but it won't do the calculations or the looping i think. I can't wee where i have gone wrong, and i have to hand this in on Tuesday. Can anyon e see...