using c++ programming language
its only like that i dont think theres incomplete infromation
this is the date class
Task (Inheritance and Polymorphism) ***Important Notes*** 1) Submission to be via eLearning ONLY 2) No submissions via email 3) No submissions after deadline 4, Zip your project/code (epp + header files) into I single ZIP file called 20xyz-Assignment2.zip (or rar) where 20xyz is your ID File name should be your ID OOP HW3.zip. e.g. 20140210_OOP_HW3.zip 5) Write your Name and ID number in the main code file as well. Any function that can be declared constant should be done so. 7. Make any necessary validations to inputs >> Clean the heap as often as necessary Homework Description In your Holidays system, Flights can be categorised into: Outbound and Inbound Date class has int attributes for Day, Month and Year. All Flight objects have attributes: const int FlightNumber; // drawn from a static serial number starting from 1. string Destination: Date *Flight_Date: /from Date class - Use Heap to store it and clean it in the destructor double *Take-of-Weight; //Use heap to store it and clean in in the destructor Flight.h is given here: #include
using namespace std; #include "Date.h" class Flight static int serial: protected: int Passengers: const int FlightNumber: string Destination; Date *Flight_Date: double *Take-Off-Weight: public: Flight: Flight(string dest, Date fdate, double weight, int pass); virtual void SetValues(string dest, Date date, double weight, int pass): virtual double Cataculate_Cost() = 0; virtual void PrintDetails) = 0; virtual - Flight(); : Outbound Flights have the additional attributes: const int Flight Number: string Destination: Date Flight Date: double "Take-Off-Weight: public: Flight: Flight(string dest, Date fdate, double weight, int pass); virtual void SetValues(string dest, Date ftatc, double weight, int pass); virtual double Calaculate Cost() = 0; virtual void Print Details() = 0; virtual-Flight(): Outbound Flights have the additional attributes: double Tax; //Use heap to store it and clean in in the destructor string* Stop-Over; //e.g., Doha, Madrid, Istanbul), Use heap to store it and clean in the destructor Inbound Flights have the additional attributes: Double *Fuel-Load; //Use heap to store it and clean in in the destructor string *Bound-To; //eg., Doha, Madrid, Istanbul) - Use heap to store it and clean in in the destructor ***Requirements*** Part 1 Code all classes 2) Declare as many attributes as privats as possible 3) Pass parameters as const as much as possible 4) Separate class interface and implementation - You can use String library Do NOT create pointers of type Inbound or Outbound. All pointers must be of type Flight Use Dynamic Memory where possible Create the base class Flight as above, note: #Pure virtual function to print details b) Pure virtual function Calaculate_Cost as follows: Inbound: weight *0.4 + Fuel-Load 3.25 Passengers 100; Outbound: weight *0.38 + Tax1.5 Passengers 100; Create derived classes Inbound + Outbound as above with the following functionalities: Constructors to initialize the data members b) Destructors to perform garbage collection and resets Functions to print details including those inherited from base class Functions to calculate Cost Part 2 Write a program to test drive your classes, Deadline is 2pm on Thursday 14 Jan 2021. Good luck! AEH //=== Date Class Header class Date } private: int day; int month; int year; public: Date(); Date(int, int, int); void setDay(int); int getDayO; void set Month(int); int getMonth(); void set Year(int); int get Year(); Date(); }