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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
Write a function that draws a pool ball. this function should take as parameters, the color, the number that should go on the pool ball, and the location of the center of the pool ball. the radius of the pool balls should be pool_ball_radius, and the font of the number should be pool_ball_font. the text of the pool ball font should be white. drawpoolball(color.orange, 5, 100, 100); drawpoolball(color.green, 6, 50, 200); drawpoolball(color.red, 3, 150, 350); drawpoolball(color.blue, 2, 250, 140); to center the numbers on the pool ball, you should use the getwidth() and getheight() methods. you are allowed to call these methods on your text object, such as txt.
Answers: 3
question
Computers and Technology, 24.06.2019 20:30
Does the query hawaiian photographers fully meets results?
Answers: 1
question
Computers and Technology, 25.06.2019 08:30
What is the chief concern of cloud computing?
Answers: 1
question
Computers and Technology, 25.06.2019 11:30
Janet has created an original musical composition, recorded it on a cd and registered her work online. which law will protect her work from any kind of infringement? a. copyright b. trademark c. patent d. trade secret
Answers: 2
You know the right answer?
John owns a small coffee shop, and he has four employees who work as baristas (coffee bartenderS). A...
Questions
Questions on the website: 13722362