Question
Use Java and preferably Eclipse: You are going to create a switch loop with different options. It is user choice to choose an option. Option
Use Java and preferably Eclipse:
You are going to create a switch loop with different options. It is user choice to choose an option.
Option 1: Ask users to input Person Name, Ticket Type and Fine. You will keep asking users until they press q key. Once user types Q, you will store all the details into the .txt file or any other file
Option 2: Use the file that is generated from Option 1 and perform sorting by person name. You also need to prompt users if option 1 is not complete. You will then create another file with sorted person name.
Option 3: Display file
You will read entire file from option 1 and display it on the screen. I would like to see everything as comma separated. You also need to use exception handling here.
Option 4:
Ask users to enter a search keyword. You will then search the keyword in the file (option 1) and display success or failure message
Option 5: Use the array concept and read the person name from the file. Just view the entire array on the output screen.
Option 6: Replace function. Ask users to replace ticket type and generate a new file with new ticket type. Please keep rest of the information same as it is.
Option 7: Delete all the files from hard drive
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started