Question: 3. Create a program called Lab9C that will calculate an employee's pay for the week. Ask the user for the employee's pay rate and the

 3. Create a program called Lab9C that will calculate an employee's

3. Create a program called Lab9C that will calculate an employee's pay for the week. Ask the user for the employee's pay rate and the total hours that the employee worked during the week. (I recommend making the variables for these doubles.) If totalHours is greater than 40 then o regular Hours = 40 o calculate how many overtime hours they worked (hours over 40), o calculate regular pay as 40 pay rate o calculate overtime pay as overtime hours pay rate 1.5 o totalPay is overtime pay + regular pay o print the output as follows: regHours regular and overtime Hours overtime at payRate totalPay else do the following o regularHours = totalHours o Calculate total pay as total hours pay rate o print the output as follows: regHours regular at payRate = totalPay 20 E- ch arch

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!