Engineering
Engineering, 03.03.2020 16:30, kaitlksndj

TPS (Think-Pair-Share) activity 1 Paired with the classmate sitting next to you and do the following tasks (20 minutes): 1. Load fib. s in MARS and study the code. The is the same program we worked on in Lab #6. 2. Recall that fib. s calculates the 13th Fibonacci number (n 13). Now let's make this program more generic so it will calculate the nth Fibonacci number, where n can be any number from a user input. 3. From Lab #6, we have learned how to print out statements in MIPS. Insert instructions in fib. s so that the program will print out "Please enter a number:" at the beginning of the program to prompt user for input. 4. In the program, $t3 was used to store the value of n. Now, let's read in a user input and save that value into $t3. Do a search in the MARS documentations to find out how to use syscall to read an INTEGER from a user. Again, you must store the value into $t3 5. Since the program now reads a number from a user, do we need to declare n in the. data segment of the program? How about the la and Iw instructions regarding n? Comment out those instructions so they won't mess up your program 6. Assemble the program and test it with different numbers to see if it runs correctly. (You can use the original fib. s to verify your results.)

answer
Answers: 1

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 14:10, makaylashrout77
Amass of 1.5 kg of air at 120 kpa and 24°c is contained in a gas-tight, frictionless piston-cylinder device. the air is now compressed to a final pressure of 720 kpa. during the process, heat is transferred from the air such that the temperature inside the cylinder remains constant. calculate the boundary work input during this process.
Answers: 2
image
Engineering, 04.07.2019 18:10, katelynn73
Atmospheric air has a temperature (dry bulb) of 80° f and a wet bulb temperature of 60° f when the barometric pressure is 14.696 psia. determine the specific humidity, grains/lb dry air. a. 11.4 c. 55.8 d. 22.5 b. 44.1
Answers: 1
image
Engineering, 04.07.2019 18:20, kodyclancy
Aquick transition of the operating speed of a shaft from its critical speed will whirl amplitude. (a) increase (b) limit (c) not affect (d) zero
Answers: 2
image
Engineering, 04.07.2019 18:20, karatsgrande3772
Determine the damped natural frequencies and the steady state response of a decoupled damped forced two degrees of freedom system. 10ä1 + 2q1 20q1 10 cos t; 10q2 +4q2 + 40q2 10 cos t
Answers: 3
Do you know the correct answer?
TPS (Think-Pair-Share) activity 1 Paired with the classmate sitting next to you and do the following...

Questions in other subjects:

Konu
Mathematics, 05.11.2019 16:31
Konu
English, 05.11.2019 16:31