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 17:00
Which of the following is not contained on the slide show toolbar? a. next button b. slide button c. close button d. pen tool
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most? a)give the file a unique name b)name the file in yymmdd format c)use descriptive name while naming the files d)use capital letters while naming the file
Answers: 3
question
Computers and Technology, 23.06.2019 15:30
1. ask the user how many questions are in the quiz. 2. ask the user to enter the key (that is, the correct answers). there should be one answer for each question in the quiz, and each answer should be an integer. e.g., 34 7 13 100 81 3 9 10 321 12 might be the key for a 10-question quiz. you will need to store the key in an array. 3. ask the user to enter the answers for the quiz to be graded. there needs to be one answer for each question. note that these answers do not need to be stored; each answer can simply be compared to the key as it is entered. 4. when the user has entered all of the answers to be graded, print the number correct and the percent correct. 5. add a loop so that the user can grade any number of quizzes with a single key. after the results have been printed for each quiz, ask "grade another quiz? (y/n)." note: you only have one array (the key). you are not creating a new key for each set of quiz answers.
Answers: 3
question
Computers and Technology, 24.06.2019 21:00
When replacing a thermostat or water pump, coolant drained from the cooling system should be
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
question
English, 03.02.2022 21:30
question
Chemistry, 03.02.2022 21:30
question
Mathematics, 03.02.2022 21:40
Questions on the website: 13722363