Giter VIP home page Giter VIP logo

resolving-overbooked-flight's Introduction

CSE207 – Data Structures Project 15: Resolving overbooked flight

Project Description:

An airline company uses the formula shown below to determine the priority of passengers on the waiting list for overbooked flights. Priority number = A / 1000 + B – C where,

A is the customer’s total mileage in the past year B is the number of years in his or her frequent flier program C is a sequence number representing the customer’s arrival position when he or she booked the flight. Given a file of overbooked customers as shown in below Table, write a program that reads the file and determines each customer’s priority number. You have to build an application for the airline company that builds a priority queue using the priority number and prints a list of waiting customers in priority sequence.

For constructing the application you have to do the following: Bryan Devaux 53000 5 1 Amanda Trapp 89000 3 2 Baclan Nguyen 93000 3 3 Sarah Gilley 17000 1 4 Warren Rexroad 72000 7 5 Jorge Gonzales 65000 2 6 Paula Hung 34000 3 7 Lou Mason 21000 6 8 Steve Chu 42000 4 9 Dave Lightfoot 63000 3 10 Joanne Brown 33000 2 11

a. Build a priority queue( binary heap) based on the priority number b. Build a stack to store information of customer who will get flight ticket later In the project you have to do the following:

  1. Builds a priority queue using the priority number
  2. Prints a list of waiting customers in priority sequence.
  3. Print details of customer who took flight ticket later.

resolving-overbooked-flight's People

Contributors

dipu0 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.