Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Struct Payroll assign. C program. Date struct : https://www.chegg.com/homework-help/questions-and-answers/-q35573302?trackid=5pZZP961 Program Specifications: You are to DESIGN and WRITE a menu driven program as shown: A. Enter
Struct Payroll assign. C program.
Date struct : https://www.chegg.com/homework-help/questions-and-answers/-q35573302?trackid=5pZZP961
Program Specifications: You are to DESIGN and WRITE a menu driven program as shown: A. Enter a payroll record for one person B. Display all paycheck stubs C. Displav total gross and net payroll from all pav records. D. Quit program The program will bring in the DATE struct from the previous assignment. It should also bring in the functions relating to a DATE The program will create a PAYROLL struct with the following fields: typedef struct\ char name[100]; int age; float hrlyWage; float hrs Worked; float regPay; float otPay; float totalPay; DATE payDate; PAYRECORD; Assumptions: .The program will store between 0 and 100 payroll records. . The user will input employee name, pay date, hours worked an hourly rate of pay . All employees are hourly Employees get paid every week. Overtime pay will be calculated as time and a half. .You will validate all input data: o Dates must be a real date oHours worked must be more than zero and less than 100 o Age must be 18 to 120 o Hourly rate must be more than zero and less than 500 Bonus: You will receive a 25-point bonus if your program stores all payroll data and load in stored payroll data Submission Requirements: Requirements will be same as the first assignment which will be the same for all future assignments, YOU CANNOT .Use global variables, in this or any program ever .Use goto statement(s), in this or any program ever. .Email your work to Dennis, in this or any program ever. Program Specifications: You are to DESIGN and WRITE a menu driven program as shown: A. Enter a payroll record for one person B. Display all paycheck stubs C. Displav total gross and net payroll from all pav records. D. Quit program The program will bring in the DATE struct from the previous assignment. It should also bring in the functions relating to a DATE The program will create a PAYROLL struct with the following fields: typedef struct\ char name[100]; int age; float hrlyWage; float hrs Worked; float regPay; float otPay; float totalPay; DATE payDate; PAYRECORD; Assumptions: .The program will store between 0 and 100 payroll records. . The user will input employee name, pay date, hours worked an hourly rate of pay . All employees are hourly Employees get paid every week. Overtime pay will be calculated as time and a half. .You will validate all input data: o Dates must be a real date oHours worked must be more than zero and less than 100 o Age must be 18 to 120 o Hourly rate must be more than zero and less than 500 Bonus: You will receive a 25-point bonus if your program stores all payroll data and load in stored payroll data Submission Requirements: Requirements will be same as the first assignment which will be the same for all future assignments, YOU CANNOT .Use global variables, in this or any program ever .Use goto statement(s), in this or any program ever. .Email your work to Dennis, in this or any program everStep 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