Question: Write a well-documented, efficient Java program that implements the algorithm you identified. Include appropriate documentation as identified in the documentation expectations document. that gathers the
Write a well-documented, efficient Java program that implements the algorithm you identified. Include appropriate documentation as identified in the documentation expectations document. that gathers the ticket buyer name, seat number, and how the ticket will be received such as delivery or not. The cost of a ticket is based on the seat number of the ticket holder:
Seats in the range of 1-10 cost $700.74
Seats in the range of 11-20 cost $400.50
Seats in the range of 21-30 cost $200.32
Seats in the range of 31-40 cost $99.99
each ticket has a purchase fee of $6. tickets that are sent by mail to the buyer includes a 3% delivery fee.
Note: You must use the JOptionPane class for input/output. Additionally, if you use System.exit as shown in the textbook, it may only be used as the absolute last line in the program. You may not use System.exit, or any variant that exits the program in the middle of the program. The program should be designed to only exit once the algorithm has finished.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
