Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

STEP 3 : Update time card & calculate payAt the end of each work week, the employee must add the number of minutes worked for

STEP 3: Update time card & calculate payAt the end of each work week, the employee must add the number of minutes worked for each day. Create a methods that will perform the following operations:allows the user to add # of min worked for each day during a Sun - Sat work weekcalculates the total hours worked for the weekgenerates a paystub based on $12/hr rate and clears the timecardExample output:Please select an option:1. Update Name (username will be updated automatically)2. Update Password3. Add Hours4. Print Paystub5. Exit3Please enter the time worked (in minutes) for each day of the week (Su,M,T,W,Th,Sa): 0,244,178,384,0,0,0*Katherine, your timecard has been updated.Please select an option:1. Update Name (username will be updated automatically)2. Update Password3. Add Hours4. Print Paystub5. Exit4Johnson, KatherineUsername: K_Joh-------------------------------------------------HOURS WORKEDSunday: No hours reportedMonday: 4 hrs 4 minTuesday: 2 hrs 58 minWednesday: 6 hrs 24 minThursday: No hours reportedFriday: No hours reportedSaturday: No hours reported-------------------------------------------------TOTAL PAY: $161.20Your timecard has been reset.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions