Question: MIPS Program problems Write three MIPS assembly programs to solve the three problems given below. (1) Write a program that takes two inputs -(i) the
Write three MIPS assembly programs to solve the three problems given below. (1) Write a program that takes two inputs -(i) the year when a person was born and (ii) the current year. Use appropriate prompts for the user when taking these two inputs. The program should then output the approximate age of the person in years given by the birth year subtracted from the current year. (2) Write a program that takes the height of a person as input. The user prompt should say that the input must be in the unit of feet rounded off to the nearest integer. The program should then output the height of the person in inches. Information given: one foot is equal to twelve inches. (3) Write a program that takes the weight of a person as input. The user prompt should say that the input must be in the unit of pounds rounded off to the nearest integer. The program should then output the weight of the person in ounces. Information given: one pound is equal to sixteen ounces
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
