Question: MIPS - Takes two inputs from the user, which are the lengths of two sides of a polygon. It adds those two lengths and prints

MIPS -

Takes two inputs from the user, which are the lengths of two sides of a polygon. It adds those two lengths and prints the sum. Your task is modify the program to make it specific to a triangle, and to print the perimeter of that triangle.

See blue highlighted.

MIPS - Takes two inputs from the user, which are the lengths

preamble: prompt1: prompt2: answer: endline: .data ascii .asciiz asciiz .asciiz asciiz .asciiz " This program, written by ," " can be used to add the length of two sides of a polygon . " "Enter the length of the first side: " # prompt message "Enter the length of the second side: " # prompt message "Sum of two side lengths is" # answer message #

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!