logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

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

expert
Bimla RastogiResume writing
(5/5)

550 Answers

Hire Me
expert
M. HilliardNursing
(5/5)

960 Answers

Hire Me
expert
Hiamnshu BholaData mining
(5/5)

865 Answers

Hire Me
expert
Akhil SachdevaFinance
(5/5)

985 Answers

Hire Me
C++ Programming

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.

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