Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Java Program to help the user buy tickets to a movie theater . Write a menu driven program with multiple classes to simulate

Write a Java Program to help the user buy tickets to a movie theaterimage text in transcribed

. Write a menu driven program with multiple classes to simulate ticketing and seating in a movie theater. There are three screens in the movie theater with four show times. The rows has 20 seats. When a customer purchases a seat he issued a ticket showing his name, a specific seat such as B14 or type of ticket, movie name and show time. The current price of a Infant - under 2 years old. Sits on the parent's lap and does not occupy a seat. Is not charged. Child - aged 2-14 - charged half-price Adult - aged 15-60 charged full-price. Senior - aged over 60 - charged % price. At the start of the simulation, read the names of the three movies and the four show times for each from the user. Display a menu of options to the user and implement them: 1. Buy an infant +adult ticket 2. Buy a child ticket 3. Buy an adult ticket 4. Buy a senior ticket 5. Show available seats for a specified movie and showing 6. Display the aggregate sales for each movie with the number of seats and total revenue 7. Quit program When a ticket is bought, the ticket should be displayed to the screen. If a ticket for a given movie and showing is not available, the user should be told and no ticket issued

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions