Question: Write a MIPS Assembly Language Program to calculate the area of geometric shapes. Read two sides (base and height) of a shape. Display a menu
Write a MIPS Assembly Language Program to calculate the area of geometric shapes. Read two sides (base and height) of a shape. Display a menu given below: 1. Area of Square 2. Area of Rectangle 3. Area of Triangle Read the choice (1 or 2 or 3) from the user. Based on the choice calculate and print the area. If the user enters invalid choice print an error message. Area of Square = base? or height? Area of Rectangle = base * height Area of Triangle = (base*height)/2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
