subject
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.)

ansver
Answers: 1

Another question on Engineering

question
Engineering, 03.07.2019 19:30
When using the ohmmeter function of a digital multimeter, the leads are placed in what position relative to the component being tested? a. parallel b. control c. series d. line
Answers: 3
question
Engineering, 04.07.2019 18:10
Aflywheel accelerates for 5 seconds at 2 rad/s2 from a speed of 20 rpm. determine the total number of revolutions of the flywheel during the period of its acceleration. a.5.65 b.8.43 c. 723 d.6.86
Answers: 2
question
Engineering, 04.07.2019 18:20
For each of the following process: a) sketch the p-v diagram, b)sketch t-s diagram, c) sketch t-v diagram, d) sketch the boundary work on one of the diagrams (a, b or c) and e) sketch the reversible heat transfer on one of the diagrams (a, b or c): 1- isobaric process from compressed liquid to superheated vapor 2- isothermal process from compressed liquid to superheated vapor 3- isentropic process from compressed liquid to superheated vapor
Answers: 3
question
Engineering, 04.07.2019 19:10
The maximum shear stress and maximum flexural stress occur at the same location along a beam subjected to a non-uniform bending load. a)-trune b)- false
Answers: 2
You know the right answer?
TPS (Think-Pair-Share) activity 1 Paired with the classmate sitting next to you and do the following...
Questions
question
Arts, 06.05.2020 20:12
question
Biology, 06.05.2020 20:12
question
Biology, 06.05.2020 20:12