Question: I have an assignment where we are creating a simple java ticket system. It requires three different java files, a ticket class, a vip ticket
I have an assignment where we are creating a simple java ticket system. It requires three different java files, a ticket class, a vip ticket class, and a ticket client. I have already done the classes but I'm stuck on the ticket client. I posted below the instructions of the client as well as a screen shot of part of the sample output. Sample output has 20 tickets total, but I just included the bottom 5 since the last ticket is the vip ticket. Rest of the output above is the same as the others just the seat number is changed.
Ticket Client
You should create a Client program to create tickets and then print those tickets.
This class should contain a main method and should declare an array of Tickets.
The number of tickets created should be a class constant at the top of the program so that it can be easily changed. (Testing with 20 so one VIP ticket is for sure printed.)
You should have a method that takes the Ticket array as a parameter and create new Tickets according to the following:
95% of the total tickets should be general admissions tickets (Ticket objects)
5% of the total tickets should be VIP tickets (VIPTicket objects)
Make sure that the total number of tickets adds up to the constant at the top of the program! Do not hardcore in the amounts for each type of ticket - come up with a formula using the class constant.
You should have a method that takes the Ticket array as a parameter and prints all the tickets by utilizing the methods in the Ticket/VIPTicket classes.
Your printed tickets must print: the seat, the cost, the type of ticket, and any ticket's associated discounts.

11 SEAT # 15 C COST $10.00 K TYPE: General Admissions E| No associated discounts TI TI 11 SEAT # 16 C COST $10.00 K TYPE: General Admissions E No associated discounts TI 11 SEAT # 17 C COST $10.00 K TYPE: General Admissions E| No associated discounts TI TI 11 SEAT # 18 C COST $10.00 K TYPE: General Admissions E No associated discounts TI 11 SEAT # 19 C COST $10.00 K TYPE: General Admissions E| No associated discounts TI TI 11 SEAT # 20 C COST $20.00 K TYPE: VIP El You get FREE Parking
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
