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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started