Answered step by step
Verified Expert Solution
Question
1 Approved Answer
ICS - 1 4 1 : Problem Solving with Java Lab 2 : Projectile Velocity Calculation Due Date: 0 1 / 1 8 / 2
ICS: Problem Solving with Java
Lab : Projectile Velocity Calculation
Due Date:
Given the initial height and the initial velocity of a projectile, the current velocity and height can be
determined mathematically at any given point in time. Implement a program using the Java language to
calculate current height and velocity of a projectile using the information provided below.
The program prompts the user to enter the initial height, the initial velocity, and the time elapsed since
the projectile was launched. The value for acceleration due to gravity is a constant provided below.
The formulae for calculating the current height and current velocity are given below:
Where:
Acceleration in meters per second squared
Time The time elapsed since launch in seconds
Initial Velocity The velocity at the start of flight in meters per second
Initial Height The height at the time of launch in meters
Height The estimated height at any given point in time during flight in meters
Velocity The estimated velocity at any given point in time during flight in meters per second
You can use the following test data sets:
Test Number Initial Height Initial Velocity Time
Directives:
The solution program should be named Projectile.java.
You are permitted to work in teams. But each student must submit his or her own individual program.
Test your program by using the above four different sets of input.
Turn in the following on DL:
Your Java source code Projectilejava for the program.
The screenshot of the output results of the program using the four different test data sets
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started