I have this Java programming problem: The technical specifications are as follows: • The missile Is
I have this Java programming problem: The technical specifications are as follows: • The missile Is fired at Mexico at 12:30PM Flies an elliptical path (with a major radius of 5000km and aminor radius of 50km) which is 15709km long. Travels each of the 180 x 1° segments in which it can betargeted by the laser in 43.635s; and • The laser Is 5000km between Mexico and Australia directly below the pathof the missile; Requires 65s to charge before it may be fired; Moves in 1° increments — where 0° is along the ground to Mexico,90° is straight up, and 180° is along the ground to Australia; Requires 35s to move 1° (and starts perpendicular to the ground,i.e. at 90°); Should only be fired at degrees in the range 1–179°; May move while being charged; and Fires instantly for an infinite distance destroying anything inits path. Given an angle t in the range of 0–180° for the directionof the laser, the position of the missile on its elliptical path isthe coordinate (x,y) where x=5000*Math.cos(r) and y=50*Math.sin(r).r is the value t converted to radians and the conversion can bedone with a built-in method: r=Math.toRadians(t); If the missile will be at this coordinate at the time the laseris aiming there then this is a firing solution. Firing solutions consist of: • the time the laser should be fired; • the degree at which the laser should be aimed; and • the resulting coordinate at which impact with the missilewould occur . . .