Intro to computer science c++ finale exm

This is not my finale exam, but it is very similar. I am not shooting for 100%, only around a 80% range. The following assignment will be given to me with a template. From there I will only fill in a couple blanks.


  • Flight Class: 
  • Competencies: Object Oriented - Class creation, overload, encapsulation, mutators and accessors
  • Your task: Create a Flight class , which will contain all the information of a round-trip flight with:
  • 1.1 At least 2 constructors. One of them is the default constructor (without parameters)
  • 1.2 A set_all() method that initializes all the members according to the parameters passed
  • 1.3 All necessary members and methods
  • 1.4 Your class should have all members as private. 
  • 1.5 A public method called print_flight() method that produces a formatted output of your flight in one line with members separated by "| ". Assign 15 spaces for string members and 10 spaces for the rest.
  • 2) Hotel Class: 
  • Competencies: Object Oriented - Class creation, overload, encapsulation, mutators and accessors
  • Your task: Create a Hotel class with:
  • 2.1 At least 2 constructors. One of them is the default constructor (without parameters)
  • 2.2 A set_all() method that initializes all the members according to the parameters passed
  • 2.3 All necessary members and methods
  • 2.4 Your class should have all members as private. 
  • 2.5 A public method called print_hotel () method that produces a formatted output of your hotel in one line with members separated by "| ". Assign 15 spaces for string members and 10 spaces for the rest.
  • 3)  Resort Class that inherits Hotel:
  • Competencies: Inheritance
  • Your task: Create a Resort class that inherits the Hotel class that:
  • 3.1 At least 2 constructors. One of them is the default constructor (without parameters)
  • 3.2 A set_all() method that initializes all the members according to the parameters passed
  • 3.3 All necessary members and methods
  • 3.4 Has the following members (not existing in the Hotel class):
  • Resort fee (float)
  • Cleaning Service (Boolean)
  • 3.5 A public method called print_resort () method that produces a formatted output of your resort in one line with members separated by "| ". Assign 15 spaces for string members and 10 spaces for the rest.
  • 4) Vacation Class: 
  • Competencies: Object Oriented - Class creation, overload, encapsulation, mutators and accessors
  • Your task: Create a Vacation class with:
  • 4.1 All necessary members and methods. 
  • 4.1.1 One of the members, called round_trip_flight of type Flight, will contain all the information about the round-trip flight
  • 4.1.2 One of the members, called accommodation of type Resort, will contain all the information about the accommodation
  • 5.1.3 One of the members, called vacation_id, will contain the id of the vacation package.
  • 4.2 Your class should have all members as private. 
  • 4.3 A public method called print_vacation () method that produces a formatted output of your vacation in one line with members separated by "| ". Assign 15 spaces for string members and 10 spaces for the rest.

You are provided with the code that creates an array of 50 items of type vacation aimed to dynamic allocation. Your task will be to use that array to store all vacation packages the agency has at any point of time, including adding, removing, finding and printing vacations.

  • 5) addVacation(): 
  • Competencies: Instance creation with dynamic allocation
  • Your task: Create a function addVacation() that
  • Receives the necessary parameters
  • Adds the vacation to the vacation_list
  • Prints a notification that the vacation package was added
  • 6) removeVacation(): 
  • Competencies: Instance removal with dynamic allocation
  • Your task: Create a function removeVacation() that
  • Receives the necessary parameters
  • Removes the vacation from the vacation_list
  • Prints a notification that the vacation package was removed
  • 7) printAllVacations():
  • Competencies: Loop over arrays of dynamically allocated instances
  • Your task: Create a function printAllVacations() that
  • prints all vacation packages in your array (by calling the necessary print methods of the relevant classes).
  • 8) printVacations():
  • Competencies: Loop over arrays of dynamically allocated instances
  • Your task: Create a function findVacation() that
  • Receives the necessary parameters. Make your own decision regarding your search.
  • finds a vacation according to the parameters provided


Get Help With a similar task to - Intro to computer science c++ finale exm

Login to view and/or buy answers.. or post an answer

Related Questions

Similar orders to Intro to computer science c++ finale exm
17
Views
0
Answers
Nested imbalanced design of expriment using Box-Adjusted wald-type test
I need to provide statistical analysis of a nested design non-balanced design of experiment. I am hoping to have the implementation in either R, SPSS, or both. I will need the answers to be provided as shown in the attached file (Project.docx), and also wo...
32
Views
0
Answers
CMPT 200 Coding Homework
Write a class called Fraction that can store a rational number (reminder: those numbers that can be expressed in the form a/b, where a and b are integers are rational numbers). For example, a variable with a value of ½ would be created using oneHalf ...
15
Views
0
Answers
Artificial Inteligence System Technique
This is a Master Degree course and I have attached example questions, there are 5 questions and only 3 need to be answered. We will get the actual questions on the day of the exam and they need to be completed within 2 hours, which means the expert has to ...
18
Views
0
Answers
Simulating Networks
Here are the details of first assignment for Computer Networks class. This is a pretty basic assignment with very little work but you will have to do initial setup for virtual box on your machine. Here are the details on how to do the setup: Download virt...