Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

hallo i really need your help Write a class named Airline, that has data members

ID: 3636378 • Letter: H

Question

hallo i really need your help
Write a class named Airline, that has data members suitable for the attached sample output. Better organization leads to a better grade. Make sure to have six functions and that main() calls those functions to do the required tasks.
Assume that the number of airlines that will be added in your program will never be more than 50.
Important notes:
1. Make sure to have your name and ID written in all C++ files (two .cpp and one .h). Print the file and save it in the provided disk.
2. It is OK to use any built-in functions.
3. Use if/else and switch structures along with any other structures properly to make your program nicely written. Part of your grade is on that.
4. Feel free to add any functions as needed. Make sure that your program is properly organized in order to get a better grade.
Before running the sample program below, the file “in.txt” contains:
3
KU
200
LH
150
BA
165
After running the sample program below, the file “out.txt” contains:
4
KU
200
LH
150
BA
165
UA
200

Explanation / Answer

Compiled via VS2010. Enjoy. Ask if u have any question. Current program gives precisely same output. #include #include #include using namespace std; class Airline { private: string* AirAbr; int* flightPrice; int n; public: void readData(char* fname) { ifstream fin(fname, ios::in); if (!fin) { cerr> flightPrice[i]; } } void addExtraMember(string airline, int price) { AirAbr[n] = airline; flightPrice[n] = price; n++; } void writeData(char* fname) { ofstream fout(fname, ios::out); if (!fout) { cerr