there are lots of code snippets online for whatever you wish to do.
All you need is code for display and read, and then just do the calculation and return the result.
A ball is thrown vertically upwards with an initial speed of U metres per second. Its height H after time T seconds is given by: H= UT – 4.9T2 . Write a structured algorithm which requests U and T and prints the height of the ball after T seconds.
1 answer