Page 1 of 1

A Java program to do the following. make one array named ticketPrice[ ] - This array will have a size of 4 Load this arr

Posted: Sat May 14, 2022 3:57 pm
by answerhappygod
A Java program to do the following.
make one array named ticketPrice[ ] - This array will have a
size of 4 Load this array with data from this file.
The file has 4 records in it. -
This file holds the prices for the different levels of tickets.
- prices.txt Display this menu to the user - "Select a Ticket
Level: 1A - 2A - 3A - 4A"
Make a method to validate that the user entered 2 digits for the
Ticket Level.
Display the selected ticket price to the user Use a String
method to combine the Ticket Level number and the Ticket Price
-
For example, the output might look something like this: "Ticket
Level 1B - $100"
Comment your code thoroughly.
Make sure that your code is KISS