Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Megan owns a small neighborhood coffee shop, and she has fifteen employees who work as baristas. All of the employees have the same hourly pay

Megan owns a small neighborhood coffee shop, and she has fifteen employees who work as baristas. 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:

For each employee: get the employee name from the file named employee_names.txt If file does not open as text - copy and paste contents to notepad get the number of hours worked from the employee store in employee_names file - next to the corresponding employee name read data from file and store hours worked in a list element.

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. Hourly rate $12.00 Overtime should be calculated at time and a half after 40 hours

display the amount of the gross pay

hourly rate $ 12

overtime should be calculated at time a half after 40 h

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions