Question: Write the program in MIPS code in MARS (MARS is a compiler where there are no sin, arcsin, cos, tan, arctan, li.s functions), maybe can

Write the program in MIPS code in MARS (MARS is a compiler where there are no sin, arcsin, cos, tan, arctan, li.s functions), maybe can use taylor series expression. Please write a program in MIPS code but only using MARS compiler and give the angle trajectory in degrees, maximum height in feet, time of flight in seconds, and takes the range in yards?
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
Get step-by-step solutions from verified subject matter experts
