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 15:50
The file sales data.xlsx contains monthly sales amounts for 40 sales regions. write a sub that uses a for loop to color the interior of every other row (rows 3, 5, etc.) gray. color only the data area, columns a to m. (check the file colors in excel.xlsm to find a nice color of gray.)
Answers: 2
question
Computers and Technology, 22.06.2019 18:00
Write a method named addall that could be placed inside the hashintset class. this method accepts another hashintset as a parameter and adds all elements from that set into the current set, if they are not already present. for example, if a set s1 contains [1, 2, 3] and another set s2 contains [1, 7, 3, 9], the call of s1.addall(s2); would change s1 to store [1, 2, 3, 7, 9] in some order. you are allowed to call methods on your set and/or the other set. do not modify the set passed in. this method should run in o(n) time where n is the number of elements in the parameter set passed in.
Answers: 2
question
Computers and Technology, 22.06.2019 18:30
What is outfitting a workplace with video in a technology
Answers: 2
question
Computers and Technology, 22.06.2019 19:30
When using a public computer or network, you should always
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
question
Mathematics, 26.11.2019 19:31
question
Mathematics, 26.11.2019 19:31