Question: 1. [20pts) Write console code that, given an initial velocity in m/s by the user, writes to the screen the height (in meters) of a

1. [20pts) Write console code that, given an initial velocity in m/s by the user, writes to the screen the height (in meters) of a projective launched straight up for each second from launch time (time 0) until the projectile hits the ground. The last entry should show a projectile height of 0. The height after t seconds is given by: S=vo*t - 12 *g*+^2 where g is the gravitational constant (9.8 m/sec^2), and vo is the initial velocity at time 0 (gotten from the user). The output should look something like this: Initial velocity: 60 m/s Time (seconds) Height (meters) 0 0.0 1 55.1 100.4 2 12 14.4 13 0.0 Use the double data type for calculations and velocity and height variables. User input must be validated (numeric value > 0 and within range of the double data type)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
