Question: in java Salary: Write a program that calculates the 4-week salary of a part-time employee using nested for loops. The program will prompt the user

in java Salary: Write a program that calculates the 4-week salary ofin java

Salary: Write a program that calculates the 4-week salary of a part-time employee using nested for loops. The program will prompt the user to enter the number of hours worked each day of the week, i.e., Day 1 to Day 5. The process will be repeated for each of the four weeks. The program will keep a running total of the number of hours worked. Finally, the 4- week salary of the employee will be printed by multiplying the hourly salary with the total number of hours worked. You should declare the hourly salary as a constant (see section 3.3.5 of the textbook). A snippet of how the user input screen would look like is shown below. The values in green are entered by the user. Timesheet Entry Enter the number of hours worked Week 1: Day 1: 5 Day 2: 8 Day 3: 8 Day 4: 7 Day 5: 7 Week 2: Day 1: 2 Day 2: 3

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!