Question
Create an assembly program using the MIPS instruction set that prompts the user enter an employees hourly wage and the number of hours they worked.
Create an assembly program using the MIPS instruction set that prompts the user enter an employees hourly wage and the number of hours they worked. The program will then display their paycheck amount. (Well ignore taxes, deductions, etc.) Both the hourly wage and number of hours must be greater than zero. If the user enters a wage or number of hours less than or equal to zero, prompt the user to try again.
The prompts and output text printed should closely match those in the sample output shown above. The above example shows two incorrect inputs for both prompts. Your program should be able to accept a valid input on the first try or perpetually prompt for a valid input. Both the wage and hours should be stored as floating-point numbers; Do not worry about rounding the result. You do not have to print an error message, but you are welcome to include a Try Again type of message for invalid inputs. Be sure to use comments to document your assembly code.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started