Question: Java Code Reservation Options 1 . Include at least one airline with three routes, all originating from a single home base. 2 . Define simple
Java Code Reservation Options Include at least one airline with three routes, all originating from a single home base. Define simple flight routes with unique destination cities eg Los Angeles to New York, Los Angeles to Chicago, Los Angeles to Miami Each route should be represented with a number or so the user can select a route by entering the route number. Hotel Reservation System Include at least two hotel options. Each hotel should have one room type. Display the list of hotels to the user, allowing them to select their preferred hotel by entering the corresponding number. Car Rental Reservation System Include at least one car rental option from a single rental company. Only one car type is required. Display the available car rental to the user and allow selection. Program Flow The program should follow a sequential flow: Welcome Message: Display a welcome message to the user. Reservation Date: Prompt the user to enter their reservation date. Cannot be after December Flight Reservation: Prompt the user to select a flight route by displaying the available routes and capturing their choice. Hotel Reservation: Prompt the user to select a hotel by displaying the available hotel options and capturing their choice. Car Rental Reservation: Display the available car rental option and capture the users selection. Input Validation: Ensure that user inputs are valid ie checking if the selected option is within the given choices If an invalid option is selected, prompt the user to reenter a valid choice. Summary Display After the user completes all selections, display a reservation summary that includes: The selected date of reservation. The selected flight route. The selected hotel. The car rental type. Display a final thankyou message, indicating the reservation is complete. TechnicalSoftware Expectations Must include at least one array, three userdefined methods, variations of looping at least one while, one for, and one dowhile At least one switch statement for decisionmaking.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
