Write an object-oriented java program to draw trajectories


Assignment

Purpose: The purpose of this assignment is to solve real world problem using Java.

Write an object-oriented Java program to draw trajectories of rockets using some values from file. The file contains several lines of data, the first of which is a number telling us how many rockets North Korea wants to launch. The next n lines contain the data for each launch and each line consists three numbers. The first number is the velocity of the rocket right after launch and the fuel source is cut off (assume that the height above ground is negligible). The next number is the angle at which the rocket will be launched. And the last number is the distance to the target. Velocity and distance are in meters per second and kilometers respectively (so remember to convert units!!!!).

Your task is to calculate whether each rocket launch is capable of reaching its' target, draw trajectory (using arches), and if the rocket will not reach its' target draw a happy face, and if the rocket is capable of reaching its' target, draw a sad face (you can assume that the rockets have a gyroscope in them, so if the distance it can travel is greater than the distance to the target, that is considered on target).

Attachment:- Input-File.rar

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write an object-oriented java program to draw trajectories
Reference No:- TGS02686499

Expected delivery within 24 Hours