Question

an airlines reservation system Suppose you are tasked with building (a) To simplify the situation, lets say that this syste
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Question A.
We create class for each object. Flight class will contain information about source and destination airports. Also number of passengers, free seats and time needed for the flight. Airport class will contain two list of flights, one for arrivals and second for departures. It will have timetables for the flight too. Passenger class will contain his ID, and list of ticket. Each ticket will have information about flight, destination and starting airports, time for departure and arrival.

Question B.
Function to get number of free seats left:
flight class will have such function, it will check total number of passengers and total seats in plane and will calculate and return number of free seats left.
Function to get cheapest flight from one airport to another: Airport class will have this function. It will get another airport as argument and using shortest path algorithms it will find cheapest flight to this airport, probably including stopovers.


Comment down for any queries

Please give a thumb up

Add a comment
Know the answer?
Add Answer to:
an airline's reservation system Suppose you are tasked with building (a) To simplify the situation, let's...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • All three pictures are parts of the question.        &nbs...

    all three pictures are parts of the question.           please solve in c++ Lab 5.3.2 Flight booking system: part 2 Objectives Familiarize the student with: modelling real-workd entities with classes and objects; limiting acceptable input range. Scenario Let's continue working on our booking system You may remember in our last task that we had no limit on the number of reserved seats. Airlines often allow the overbooking of flights, expecting that some passengers will not make it. Modify the constructor so...

  • C++ For this assignment you will be building on the Original Fraction class you began last...

    C++ For this assignment you will be building on the Original Fraction class you began last week. You'll be making four major changes to the class. [15 points] Delete your set() function. Add two constructors, a default constructor that assigns the value 0 to the Fraction, and a constructor that takes two parameters. The first parameter will represent the initial numerator of the Fraction, and the second parameter will represent the initial denominator of the Fraction. Since Fractions cannot have...

  • In Problem Set 7 you designed and implemented a Message class. This time, let's design and...

    In Problem Set 7 you designed and implemented a Message class. This time, let's design and implement a Mailbox class in a file named Mailbox java. Do the following with this class • You may use the Message class from PS 7. You will have to add new features to the Message class from PS 7 as you work through this problem. You are welcome to start with my sample solution if you wish • Suppose there are multiple mail...

  • 1. Consider a grocery supermarket planning to computerize their inventory management. The items on shelves will...

    1. Consider a grocery supermarket planning to computerize their inventory management. The items on shelves will be marked with Radio Frequency Identification (RFID) tags and a set of RFID reader-devices will be installed for monitoring the movements of the tagged items. Each tag carries a 96-bit EPC (Electronic Product Code) with a Global Trade Identification number, which is an international standard. The RFID readers are installed on each shelf on the sales floor. The RFID system consists of two types...

  • C++ Inheritance Problem Step a: Suppose you are creating a fantasy role-playing game. In this game...

    C++ Inheritance Problem Step a: Suppose you are creating a fantasy role-playing game. In this game we have four different types of Creatures: Humans, Cyberdemons, Balrogs, and elves. To represent one of these Creatures we might define a Creature class as follows: class Creature { private: int type; // 0 Human, 1 Cyberdemon, 2 Balrog, 3 elf int strength; // how much damage this Creature inflicts int hitpoints; // how much damage this Creature can sustain string getSpecies() const; //...

  • This C++ Program consists of: operator overloading, as well as experience with managing dynamic memory allocation...

    This C++ Program consists of: operator overloading, as well as experience with managing dynamic memory allocation inside a class. Task One common limitation of programming languages is that the built-in types are limited to smaller finite ranges of storage. For instance, the built-in int type in C++ is 4 bytes in most systems today, allowing for about 4 billion different numbers. The regular int splits this range between positive and negative numbers, but even an unsigned int (assuming 4 bytes)...

  • please use python and provide run result, thank you! click on pic to make it bigger...

    please use python and provide run result, thank you! click on pic to make it bigger For this assignment you will have to investigate the use of the Python random library's random generator function, random.randrange(stop), randrange produces a random integer in the range of 0 to stop-1. You will need to import random at the top of your program. You can find this in the text or using the online resources given in the lectures A Slot Machine Simulation Understand...

  • How can we assess whether a project is a success or a failure? This case presents...

    How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...

  • Name: Integumentary System Case Study: Jon's Story (Each question is worth 0.5 pts) At 63 years...

    Name: Integumentary System Case Study: Jon's Story (Each question is worth 0.5 pts) At 63 years old, Jon was retiring early by most people's standards, but he felt it was time and he was looking forward to it. His mind wandered as he raked the dry remnants of his front yard. The African summer had been hotter than usual but he had always worked outdoors and the warmth of the sun on his face felt good. Jon had grown up...

  • I need help with my very last assignment of this term PLEASE!!, and here are the instructions: After reading Chapter T...

    I need help with my very last assignment of this term PLEASE!!, and here are the instructions: After reading Chapter Two, “Keys to Successful IT Governance,” from Roger Kroft and Guy Scalzi’s book entitled, IT Governance in Hospitals and Health Systems, please refer to the following assignment instructions below. This chapter consists of interviews with executives identifying mistakes that are made when governing healthcare information technology (IT). The chapter is broken down into subheadings listing areas of importance to understand...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT