Create a python program for the give Queue and Deque operation. By Using Python Megan owns a small neighborhood coffee shop, and she has six employees who work as baristas (coffee bartenders). All of the employees have the same hourly pay rate. Megan has asked you to design a program that will allow her to enter the number of hours worked by each employee and then display the amounts of all the employees’ gross pay. You determine that the program should perform the following steps: 1. For each employee: get the number of hours worked and stores it in a list element. 2. For each list element: use the value stored in the element to calculate an employee’s gross pay.
Create a python program for the give Queue and Deque operation. By Using Python
Megan owns a small neighborhood coffee shop, and she has six employees who work as baristas (coffee
bartenders). All of the employees have the same hourly pay rate. Megan has asked you to design a program
that will allow her to enter the number of hours worked by each employee and then display the amounts of all
the employees’ gross pay. You determine that the program should perform the following steps:
1. For each employee: get the number of hours worked and stores 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.
![Program Output:
Enter the hours worked by employee 1: 40
Enter the hourly pay rate: 250
Gross pay for employee 1: Php10,000.00
Gross pay for employee 2: Php0.0o0
Gross pay for employee 3: Php0.00
Enter the hours worked by employee 2: 30
Enter the hourly pay rate: 500
Gross pay for employee 1: Php20,000.00
Gross pay for employee 2: Php15,000.00
Gross pay for employee 3: Php0.00
Enter the hours worked by employee 3: 35
Enter the hourly pay rate: 400
Gross pay for employee 1: Php16,000.00
Gross pay for employee 2: Php12,000.00
Gross pay for employee 3: Php14,000.00](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F163c5803-2512-437b-823b-d28a11636cdc%2Fa4051e9f-4332-4c03-b1b1-841a581d4cc6%2Fmtcvfal_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)