2. Modify the provided code for the program that calculate the overtime hours to: a. calculate the weekly pay for week 1 and week 2 and b. then add them up to calculate the total pay earned for 2...


2. Modify the provided code for the program that calculate the<br>overtime hours to:<br>a. calculate the weekly pay for week 1 and week 2 and<br>b. then add them up to calculate the total pay earned for 2<br>weeks,<br>c. then calculate the amount of taxes withheld based on 18% of<br>the earned pay and<br>d. finally calculate the net pay and display the earned pay, taxes<br>withheld and the net pay (see the output below)<br>Example of output:<br>Enter hours worked: 45<br>Your overtime hours this week are:<br>Enter hours worked: 39<br>You had no overtime hours this week<br>5.0 hours<br>You paycheck summary:<br>For the last 2 weeks, you earned:<br>The total taxes Withheld:<br>$1297.50<br>$233.55<br>You net pay is:<br>$1063.95<br>

Extracted text: 2. Modify the provided code for the program that calculate the overtime hours to: a. calculate the weekly pay for week 1 and week 2 and b. then add them up to calculate the total pay earned for 2 weeks, c. then calculate the amount of taxes withheld based on 18% of the earned pay and d. finally calculate the net pay and display the earned pay, taxes withheld and the net pay (see the output below) Example of output: Enter hours worked: 45 Your overtime hours this week are: Enter hours worked: 39 You had no overtime hours this week 5.0 hours You paycheck summary: For the last 2 weeks, you earned: The total taxes Withheld: $1297.50 $233.55 You net pay is: $1063.95

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here