Write program that determine each customers priority number

Assignment Help Data Structure & Algorithms
Reference no: EM131159622

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 Table 9-2, write a program that reads the file and determines each customer's priority number. The program then builds a priority queue using the priority number and prints a list of waiting customers in priority sequence.

Name

Mileage

Year

Sequence

Bryan Devour

53,000

5

1

Amanda Trapp

89,000

3

2

Boclan Nguyen

93,000

3

3

Sarah Hong

17,000

1

4

Warren Raxrcod

72,000

7

5

Jorge Gonzales

65,0000

2

6

Paula Hong

34,000

3

7

Lou Mason

21,000

6

8

Stave Chu

42,000

4

9

Dave Lightfoot

63,000

3

10

Joanne Brawn

33,000

2

11

 

Reference no: EM131159622

Questions Cloud

Discuss future of criminology and criminal justice policies : iscuss the future of criminology and criminal justice policies. -  Be specific using examples of programs and policies to illustrate your points.
Leadership style and preferences : To help you to discover your own leadership style and preferences, the self-assessment exercises will prompt you to identify personal knowledge by self-reflection and provide a foundation for developing leadership skills. There is not any right or..
Description of the organization and its primary stakeholders : A description of the organization and its primary stakeholders. Include the vision and mission statement if they are available to the public, and the code of ethics if the company has one (if it is long, an excerpt or description is an acceptable alt..
Determine the expected completion time : Determine the expected completion time and the variance for each activity. Determine the total project completion time and the critical path for the project. Determine Early Start (ES), Early Finish (EF), Late Start (LS), and slack for each activity
Write program that determine each customers priority number : write a program that reads the file and determines each customer's priority number. The program then builds a priority queue using the priority number and prints a list of waiting customers in priority sequence.
Antitrust laws-sherman act and the clayton act : The Antitrust Laws (like the Sherman Act and the Clayton Act) Establish minimum fuel economy standards for an entire manufactured fleet of automobiles. Protect the consumer (generally by promoting competition in the marketplace)
Write a summary of the article : Write a summary of the article. Include the purpose for the article, how research was conducted (if any), the results, and other pertinent information
Firms are submitting bid to offer their firm services : Suppose n firms are submitting a bid to offer their firm’s services. Your cost of providing the service is c. All of the firms will submit sealed bids. The procurement officer will look at all ofthe bids and select the lowest bid but pay to the lowes..
Assignment-bangor family case : In order to ensure that a physician practice performs well financially and operationally one aspect that must be considered is the compensation methodology chosen to pay the physician.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd