1) In tonight's lab you worked with the program Fibonacci.txt. Using this as a guide, implement another array in addition to fibs, and call it "reversefibs." When you generate the list of Fibonacci numbers, place the numbers in reverse order in reversefibs and print out BOTH the list of Fibonacci numbers AND the reversed list of Fibonacci numbers.
2) In MIPS assembly, write a version of the following C code segment:
int A[10], B[10], C[10]
for (i=1; i < 11; i++) {
A[i] = i;
B[i] = A[i] * 2;
C[i] = A[i] * 4;
}
At the beginning of this code segment, the only values in registers are the base address of arrays A and B in registers $a1 and $a2. Avoid the use of multiplication instructions-they are unnecessary.Create the arrays in your program and run it in the MARS simulator, and hand in a printout of all arrays, and the source code.
Screenshot of the data is OK, but make sure the font is LARGE ENOUGH to read.