Question: Program to implement in c++ code Q2. (25 marks) Create a class called Flight that contains information about the flight of the airline company. A

Program to implement in c++ code
 Program to implement in c++ code Q2. (25 marks) Create a
class called Flight that contains information about the flight of the airline

Q2. (25 marks) Create a class called Flight that contains information about the flight of the airline company. A flight is identified by: a flight id (string), departure time (Time), departure date (Date), arrival time (Time), arrival date (Date), departure city (string), arrival city (string). The class should have at least the following member functions: -One or more constructors - Necessary setters and getters A function that prints information about a flight A destructor - Deliverables: flight.h, flight. cpp, testflight.cpp // time.h definition of the class Tine class Time t public: Time(); void setTime(int, int, int); // sets hours, minutes, and seconds void printTime() const;// prints time on the screen private: int hour, minute, second; // date.h definition of the class Date class Date f public: minutes, seconds private: Date(int, int, int, int, int, int); 1/ sets day, month, year, hours, void printDate() const; // print date to the screen int day, month, year; Time time; // a component object 3: /I date.cpp implementation of the class Date Date: :Date(int d, int n, int y, int hour, int min, int sec) { day d; month m; year ys time.setTime(hour, min, sec); void Date::printDate() const t cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!