I apologize that I initially hid a good part of the story.
Step 1. Make sure your story is complete.
The Theater consists of Balcony and Parterre.
Parterre has 20 rows, and 20 seats.
Balcony has 10 rows and 18 seats.
The Theater has a default price per ticket. Price for ticket for seats on balcony is with 10% discount.
Theater need to have functions:
drawTheater, priceForTicket, isSeatReserved,...
leaves a bunch of questions open. I'm going to complete it, making some assumptions along the way.
Exam. Time: 120 min.
Write java application for the sale of tickets at the theater. The file "performances.txt" contains the names of performances. Performances may be ordinary, child and hit. While we working with the application it is possible to change the type of performance. Theatre has a parterre and a balcony. Parterre has 20 rows and 20 seats, and balcony has 10 rows and 18 seats. Ticket for parter's seat costs 5$, 4$, 10$ (5$ for ordinary performance, 4$ for kids performance, 10$ for hit performance). Ticket for seat on balcony has 10% discount.
Salesperson run application. He can choose performance name from ComboBox. When the name of performance is selected, on the screen will be drawn current state of reserved seats in the theatre (reserved seat is drawn with red color, and not reserved seat is drawn with green color). When salesperson click on not reserved seat it opens the form for selling the ticket. Saleperson fills password of buyer. If a person has never bought a ticket, saleperson can fill new password and to enter information about the customer (firste name, last name, phone number). Information about customers is stored in a file "customers.txt". The customer can be an ordinary customer or VIP customer. VIP customers have 20% discount. after-sale ticket seat is marked as reserved. Using the menu the seller can see the table showing current revenue for each theater's performance.
Take care of object-oriented application design.