Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program that will calculate the pay for an employee for the week. The user will enter the hours worked and the payrate.
Write a program that will calculate the pay for an employee for the week. The user will enter the hours worked and the payrate. (Assume that the user will enter a non-negative number for both inputs.) The program will then calculate the total pay by multiplying rate by hours. If the user worked more than 40 hours, the program will calculate overtime pay by multiplying the overtime hours * 1.5 * rate. Sample run 1 Enter hours for week: 35 Enter rate: 28.75 Total pay: 1006.25 Sample run 2 Enter hours for week: 48 Enter rate: 20.00- Base pay: 800.00 Overtime pay: .240.00 Total pay: 1040.00 ' Additional Notes: Regarding your code's standard output, CodeLab will check for case errors and will check whitespace (tabs, spaces, newlines) exactly. Sort the flowchart into the correct order. Group the same processes together. If there are duplicate processes, sort the higher letter first. 10 11 Start End W display 101 g sate B base pay calculate total pay 00ccuate vertime hours Mert re DAY l (1) play to pay RO display pay Phone Day hours calculate Racalatehase pay
Step by Step Solution
★★★★★
3.40 Rating (150 Votes )
There are 3 Steps involved in it
Step: 1
Get user input hours floatinputEnter hours for week rate floatinputEnter rate Calculate base pay and ...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