Write a program for a company that determines the gross pay an employee per week. The...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
I have provided the properly commented code in both text and image format so you can easi... View the full answer
Related Book For
Posted Date:
Students also viewed these accounting questions
-
GPA Calculator (gpa_calculator.py) You've decided to build a program to track your Grade Point Average (GPA). Your program will prompt the user to enter information for each course attempted (eg....
-
Write a program for your graphing utility that graphs two vectors and their difference given the vectors in component form.
-
Write a program for beach equipment rental company that will calculate each day?
-
1. If an industry is formed by six companies. Four companies have sales of $ 10 each, and two companies have sales of $ 5 each. a. What is the concentration ratio of four companies for this industry?...
-
Which insect repellents protect best against mosquitoes? Periodically, consumer groups conduct tests to compare insect repellents (e.g., Consumer Reports, June 2000). Consider a similar study of 14...
-
Worthington Company issued $1,000,000 face value, six-year, 10% bonds on July 1, 2012, when the market rate of interest was 12%. Interest payments are due every July 1 and January 1. Worthington uses...
-
Visit the website www.nielsen.com and choose one of the reports published. Write a brief analysis of the findings and solutions presented by the report.
-
Arthur Company is considering investing in an annuity contract that will return $46,000 annually at the end of each year for 15 years. What amount should Arthur Company pay for this investment if it...
-
Colton Enterprises experienced the following events for Year 1, the first year of operation: Acquired $41,000 cash from the issue of common stock. Paid $12,600 cash in advance for rent. The payment...
-
Using lab 7 with a three-day lead time (all original values), we will analyze six different scenarios to determine which would be the best scenario based on the total cost. Scenario A - Min is 3,500...
-
T. Lannister, a sole trader, is working a few days each week because of the covid pandemic. He uses a job-order costing system and applies manufacturing overhead cost to jobs on the basis of direct...
-
(20%) The output of an argon ion laser can consist of a number of modes of frequency that match the cavity resonance condition and are within the gain bandwidth of the lasing transition. Assume the...
-
A beam of light travels from a vacuum into water at an angle of 45. The light has a frequency of 6.00 x 1014 Hz and travels at a speed of 2.26 x 108 m/s in water. The speed of light in a vacuum is...
-
A student performs a double-slit experiment using two slits spaced 0.20 mm apart and located 1.50 m from the screen. The monochromatic light source creates an interference pattern in which the...
-
Calculate the following for a 3 ft 4 ft window with the label to the right. The summer design conditions for peak cooling load are 70 and 60% RH inside; 90 and 90% outside; and a peak direct solar...
-
A car traveling 87.0 km/h is 1500 m behind a truck traveling at 74.0 km/h. How far from its initial position does the car have to travel to catch up to the truck.
-
What would be the average dislocation velocity if the single crystal is plastically deformed at a shear strain rate of 10 -3 s -1 and the total dislocation density is 10 13 m -2 ? Assume that the...
-
Suppose that you are part of a virtual team and must persuade other team members on an important matter (such as switching suppliers or altering the project deadline). Assuming that you cannot visit...
-
A tree grows at an angle of 4° from the vertical due to prevailing winds. At a point 40meters from the base of the tree, the angle of elevation to the top of the tree is 30° (see figure). (a)...
-
The ratio of carbon-14 to carbon-12 in a piece of paper buried in a tomb is R = 1/1311. Estimate the age of the piece of paper.
-
In Exercises 1-4, identify the conic. Then describe the translation of the conic from standard position. 1. (x + 2)2 + (y - 1)2 = 4 2. (y 1)2 = 4(2)(x + 2) 3. (y + 3)2 / 4 - (x -1)2 = 1 4. (x - 2)2 /...
-
Define internal combustion engine and explain how it is different from external combustion engines?
-
In an air standard Otto cycle, the pressure and temperature at the start of compression stroke are 1 bar and \(30^{\circ} \mathrm{C}\), respectively. The temperature at the end of compression is...
-
In I.C. engines, power developed inside the cylinder is known as: (a) Brake horse power (b) Indicated horse power (c) Pumping power (d) None of the above
Study smarter with the SolutionInn App