Question: Please write the code for the program in MIPS assembly using MARS (Compiler) to find the time of flight seconds, maximum height in feet, and

 Please write the code for the program in MIPS assembly using

Please write the code for the program in MIPS assembly using MARS (Compiler) to find the time of flight seconds, maximum height in feet, and angle trajectory in degrees for taking the input range in yards with a maximum range of 24 miles. There are no trig function in MARS and make sure the unit conversions are correct. Thank you.

ENIAC (Electronic Numerical Integrator and Computer) was on of the first general purpose computers and was developed primarily to calculate artillery firing tables used by Naval ships and Army artillery cannons. The benefit of ENIAC was the increase of performance compared to hand calculations, increasing the speed of calculations from 20 hours to 30 seconds (not including 'programming' time). The main 16-inch guns on the USS Missouri (BB-63) shoot a 2700-pound projectile at initial velocity of 2500 foot per second and have a maximum range of 24 miles. Given the information above and your knowledge from physics write a program in MARS MIPS that takes a user's input for range ( R) in yards and print out the Time-of-Flight (tflight) in seconds, Maximum Height reached (hMAX) in feet, and the Angle Trajectory (0) in degrees. Neglect the effects of air-resistance and curvature of the earth. tflight=g2v0sinhMAX=2gv02sin2R=gv02sin2

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!