Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions

Question

Explain how the short run influences the costs.

Answered: 1 week ago