Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions

Question

3. What strategies might you use?

Answered: 1 week ago

Question

3. Is there opportunity to improve current circumstances? How so?

Answered: 1 week ago