Question: Payroll Decision Program (In c++ ) Read the problem specification, design your solution, create and test your program. Submit your design work file, your source

Payroll Decision Program (In c++ )

Payroll Decision Program (In c++ ) Read the problem specification, design yoursolution, create and test your program. Submit your design work file, yourRead the problem specification, design your solution, create and test your program. Submit your design work file, your source code file, and your output files.

Programming Assignment: Using Selection Control statements Problem Specification; Employee Payroll Calculation The WorkHard Corporation needs a program to calculate weekly wages for each employee. The user will enter the employee's name, ID.Number, hours worked, and job classification Regular number of hours worked: 40 hours 1. The job classification of each employee determines the employee's hourly rate. The classifications are as follows Classification Hourly Rate 5.50 6.00 7.00 9.00 12.00 (use a switch statement) When an invalid Classification Type is entered, the hourly rate from classification type 1 is to be used to calculate the employee's wages and an appropriate message is to be printed after the calculated output. 2. Calculate regular pay: (use a two-way if statement) *When an employee works the regular number of hours: regular_hours hourly_rate *When an employee works more than the regular number of hours: regular_hours hourly_rate when an employee works less than the regular number of hours. hours-worked hourly-rate * 3. Calculate overtime pay: (use a two-way if statement) An employee is paid 1.5 times their regular hourly rate for all hours worked over the regular hours, otherwise, the overtime rate is 0 When an employee works more than the regular number of hours (hours_worked - regular_ hours)1.5 hourly_rate 4. An appropriate message is to be generated for any employee who works less than 40 hours or more than 60 hours. Examples Inadequate number of hours worked! or Excessive number of hours Worked! This message is to be printed after the calculated output. (Use one-way if statements) Input to this Program: 1. The Employee's Name (First & Last) 2. The Employee's ld. Number 3. The Employee's Job Classification Number 4. The Number of Hours Worked. Output From This Program:1. All User Input. 2. Number of Overtime Hours 3. Hourly Rate 4. Total Amount to be paid to the Employee 5. Any message that was generated

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!