Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

*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:

  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 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

More Books

Students also viewed these Databases questions

Question

(8) What am I doing to stretch the high achievers?

Answered: 1 week ago

Question

Why dont we include revenue in this visualization?

Answered: 1 week ago