Question: Write a program that reads a given data file called tickets that consists of tickets and the ticket prices. Your program should read the data
Write a program that reads a given data file called tickets that consists of tickets and the ticket prices. Your program should read the data and compute the find minimum, maximum and average ticket prices and output the report into a file called output.txt. The report file should look exactly (or better than) the one shown below. Your program should implement the Java ArrayList class, Java File I/O, and Java error handling exception.
Ticket Price A31 149.99 B31 49.99 A41 179.99 F31 169.99 A35 179.99 A44 169.99 Below is the content of the output.txt file: ******************************************* TICKET REPORT ******************************************* There are 6 tickets in the database. Maximum Ticket price is $179.99. Minimum Ticket price is $49.99. Average Ticket Price is $XXX.XX. Thank you for using our ticket system! ***************************
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
