Question: Create an assembly program using the MIPS instruction set that prompts the user enter an employee's hourly wage and the number of hours they worked.

Create an assembly program using the MIPS instruction set that prompts the user enter an employee's hourly wage and the number of hours they worked. The program will then display their paycheck amount. (We'll 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. Sample Input/Output Please enter the employee's hourly wage: -7.99 Please enter the employee's hourly wage: 0 Please enter the employee's hourly wage: 15.50 Please enter the hours worked: 0 Please enter the hours worked: -17 Please enter the hours worked: 37.5 The employee's total pay is $581.25000000 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. . Create an assembly program using the MIPS instruction set that prompts the user enter an employee's hourly wage and the number of hours they worked. The program will then display their paycheck amount. (We'll 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. Sample Input/Output Please enter the employee's hourly wage: -7.99 Please enter the employee's hourly wage: 0 Please enter the employee's hourly wage: 15.50 Please enter the hours worked: 0 Please enter the hours worked: -17 Please enter the hours worked: 37.5 The employee's total pay is $581.25000000 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
Get step-by-step solutions from verified subject matter experts
