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:

  1. Enter a payroll record for one person
  2. Display all paycheck stubs
  3. Display total gross payroll from all pay records.
  4. 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

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!