A good answer might be:The finished program is given below. | |
Complete ProgramThe complete program can be copied and pasted into NotePad, and run in the usual way.
(1/2)*G*t*t you are wrong.
This would do an integer division of 1 by 2, resulting in zero.
(2) If you translated it as 1/2*G*t*t you are wrong.
To the compiler,
this looks like the first wrong formula
(because "/" has equal precidence to "*").
A third problem is that the square has to be computed as t
multiplied by t.
| |
QUESTION 15:Now say that you wanted the table to show time increasing in steps of 0.1 seconds. Modify the program so that it does this with maximum accuracy. The user will still enter the limit in seconds. Click Here after you have answered the question |