Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Design a C++ program to keep track of employee data. The program should keep track of the employees name, ID number and hourly pay rate

Design a C++ program to keep track of employee data. The program should keep track of the employees name, ID number and hourly pay rate in a class called Employee. You may also store any additional data you may need, hint, you need something extra. This data will is stored in a file (user selectable) with the id number, hourly pay rate, and the employees full name (example):

17 5.25 Francis Pup

18 6.75 Kevin Solange

Additionally we would like to be able to print payroll information from data in a different file. The data is the employees id number and a number of hours that they worked (example):

17 40

18 20

18 20

As you see we can have the same number listed twice in which case that person should be paid the sum of the numbers (Kevin Solange did 40 hours work, but its listed as 20+20).

You should start by reading in the first file and storing the data as objects in a linked list. You will need to create the linked list class and the Employee data class.

Once you have read in the information from the first file, read in the second file. Ultimately we would like to print payroll information based on the hourly wage from the first file multiplied by the number of times an employee worked in the second file. How you do this is entirely up to you.

The output must be in sorted (descending; so the person who gets paid most prints first) order in the form of:

*********Payroll Information********

Francis Pup, $270

Kevin Solange, $210

*********End payroll*************

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

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

Students also viewed these Databases questions

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago