Answered step by step
Verified Expert Solution
Link Copied!

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-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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions

Question

mple 10. Determine d dx S 0 t dt.

Answered: 1 week ago