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 22:40
Least square fit to polynomial write a function leastsquarefit3pol that solves a linear system of equations to find a least squares fit of a third order polynomial to an experimental data set given as two row arrays. the function leastsquarefit3pol must explicitly solve a set of linear equations and cannot use polyfit. there should be no restriction on the size of the problem that can be solved.
Answers: 1
question
Computers and Technology, 23.06.2019 21:30
Write a fragment of code that reads in strings from standard input, until end-of-file and prints to standard output the largest value. you may assume there is at least one value. (cascading/streaming logic, basic string processing)
Answers: 3
question
Computers and Technology, 24.06.2019 03:30
Other - a written response, no less than arial 12-point font, to the following: of the following, which would you consider is most important to customer service goals? choose one and explain why. (1) accuracy (2) punctuality and attendance (3) courtesy (4) productivity (5) organization
Answers: 1
question
Computers and Technology, 24.06.2019 06:30
Adrawing that places all lines parallel to the z axis at an angle from the horizon is 99 ! a. an oblique drawing b. a perspective drawing c. an auxiliary view d. a one-point perspective drawing
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
Biology, 24.01.2021 16:00
question
Mathematics, 24.01.2021 16:00
question
Social Studies, 24.01.2021 16:00
question
Biology, 24.01.2021 16:00
question
Mathematics, 24.01.2021 16:00
question
Biology, 24.01.2021 16:00
question
Physics, 24.01.2021 16:00
question
Mathematics, 24.01.2021 16:00
question
Mathematics, 24.01.2021 16:00
question
World Languages, 24.01.2021 16:00
Questions on the website: 13722367