Question: ICS - 1 4 1 : Problem Solving with Java Lab 2 : Projectile Velocity Calculation Due Date: 0 1 / 1 8 / 2

ICS-141: Problem Solving with Java
Lab 2: Projectile Velocity Calculation
Due Date: 01/18/2024
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 =-9.80665(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
1100001504
2200002803
3500003005
41000002002
Directives:
1. The solution program should be named Projectile.java.
2. You are permitted to work in teams. But each student must submit his or her own individual program.
3. Test your program by using the above four different sets of input.
Turn in the following on D2L:
1. Your Java source code (Projectile.java) for the program.
2. The screenshot of the output results of the program using the four (4) different test data sets

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!