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
A Java program to do the following. make one array named ticketPrice[ ] - This array will have a size of 4 Load this arr
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
A Java program to do the following. make one array named ticketPrice[ ] - This array will have a size of 4 Load this arr
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!