Question
*C Programming* Outcomes: Demonstrate the ability to design a menu driven program. Demonstrate the ability to reuse previous code to create a new assignment. Demonstrate
*C Programming*
Outcomes:
- Demonstrate the ability to design a menu driven program.
- Demonstrate the ability to reuse previous code to create a new assignment.
- Demonstrate the ability to use appropriate program logic.
Program Specifications:
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 reuse the DATE struct from the previous assignment. You should also copy in the functions relating to a DATE.
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
Bonus:
You will receive a 25-point bonus if your program stores all payroll data in a file and loads in stored payroll data from that file.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started