Question: DESIGN and IMPLEMENT a menu driven program that uses the following menu and can perform all menu items: Enter a payroll record for one person
DESIGN and IMPLEMENT a menu driven program that uses the following menu and can perform all menu items:
- Enter a payroll record for one person
- Display all paycheck stubs
- Display total gross payroll from all pay records.
- Quit program
The program will create a PAYRECORD struct with the following fields:
typedef struct {
char name[100];
int age;
float hrlyWage;
float hrsWorked;
float regPay;
float otPay;
float totalPay;
DATE payDate;
} PAYRECORD;
Requirements:
- The program must store between 0 and 100 payroll records.
- The user will input employee name, pay date, hours worked, and hourly rate of pay.
- All employees are paid an hourly rate.
- Employees get paid every week.
- Overtime pay will be calculated as time and a half.
- You will validate all input data:
- Dates must be a real date
- Hours worked must be more than zero and less than 100
- Age must be 18 to 120
- Hourly rate must be more than zero and less than 500 dollars
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
