subject
Computers and Technology, 06.12.2021 20:20 anyar

John owns a small coffee shop, and he has four employees who work as baristas (coffee bartenderS). All of the employees have the same hourly rate. Write a program that will allow her to enter the number of hours worked by each employee, then display the amounts of all the employee's gross pay. You determine the program should perform the following steps: 1. For each employee: get the number of hours worked and store it in a list element.
2. For each list element: use the value stored in the element to calculate an employee's gross pay. Display the amount of the gross pay.
Complete the program below. Name the file lab 12.
NUM_EMPLOYEES= 4
#Create a list to hold employee hours
#YOUR CODE -FILL IN BLANK

#Get each employee's hours worked
#Fill in blanks
for in (NUM_EMPLOYEES)
print(`Enter the hours worked by employee `, index +1, `:`, sep=``, end=``)
= float(input);
#Get the hourly pay rate
#YOUR CODE -FILL IN BLANKS
pay_rate =
#Display each employee's gross pay
#YOUR CODE - FILL IN BLANKS
for in (NUMB_EMPLOYEES)
gross_pay = * pay_rate
print(`Gross pay for each employee `, index +1, ': $`, format( , `.2f`), sep=``)

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:00, taylorsamodell3217
Who is the first president to use social media as part of his campaign strategy
Answers: 1
image
Computers and Technology, 22.06.2019 19:00, sere50
Stacy works as blank. the most important soft skill she needs for this role is blank.
Answers: 3
image
Computers and Technology, 23.06.2019 00:30, devenybates
Which one of the following is the most accurate definition of technology? a electronic tools that improve functionality b electronic tools that provide entertainment or practical value c any type of tool that serves a practical function d any type of tool that enhances communication
Answers: 1
image
Computers and Technology, 23.06.2019 20:30, cristalcastro901
If an appliance consumes 500 w of power and is left on for 5 hours, how much energy is used over this time period? a. 2.5 kwh b. 25 kwh c. 250 kwh d. 2500 kwh
Answers: 1
You know the right answer?
John owns a small coffee shop, and he has four employees who work as baristas (coffee bartenderS). A...

Questions in other subjects: