(Create a java )Consider a ball is kicked at an angle e (in degrees) from the horizontal with an initial velocity vo m/s. Write a java program that ask the user for values of e and vo m/s (meter per second) and accordingly it simulates the ball movements in very short time intervals At millisecond (ms). You will take the time interval for measurements at a standard interval of At = 10 ms and determine the football position Ax and Ay (i.e. x and y coordinate). For the next iteration the new Ax and Ay will be used to update the distance. Run the simulation until the football falls back to earth. Your program computes and displays the position (x and y coordinates) and the velocity (vỵ and v,) of the football to record its dynamic-motion until it hits the ground. Calculate x and y every 10 ms but print the values every 500 ms with the format as shown in sample runs figures below.
(Create a java )Consider a ball is kicked at an angle e (in degrees) from the horizontal with an initial velocity vo m/s. Write a java program that ask the user for values of e and vo m/s (meter per second) and accordingly it simulates the ball movements in very short time intervals At millisecond (ms). You will take the time interval for measurements at a standard interval of At = 10 ms and determine the football position Ax and Ay (i.e. x and y coordinate). For the next iteration the new Ax and Ay will be used to update the distance. Run the simulation until the football falls back to earth. Your program computes and displays the position (x and y coordinates) and the velocity (vỵ and v,) of the football to record its dynamic-motion until it hits the ground. Calculate x and y every 10 ms but print the values every 500 ms with the format as shown in sample runs figures below.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images