Answered step by step
Verified Expert Solution
Question
1 Approved Answer
i have to write this program in c++ using classes and arrays 1. (25 marks) We want to create a class called Flight, which represents
i have to write this program in c++ using classes and arrays
1. (25 marks) We want to create a class called Flight, which represents flights of an airline company. A flight is defined with the following attributes: number (int), departure time (string), departure date (string), departure city (string), destination city (string). The member functions of the class Fight must perform the following operations: Return the flight number . . Return the departure time .Return the departure date Modify the departure time Modify the departure date Return the departure city . Return the destination city . To test your class, you need to create, a driver, which is the cpp file that contains the main function. Let's call this, testflight.cpp. In the main function, you should prompt the user to enter information about two flights, create two objects of the class Flight with the information entered by the user, and finally, test the member functions of the class. Deliverables: A file called flight.h that contains the specification of the class. . A file called flight.cpp that contains the implementation of the member functions of the class .A file called testflight.cpp that contains the main function. 1. (25 marks) We want to create a class called Flight, which represents flights of an airline company. A flight is defined with the following attributes: number (int), departure time (string), departure date (string), departure city (string), destination city (string). The member functions of the class Fight must perform the following operations: Return the flight number . . Return the departure time .Return the departure date Modify the departure time Modify the departure date Return the departure city . Return the destination city . To test your class, you need to create, a driver, which is the cpp file that contains the main function. Let's call this, testflight.cpp. In the main function, you should prompt the user to enter information about two flights, create two objects of the class Flight with the information entered by the user, and finally, test the member functions of the class. Deliverables: A file called flight.h that contains the specification of the class. . A file called flight.cpp that contains the implementation of the member functions of the class .A file called testflight.cpp that contains the main functionStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started