Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program for a company that determines the gross pay an employee per week. The company pays straight- time for the first 40
Write a program for a company that determines the gross pay an employee per week. The company pays "straight- time" for the first 40 hours worked by each full-time employee, and pays "time-and-half" for all hours worked in excess of 40 hours. For each part-time employee, the company pays "straight-time" for the first 10 hours and pays "time-and-half" for all hours worked in excess of 10 hours. The weekly working hours for the full-time employee is at most 60 hours and for the part-time employee is at most 30 hours. The company appoints senior and junior staff with different payment rates, the senior earns 14.175 R.O. per hour and the junior staff earns 9.15 R.O. per hour. In your program: Use appropriate variable names. Validate user input and use characters 'F', 'P', 'S', and 'J' for Full-time, Part-time, Senior, Junior employee to verify user input (as shown in Fig. 1) You should keep asking the user until a valid input is entered (as shown in Fig. 2 and Fig. 3) For output: o Use appropriate headings to display the result as shown in the sample outputs o Format your result with three decimal Name the file containing your Python source code: HW2_xxxxx.py; where xxxxx represents your own student ID. For example, a student with ID 112233 should submit a file called HW2_112233.py. Upload your Python program to Moodle
Step by Step Solution
★★★★★
3.49 Rating (162 Votes )
There are 3 Steps involved in it
Step: 1
I have provided the properly commented code in both text and image format so you can easi...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