Question: Need help with MIPS programs Problem 1. An employer needs software that will calculate a single week's wage for an employee. The week's wage is
Problem 1. An employer needs software that will calculate a single week's wage for an employee. The week's wage is calculated as the regular wage plus the overtime wage. If an employee works for 40 hours or less, then all those hours are considered regular time. If the employee works more than 40 hours, the extra hours over 40 hours are considered as overtime. The regular wage is regular time multiplied by the hourly wage rate and the overtime wage is overtime multiplied with twice the hourly wage rate. Your program must take two inputs, both of which can be assumed to be integers: total hours worked in the week, and hourly wage rate. The output must be the total wage for the week as shown below in the samples. Two sample input outputs are shown below with computer output italicized and user input in bold and underline Enter hours worked in a week: 35 Enter hourly wage rate in dollars: 10 The total wage for the week is $350 Enter hours worked in a week: 50 Enter hourly wage rate in dollars: 20 The total wage for the week is $1200
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
