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, 04.07.2019 16:10
The force on a cutting tool are 2600n vertically downward and 2100 horizontal. determine the resultant force acting on the tool and the angle at which it acts.
Answers: 1
question
Engineering, 04.07.2019 18:10
At 12 noon, the count in a bacteria culture was 400; at 4: 00 pm the count was 1200 let p(t) denote the bacteria cou population growth law. find: (a) an expression for the bacteria count at any time t (b) the bacteria count at 10 am. (c) the time required for the bacteria count to reach 1800.
Answers: 1
question
Engineering, 04.07.2019 18:10
Burgers vector is generally parallel to the dislocation line. a)-true b)-false
Answers: 2
question
Engineering, 04.07.2019 18:10
The higher the astm grain size number, the finer the gran is. a)-true 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
Mathematics, 27.09.2020 03:01
question
History, 27.09.2020 03:01
question
Mathematics, 27.09.2020 03:01
Questions on the website: 13722362