A small airline has just purchased a computer for its new automated reservations system. You've been...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
A small airline has just purchased a computer for its new automated reservations system. You've been asked to develop the new system. You're to write an application to make reservations for passengers for the sole flight of the airline's only plane, a DC-3 with 7 rows of 3 seats (capacity: 21 seats). Your application should 1. Display a menu to view passenger boarding pass or make a reservation. If boarding pass is selected then request the passenger's name and telephone number, use the telephone number to correctly identify the passenger and display the boarding pass, then display the previous menu. If reservation is selected, then go to step 2 2. Ensure a seat is available, then request and read passenger information-name, age, gender (M/F), and 10-digit telephone number. Should the flight be full, display a message to that effect. 3. Allow the passenger to select an available seat from a seating chart that displays available (A) and not available (X) seats. The selection of a taken seat should not be allowed. The aircraft has 7 rows with 3 seats in each row 4. When the seat selection is complete, display the boarding pass that has the customer information and the selected seat. When transaction is complete, go to step 1 You are required to: 1. Create a passenger class with name, age, gender, and telephone number as instance variables, a two-dimensional static array for the seating arrangement, and a static variable to count the seats taken in that flight, along with instance and class methods. 2. Use an array list to store instances of passenger with valid reservations. 3. Use static methods in the driver class to minimize statements in main method. A variation of this problem is in your textbook (page 301 #7.19). I am not looking for a solution to the textbook problem A small airline has just purchased a computer for its new automated reservations system. You've been asked to develop the new system. You're to write an application to make reservations for passengers for the sole flight of the airline's only plane, a DC-3 with 7 rows of 3 seats (capacity: 21 seats). Your application should 1. Display a menu to view passenger boarding pass or make a reservation. If boarding pass is selected then request the passenger's name and telephone number, use the telephone number to correctly identify the passenger and display the boarding pass, then display the previous menu. If reservation is selected, then go to step 2 2. Ensure a seat is available, then request and read passenger information-name, age, gender (M/F), and 10-digit telephone number. Should the flight be full, display a message to that effect. 3. Allow the passenger to select an available seat from a seating chart that displays available (A) and not available (X) seats. The selection of a taken seat should not be allowed. The aircraft has 7 rows with 3 seats in each row 4. When the seat selection is complete, display the boarding pass that has the customer information and the selected seat. When transaction is complete, go to step 1 You are required to: 1. Create a passenger class with name, age, gender, and telephone number as instance variables, a two-dimensional static array for the seating arrangement, and a static variable to count the seats taken in that flight, along with instance and class methods. 2. Use an array list to store instances of passenger with valid reservations. 3. Use static methods in the driver class to minimize statements in main method. A variation of this problem is in your textbook (page 301 #7.19). I am not looking for a solution to the textbook problem
Expert Answer:
Answer rating: 100% (QA)
General Guidance The answer provided below has been developed in a clear step by step manner Step 1 ExplanationPlease refer to solution in this step Answer Passangerjava package myPack public class Pa... View the full answer
Related Book For
An Introduction to Statistical Methods and Data Analysis
ISBN: 978-1305269477
7th edition
Authors: R. Lyman Ott, Micheal T. Longnecker
Posted Date:
Students also viewed these computer engineering questions
-
A research laboratory was developing a new compound for the relief of severe cases of hay fever. In an experiment with 36 volunteers, the amounts of the two active ingredients (A & B) in the...
-
A research laboratory was developing a new compound for the relief of severe cases of hay fever. In an experiment with 36 volunteers, the amounts of two active ingredients (factors A and B) in the...
-
A research laboratory was developing a new compound for the relief of severe cases of hay fever. In an experiment with 36 volunteers, the amounts of the two active ingredients (A & B) in the...
-
If North American wholesalers buy roses at the lowest possible price, how many do they buy from local growers and how many do they import?
-
What effect did McCarran-Ferguson Act have on insurance regulation? Why was it passed?
-
Assume that a companys hazard rate is a constant 8% per year, or 2% per quarter. An investor sells five-year CDS protection on the company with the premiums paid quarterly over the next five years....
-
Record the following petty cash transactions of Handy Dan in the journal; explanations are not required. Nov 1 Established a petty cash fund with a $100 balance. 30 The petty cash fund had $33 in...
-
Classify the following reports as being either scheduled or on-demand reports. Cash disbursements listing Overtime report Customer account history Inventory stock-out report Accounts receivable aging...
-
Question Five The net profit after tax for AB Limited for the year ended 31/12/2023 was K125 000 and the company and 1000 000 ordinary shares of K1 each. On 1/5/2023 the company issued 200 000...
-
The partners of Donald, Chief & Berry LLP decided to liquidate on August 1, 2019. The balance sheet of the partnership is as follows, with the profit and loss ratio of 25%, 45%, and 30%,...
-
Part A At 15C, a 3.00-cm-diameter glass cylinder is filled with glycerin to a height of 19.0 cm. If the temperature increases, the glycerin expands in volume and the diameter of the cylinder...
-
Discuss the advantages and disadvantages of using monetary unit sampling.
-
Define audit sampling. Is selecting all of the items within a population appropriately described as a method of sampling? Explain.
-
When evaluating the results of substantive procedures, should the auditor request management to adjust the financial statements if the sample error exceeds the tolerable error? Discuss.
-
Explain the essence of the term professional ethics.
-
What are the different methods available for selecting a sample? What method would auditors normally prefer?
-
14. a) Consider f(x) = 2x and use, mtangent = lim h0 f(x+h)-f(x) h to determine the x-4 simplified expression in terms of x for the slope of any tangent to f(x) and state the slope at x = 1. [7 marks]
-
The Dow Jones Industrial Average reached a high of $ 7801.63 on December 29, 1997. Recall from Example 18.4 that it reached a high of $ 1003 on November 14, 1972. The Consumer Price Index for...
-
One town in the data base of Exercise 11.76 is the home of an enormous regional shop-ping mall. A very large fraction of the towns expenditure on public safety is related to the mall; the mall...
-
Use the data from Exercise 11.22. a. Estimate the mean time to run 10 km for athletes having a treadmill time of 11 minutes. b. Place a 95% confidence interval on the mean time to run 10 km for...
-
In a scatterplot of the data from Exercise 11.73, do you see any problems with the data? In exercise Mileage 50 60 80 90 90 100 100 100 110 10 110 Rate 12.7 13.0 13.7 14.1 14.6 14.1 15.6 149 14.5...
-
(a) Use a histogram to graph the empirical distribution of the duration times between American Airline trades. Compare the graph with Figure 2.9. Figure 2.9. (b) Interpret the shape of the...
-
Consider the equity prices of the United States companies Microsoft and Walmart for the period April 1990 to July 2004 ( \(T=172)\). (a) Compute the continuously compounded (log) returns on Microsoft...
-
(a) Compute the monthly excess returns on Exxon, General Electric, Gold, IBM, Microsft and Walmart. Be particularly carefully when computing the correct risk free rate to use. (b) Estimate the CAPM...
Study smarter with the SolutionInn App