Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In addition, you need to be able to illustrate line by line your algorithm using the example, answer the questions not only WHAT this line
In addition, you need to be able to illustrate line by line your algorithm using the example, answer the questions not only WHAT this line of code does, but WHY. You need to demonstrate not only understanding the algorithm but also realize what happens if we change some line of the code. Task Your task is to design a booking flight system. You should be able to add information about the flight (flight number, date, time, cost of the ticket, destination, type of the plane). Your program should save all the information in a useful data structure, and be able to output information about flight with a specified destination in first order by date, in second order by cost. The input data: 5 10, 10/05/19, 11:59, 103, Moscow, Boeing 707 7, 10/05/19, 22:05, 77, Moscow, Airbus 23 10, 7/04/19, 11:59, 55 Moscow, Boeing 109 65, 12/05/19, 13:00, 66, Novosibirsk, Airbus 23 8, 10/05/19, 10:30, 66, Moscow, Boeing 104 Moscow The output: 10, 7/04/19, 11:59, 55 Moscow, Boeing 109 8, 10/05/19, 10:30, 66, Moscow, Boeing 104 7, 10/05/19, 22:05, 77, Moscow, Airbus 23 10, 10/05/19, 11:59, 103, Moscow, Boeing 707 The format of input and output data can be a little bit changed for convince. Your solution should contain manually written functions, structures, classes and correct usage of all language structures we've learned: methods/functions - lists structures Your code should be designed correctly and we suggest you follow the code style of c++. Also, prepare 3 tests proving that your algorithm works correctly
Step 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