Question
Design and implement a Java program that creates a GUI that will allow a user to reserve seats at a new movie theater. The GUI
Design and implement a Java program that creates a GUI that will allow a user to reserve seats at a new movie theater. The GUI should allow the user to input the following information:
Customer Name Price of the ticket (Adult - $10.50/ticket Child $5.25/ticket) The option to reserve or cancel an existing reservation
Once the data is entered via the GUI the program should output the name of each individual who made a reservation, the cost of their ticket and running total of the cost of all tickets sold as well as how many seats have been reserved and how many seat remain available to be sold. A sample GUI is illustrated below to give you an idea of how yours should look. (Note you do not have to have a label for seat number since you will not be assigning seats just tallying total seats reserved and remaining seats left)
The GUI must have the following: Buttons indicating the transaction to perform (Reservation or Cancel Reservation) Text box for entering of name of customer Text Box for entering the price of a ticket Text box that shows the name of movie goers who have made reservations Submit button to complete the transaction Text box showing final total cost of the tickets Appropriate Labeling of text boxes and buttons
NOTE: The above is just an illustration to give you an idea of what the GUI should look like. You can create the GUI as you would like so long as it has all the functionality required in the specs
Booking Input Reservations Reserve Name Nanna Hult Cancel Resv. Price 9.15 Price 7.89 9.15 9.15 Seat Status Name 0 Reserved Apu Simpsson 0 Reserved Nisse Hult 0 Reserved Nanna Hult Reserv I Cancel Output Data Number of Seats: Number of Reserved Number of Vacant: Total Revenue 240 3 237 26.19Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started