Question: Need help on writing this code for a Lab report Write a Java program called SeatReservation which allows a user to reserve seats given a

Need help on writing this code for a Lab report
 Need help on writing this code for a Lab report Write
a Java program called SeatReservation which allows a user to reserve seats
given a seating chart. The program will update and display the seating
chart as the user selects seats, displays subtotals for the reservation, and

Write a Java program called SeatReservation which allows a user to reserve seats given a seating chart. The program will update and display the seating chart as the user selects seats, displays subtotals for the reservation, and finally displays the receipt including fees and taxes when the user is done with all the seat selection. You must use arrays, loops, and methods in your solution as described below main) method 1. Create 4 arrays which contain the seats (String arrays) and their prices (double[] arrays) as follows: "IA" "ZA" I "" rowBSeats "18" "2B" rowAPrices 99.99 110.99 rowBPrices "3B" 99.99 2. Create a total variable of type double which will keep track of the total so far 3 Call the display) method to display the seating chart and a welcome message 4. Ask the user how many seats they want to reserve and store the value in an int variable called numSeats S. Then, in a for loop which will iterate numSeats times, do the following: Call the getRow () method to return the letter of the row from which the user wants to reserve a seat a. b. Check if the row is A or B, and call the makeReservation) method passing it the correct row and prices arrays. The method should return the price of the seat after the reservation is made which will be added to the total variable. c. Display the total so far 6. Lastly, when the loop is done call the printReceipt ) method to print the receipt 1. Method header public static void display (Stringt rowASeats, String[) rowBSeats double [ rowAPrices, double rowBPrices) 2. Display the following welcome message. Call the methods printRowSeat ) and printRowPricesfor rows A and B and their prices

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!