Question: General Description: Write a small application to process payroll for a group of employees. The program starts by printing a logo as shown in the

 General Description: Write a small application to process payroll for a

General Description: Write a small application to process payroll for a group of employees. The program starts by printing a logo as shown in the example (you may be more creative), which includes your name. It should then open a file called "payroll.txt" for writing. When the file fails to open, the program prints "Unable to Payroll Express open payroll.txt" and exits the program (use by XXXXXX return 0; inside an if statement in main()). The program should ask the user to enter the report Enter date for report: Dec 25, 2028 date (which may have spaces) and the number of Enter number of employees: -3 employees. The number of employees should be Enter a number 1 to 5 validated to be between 0 and 50, repeating the error Enter number of employees: 51 message and prompt as shown in the example, until a Enter a number 1 to 50 valid answer is entered. Enter number of employees: 4 For each employee, the following processing occurs: Prints a blank line followed by "Employee n." where n=1,2,3... Employee 1: Enter name: Vixen Reindeer The program asks for the employee's name H-hourly S-salaried C-contractor (which may have spaces) Enter employee type: lazy It asks for the employee type (H, S or C: for Invalid entry. Enter H, S or C Hourly, Salaried or Contractor), using a Enter otrployee type 1 validation loop to repeat the question as Invalid entry. Enter H, S or C! shown when an invalid answer is entered. Enter employee type: Only the upper case value of the first letter entered is checked for correctness. Here is some C++ example code on how to get the uppercase of the first value entered: string answer; char fi cout

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!