Using Java programming language, create a program that will create a simple Reservation system using classes,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Using Java programming language, create a program that will create a simple Reservation system using classes, objects, constructors, and methods. Requirements: (100 points) 1. Display 100 available seats. (10 points) "C:\Program Files\Java\jdk-13.0.1\bin\java.ex -javaagent:C:\Progra SEAT RESERVATION A1 B1 C1 01 E1 F1 G1 HI 11 31 A2 82 C2 D2 E2 F2 62 112 12 32 A3 B3 C3 D3 E3 F3 G3 H3 23 33 A4 84 C4 D4 E4 FA 64 H4 74 34 A5 85 CS 015 E5 F5 G5 H5 15 35 A6 BO Có Do E6 F6 GO 116 76 36 A7 87 C7 D7 E7 F7 67 117 17 37 AB 88 CB DB EB FB G8 На 18 38 A9 89 C9 09 E9 F9 69 H9 19 A10 810 C10 D10 E1D F18 GIO HID 110 39 310 Enter Seat Number: 2. Allow the user to enter the seat number to be reserved. (10 points) 3. It the seat to be reserved is available, mark it as reserved and display the updated list of available seats. (20 points) Enter Seat Number: 016 A1 81 C1 DI E1 F1 01 HE 21 A2 82 C2 D2 E2 F2 G2 H2 12 32 A3 83 C3 D3 E3 F3 G3 H3 13 33 AA 84 CA D4 E4 F4 04 H4 26 34 A5 85 C5 D5 E5 F5 G5 H5 15 35 AO Bo Co D6 Ed Fó 66 HO 16 36 A7 87 C7 07 E7 F7 G7 H7 17 37 AB BB CB DB E8 FB GB на 18 38 A9 89 C9 09 E9 89 G9 H9 19 39 A10 810 C20 xx E10 F10 610 HIO 110 310 Continue? 4. If the seat to be reserved is NOT available or DOES NOT EXIST, display a warning a message. (20 points) Continue? Enter Seat Number: Seat already taken / Invalid seat A1 B1 C1 01 E1 F1 61 H1 11 31 A2 82 C2 02 E2 F2 62 H2 12 32 A3 83 C3 03 E3 F3 G3 H3 13 33 A4 84 CA 04 E4 F4 G4 H4 A5 85 C5 05 E5 F5 65 H5 15 135 14 34 35 Ab 86 Co 06 Ed F6 Go H6 16 38 A7 87 C7 07 E7 F7\ G7 H7 17 37 AB BB CB 08 EB F8 GB HB 18 38 A9 89 C9 09 E9 F9 G9 H9 19 39 A10 810 C10 хх E10 F10 610 H10 110 310 Continue? 5. After the process, ask the user if he wants to reserve another seat. If to continue the reservation, repeat requirements number 2-5, otherwise, terminate the program. (20 points) Continue? Process finished with exit code 0 6. Create a class that contains a constructor and a method that performs the reservation. (20 points) Using Java programming language, create a program that will create a simple Reservation system using classes, objects, constructors, and methods. Requirements: (100 points) 1. Display 100 available seats. (10 points) "C:\Program Files\Java\jdk-13.0.1\bin\java.ex -javaagent:C:\Progra SEAT RESERVATION A1 B1 C1 01 E1 F1 G1 HI 11 31 A2 82 C2 D2 E2 F2 62 112 12 32 A3 B3 C3 D3 E3 F3 G3 H3 23 33 A4 84 C4 D4 E4 FA 64 H4 74 34 A5 85 CS 015 E5 F5 G5 H5 15 35 A6 BO Có Do E6 F6 GO 116 76 36 A7 87 C7 D7 E7 F7 67 117 17 37 AB 88 CB DB EB FB G8 На 18 38 A9 89 C9 09 E9 F9 69 H9 19 A10 810 C10 D10 E1D F18 GIO HID 110 39 310 Enter Seat Number: 2. Allow the user to enter the seat number to be reserved. (10 points) 3. It the seat to be reserved is available, mark it as reserved and display the updated list of available seats. (20 points) Enter Seat Number: 016 A1 81 C1 DI E1 F1 01 HE 21 A2 82 C2 D2 E2 F2 G2 H2 12 32 A3 83 C3 D3 E3 F3 G3 H3 13 33 AA 84 CA D4 E4 F4 04 H4 26 34 A5 85 C5 D5 E5 F5 G5 H5 15 35 AO Bo Co D6 Ed Fó 66 HO 16 36 A7 87 C7 07 E7 F7 G7 H7 17 37 AB BB CB DB E8 FB GB на 18 38 A9 89 C9 09 E9 89 G9 H9 19 39 A10 810 C20 xx E10 F10 610 HIO 110 310 Continue? 4. If the seat to be reserved is NOT available or DOES NOT EXIST, display a warning a message. (20 points) Continue? Enter Seat Number: Seat already taken / Invalid seat A1 B1 C1 01 E1 F1 61 H1 11 31 A2 82 C2 02 E2 F2 62 H2 12 32 A3 83 C3 03 E3 F3 G3 H3 13 33 A4 84 CA 04 E4 F4 G4 H4 A5 85 C5 05 E5 F5 65 H5 15 135 14 34 35 Ab 86 Co 06 Ed F6 Go H6 16 38 A7 87 C7 07 E7 F7\ G7 H7 17 37 AB BB CB 08 EB F8 GB HB 18 38 A9 89 C9 09 E9 F9 G9 H9 19 39 A10 810 C10 хх E10 F10 610 H10 110 310 Continue? 5. After the process, ask the user if he wants to reserve another seat. If to continue the reservation, repeat requirements number 2-5, otherwise, terminate the program. (20 points) Continue? Process finished with exit code 0 6. Create a class that contains a constructor and a method that performs the reservation. (20 points)
Expert Answer:
Answer rating: 100% (QA)
Image 1 Decision Tree Applicability Decision trees can be applied for customer segmentation within your membership system Scenario You can train a dec... View the full answer
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date:
Students also viewed these programming questions
-
Consider the following reaction at 800. K: N2(g) + 3F2(g) 2NF3(g) An equilibrium mixture contains the following partial pressures: PN2 = 0.021 atm, PF2 = 0.063 atm, and PNF3 = 0.48 atm. Calculate Go...
-
You can borrow cad at 8 percent, which is 2 percent above the swap rate, or at cad libor + 1 percent. If you want to borrow at a fixed-rate, what is the best way: direct, or synthetic (that is, using...
-
A small adiabatic steam turbine operating at part load produces 100 hp. The mass flow rate is 1350 lbm/hr. Steam at 450 F and 200 psia is throttled to 160 psia before entering the turbine. The...
-
Daphne Brown-Wright worked as a teacher for East St. Louis School District 189 from 1975 until 1998 and then returned as an administrator from 2002 until 2012, thus serving the District for 33...
-
The Lopez Company uses standard costing in its manufacturing plant for auto parts. The standard cost of a particular auto part, based on a denominator level of 4,000 output units per year, included 6...
-
B: Point out the error in the code and correct it. class Person { public void int display () { System.out.println("This is a Person"); } } class Student extnd Person { public void display () {...
-
Complete Tsate's Form 1040-SR, Schedules A, B and D, Form 8949, Form 6252 and Qualified Dividends and Capital Gain Tax Worksheet. Tsate Kongia (birthdate 02/14/1954) is an unmarried high school...
-
E.coli about to replicate was placed in a medium containing radioactive thymidine for five minutes. Then it was made to replicate in a normal medium. Which of the following observation will be...
-
A machine with a cost of $69,500 has an estimated residual value of $3,853 and an estimated life of 5 years or 17,789 hours. What is the amount of depreciation for the second full year, using the...
-
Chuck McElray owns Common Grounds Coffee House. The business has cash of $2,000 and furniture that cost $8,000. Debts include accounts payable of $1,000 and a $6,000 note payable. How much equity...
-
Assume that the expectations theory holds, and that liquidity and maturity risk premiums are zero. If the annual rate of interest on a 2-year Treasury bond is 10.5 percent and the rate on a 1-year...
-
"To motivate employees' organizations should focus on rewards and punishments". Critically discuss this statement with reference to relevant motivational theories. Leadership Assignment Theoretical...
-
At December 31, 20x2, Marsha Co. had a balance of $205,150 in work in process, represented by the following two jobs: Cost Job A Job B Direct materials $12,600 $29,000 Direct labour $23,300 $29,000...
-
1. Suppose a monopolist faces a market inverse demand p = 10-Q , and its marginal cost is constant at 4. Assume its fixed cost at zero. a) Draw on the same graph the monopolists demand, MR, and MC...
-
Answer the following two independent questions. a. MM Corporation is considering several proposed investments for the coming budget year. MM produces electrical apparatus for industrial complexes....
-
Write and fully test a class that represents rational numbers. A rational number can be represented as the ratio of two integer values, a and b, where b is not zero. The class has attributes for the...
-
Create an applet that draws a pattern of circles whose centers are evenly spaced along a horizontal line. Use six constants to control the pattern: the number of circles to draw, the diameter of the...
-
Write an application that implements a trip-time calculator. Define and use a class TripComputer to compute the time of a trip. TripComputer should have the private attributes totalTimethe total time...
-
Interview three heads of household, each from a household representing a different stage of the life cycle orsocioeconomic status. Inquire about their financial planning process and their strategies...
-
Jimmy, an accountant, and Bethany just returned from their honeymoon in the Bahamas. They celebrated their marriage and the completion of Bethany's M.B.A. program. They have been encouraged by their...
-
Review the six financial accomplishments that may result from studying personal finance. In your opinion, which three are most important? Why?
Study smarter with the SolutionInn App