Computer Organization and Structure
Please write the following programs in MIPS assembly language.
write a program that uses a loop to calculate and print out the first ten values in the Fibonacci number sequence.
write a program to compute and display the Pascal’s triangle with given depth.
implement a calculator that can perform arithmetic operations for large signed integer numbers.
a. Write four procedures for the four basic arithmetic operations: +, -, *, /
b. Write a program that can input an expression and then use the above four procedures to evaluate this expression. The expression contains:
Ø Signed integer numbers with at most 40 digits
Ø Operators: +, -, *, /
Ø Parentheses: ()
Submission & Grading
Please demo your programs to TAs during the deadline, on the demo day please
a. hand-in your hardcopy document
b. demo and explain the programs to TAs personally
c. leave your source code as a copy on the computer
a. learn more on net, discuss with each other but write your own code
any similar homework get ZERO points without
(both the original and the copy)