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 15:10
Two flowing streams of argon gas are adiabatically mixed to form a single flow/stream. one stream is 1.5 kg/s at 400 kpa and 200 c while the second stream is 2kg/s at 500 kpa and 100 ? . it is stated that the exit state of the mixed single flow of argon gas is 150 c and 300 kpa. assuming there is no work output or input during the mixing process, does this process violate either the first or the second law or both? explain and state all your assumptions.
Answers: 1
question
Engineering, 03.07.2019 15:10
Ahouse has the following electrical appliance usage (1) single 40w lamp used for 4 hours per day (2) single 60w fan used for 12 hours per day (3) single 200w refrigerator that runs 24 hours per day with compressor run 12 hours and off 12 hours find the solar power inverter size in watt with correction factor of 1.25.
Answers: 1
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 16:10
An electrical motor raises a 50kg load at a construct velencity .calculate the power of the motor, if it takes 40sec to raise the load through a height of 24m(take g =9.8n/g)
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, 02.10.2019 20:40
Questions on the website: 13722367