Question
IO Java ______________________________________________________________________ This program will allow the user to add, edit and remove a list of names that is stored. Present the user with
IO Java
______________________________________________________________________ This program will allow the user to add, edit and remove a list of names that is stored.
Present the user with the following menu: 1. Display Data 2. Add New Entry 3. Edit Data 4. Remove Entry 5. Quit
Program will need implement each of these menu options as follows:
Display Data will read in a file called names.txt and display the names in numbered order.
Add New Entry will prompt the user for a new name. The name will need to be validated and then added to the end of the list of names in the file. Edit Data will show the list of numbered names and prompt the user to enter the number for the name they would like to edit. That name will be replaced with the new name that is entered by the user. (Validation required) Remove Entry will prompt for the number of the name to remove and remove it from the file.
Validation specs: Each each name should contain only letters and spaces(no digits or special characters). There is no limit to the number of spaces.
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