logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

Write a C++ program based on object-oriented principles the program must contain one or more classes

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Task:1

You have to write a program in C++ that can be used for staff holiday management.

Write a C++ program based on object-oriented principles (the program must contain one or more classes) that covers at least the following situation.

 

Initial Situation: 

You want to create a program for the staff holiday management at your college.

Each employee is entitled to 30 days off per year.

Employees who have reached the age of 50 on 1 January of the current calendar year are entitled to a holiday of 32 days.

The following data of each employee is stored in the system:

  • Surname
  • First name
  • Date of birth
  • Days of holiday already taken

When the program starts, the "database" of the holiday management is empty, the data must first be entered.

The data must only be available during runtime (no permanent storage necessary!).

Task:

Create a program that covers the following situation:

  • Staff holiday management for a maximum of 500 employees
  • Creating and deleting an employee
  • Entering the days on which the employee wants to take a holiday (must be possible more than once)
  • Search for an employee and output of his/her data and how many remaining days of holiday he/she has
  • Listing of all stored employee data

Use comments in the source code to document your program.

Task:

You are supposed to realize a program for the management of motorbikes in C++.

Initial Situation:

You are responsible for the management of motorcycles. Since all procedures are currently recorded on paper, you are to create a motorcycle management program.

The employee shall be able to manage the customers and make reservations of the motorbikes. The customer can only reserve one motorcycle at a time. There are 4 motorbikes to choose from: "Suzuki Bandit", "Honda TransAlp", "BMW F 650 GS" and "Kawasaki ZZR1400". Make sure that a motorbike is not reserved twice. When making the reservation, the customer has to enter his/her name, first name, address (street, postal code, city), year of birth, telephone number and whether he/she has a Class A driving license. If he/she does not hold an A driving licence, no motorcycle can be reserved. Once the motorcycle has been handed over, the reservation for this customer will be cancelled. The current status of "today" is to be written into the file "reservations.txt“.

 

The program must at least meet the following requirements:

Customer management:

  • Enter data. The data is to be collected via istream (>>) operator overloading.
  • Output all customer data. The output is to be done via ostream (<<) operator overloading.

 

Management of the reservations:

  • make a reservation
  • hand over the motorbike (with the customer's first and last name)

 

File management::

  • The current status of the reservations is to be written into the file "reservations.txt". If the file does not yet exist, it is to be created, otherwise the data is to be appended to the end of the file. Reading the data from the file is not required!

 

The management of customers is to be dynamic. If necessary, respective (error) Messages are to be displayed.. Use comments in the source code to document your program.

(5/5)
Attachments:

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

. 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. The LineItem class will represent an individual

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

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

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

expert
Um e HaniScience

736 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

682 Answers

Hire Me
expert
Husnain SaeedComputer science

907 Answers

Hire Me
expert
Atharva PatilComputer science

807 Answers

Hire Me

Get Free Quote!

433 Experts Online