Question: 1. I need a full develop flowchart and 2. Please Write the program in C++ language using simple terms that can be understood by beginners.
1. I need a full develop flowchart and
2. Please Write the program in C++ language using simple terms that can be understood by beginners. Thank you!
(Additions: Read employee info from file "employees.txt", write the output to the screen and also to output file "payroll.txt". Process at least 20 employees, print the average gross pay and the total gross pays. )
Multipurpose Payroll Write a program that calculates pay for either an hourly paid worker or a salaried worker. Hourly paid workers are paid their hourly pay rate times the number of hours worked. Salaried workers are paid their regular salary plus any bonus they may have earned. The program should declare two structures for the following data: Hourly Paid: Hours Worked HourlyRate Salaried: Salary Bonus The program should also declare a union with two members. Each member should be a structure variable: one for the hourly paid worker and another for the salaried worker. The program should ask the user whether he or she is calculating the pay for an hourly paid worker or a salaried worker. Regardless of which the user selects, the appropri- ate members of the union will be used to store the data that will be used to calculate the pay Input Validation: Do not accept negative nunbers. Do not accept values greater than 80 for Hours WorkedStep by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
