subject
Engineering, 09.12.2021 05:00 srshelton

For each employee: a. Get the employee name from the file named employee_names. txt
b. Get the number of hours worked for the employee from the user/keyboard(input)
i. write a try/except statement to gracefully respond to a ValueError exception for hours
c. Store in hours of each employee just received from the user in “employee_names. txt” file – besides the corresponding employee name

3. Read the hours of each employee into a list from the updated file (see the snapshot above) where you added hours next to employee name. Perform the following operations on the list you have just read.
a. For each list element: use the value stored in the element to calculate an employee’s gross pay.
b. Display the amount of the gross pay.
c. Hourly rate $12.00
d. Overtime should be calculated at time and a half after 40 hours

file content:
George Thomas
Melinda Harris
Norah Jeddery
Jorge Ortiz
Samantha Gregory
Tanvi Gupta
William Edwards
Tania Gomez
Erica Sanders
Gracie Lou Freebush
Tony Montana
Obi-Wan Kenobi
Cruella De Vil
Marty McFly
Napoleon Dynamite

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Asingle-geared blanking press has a stroke of 200 mm and a rated capacity of 320 kn. a cam driven ram is assumed to be capable of delivering the full press load at constant force during the last 15 percent of a constant-velocity stroke. the camshaft has an average speed of 90 rev/min and is geared to the flywheel shaft at a 6: 1 ratio. the total work done is to include an allowance of 16 percent for friction a) estimate the maximum energy fluctuation b) find the rim weight for an effective diameter of 1.2 m and a coefficient of speed fluctuation of 0.10
Answers: 1
question
Engineering, 04.07.2019 18:10
Which of the following controllers anticipates the future from the slope of errors over time? a)-proportional b)-on/off c)-integral d)-derivative.
Answers: 2
question
Engineering, 04.07.2019 18:20
Acertain flow of air (at stp) has a velocity distribution given by v i (in ft/s). if this flow is going through a 4 ft square area in the yz-plane (centered at the origin), what is the mass flow rate (in lbm/s)?
Answers: 2
question
Engineering, 04.07.2019 18:20
Describe one experiment in which the glass transition temperature and melting temperature of a totally amorphous thermoplastic material can be determined. show the relevant experimental results in a diagram which should be properly annotated with the two temperatures clearly marked. what is likely to happen to the curve in the diagram if the amorphous polymer is replaced by a thermosetting type?
Answers: 2
You know the right answer?
For each employee: a. Get the employee name from the file named employee_names. txt
b. Get...
Questions
question
Mathematics, 02.03.2021 20:00
question
Mathematics, 02.03.2021 20:00
question
Mathematics, 02.03.2021 20:00
question
Mathematics, 02.03.2021 20:00
Questions on the website: 13722359