Question: C++ please help Write a program that calculates salaries for 200 employees. The program prompts the user to enter the employees name, such as Joe

C++ please help

Write a program that calculates salaries for 200 employees. The program prompts the user to enter the employees name, such as Joe Donovan, and the number of hours worked, an integer. It then calculates the salary as described below, and finally, it writes the employees name, hours and the salary to an output file named sal.txt. It repeats all these steps for all (200) employees.

This program calculates salaries on the basis of $20.00 per hour for not more than 40 hours, and $24.25 per hour for all hours over 40. (Thus an employee who worked 42 hours would be paid for 40 hours at $20.00, and 2 more hours at $24.25).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!