Design a program WeeklyPay that prompts theuser for the name of an employee, thehourly pay, and thehours that the employee worked on each day of theweek (M-F). You MUST use aCOUNTER-CONTROLLED WHILE LOOP toread in the hours worked for each day (M-F).
An employee earns an overtime rate of time anda half for hours over 40. It is possible that an employee might notwork on a week day, but the hours worked for a day cannot benegative. You MUST validate the hours workedentered by the user with an if statement – use zero for a negativevalue.
Calculate the employee’s pay for the
PayPal Gateway not configured
PayPal Gateway not configured