logo Use SA10RAM to get 10%* Discount.
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Belu DepetrisManagement
(5/5)

576 Answers

Hire Me
expert
Peck KellerTechnical writing
(5/5)

961 Answers

Hire Me
expert
Eusebio JayCriminology
(5/5)

861 Answers

Hire Me
expert
StatAnalytica ExpertStatistics
(5/5)

824 Answers

Hire Me
C++ Programming

you will create a driver (main) that will handle the personnel records for a company and generate a report.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Instructions

This assignment uses two classes that utilize the concept of aggregation. One class will be called TimeOff. This class makes use of another class called NumDays. Then you will create a driver (main) that will handle the personnel records for a company and generate a report.

TimeOff class will keep track of an employee’s sick leave, vacation, and unpaid time off. It will have appropriate constructors and member functions for storing and retrieving data in any of the member objects.

Data members of TimeOff:

  • name as string – name of employee
  • empNum as integer – employee ID
  • maxSickDays as NumDays
  • sickTaken as NumDays
  • maxVacation as NumDays
  • vacTaken as NumDays
  • maxUnpaid as NumDays
  • unpaidTaken as NumDays

 

Validation:

  • Company policy states an employee may not accumulate more than 240 hours of paid vacation. So, once at 240 hours, they stop earning.
  • Employee should not be able to take more vacation time than what is earned.
  • Employee should not be able to take more sick time than what is earned.
  • Employee should not be able to take more unpaid time than what is earned

 

Required Methods:

  • A constructor default
  • A constructor with parameters for all the data members
  • Accessors and mutators for all data members.
  • Overload the << operator which will output the report about the employee. The vacation, sick and unpaid information.

 

NumDays class is to store a value that represents a number of hours which is also converted to the number of days the hours are equivalent to. Every 8 hours is converted to 1 day. So 12 hours is converted to 1.5 days for example.

 

Data members of NumDays:

  • hours as double
  • days as double

 

Required Methods:

 

  • A constructor with a parameter for the number of hours.
  • Accessors and Mutators for all data members.
  • Overload the addition operator (+)
  • Overload the subtraction operator(-)
  • Overload the Prefix and Postfix increment operator (++)
  • Overload the Prefix and Postfix decrement operator(--)

Main will create an instance of the TimeOff class to represent one employee. The program does not need to ask the user for input. The program should increase and decrease the amount of vacation time, sick time and unpaid time. Showing that all the requirements are met. In other words, create a test plan.

Then create a second instance of TimeOff and assign the first instance of TimeOff to the second. Show both reports to show they are the same.

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme

Get Free Quote!

436 Experts Online