Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The following is to be completed with the Buffered Reader/Writer Arrays/Files Assignment 1. Create a file which contains the following information. Name the file employee.txt.
The following is to be completed with the Buffered Reader/Writer Arrays/Files Assignment 1. Create a file which contains the following information. Name the file employee.txt. Save as FilesBEx1 Employee# Employee Name Marital Status Age Salary 0128 B.Smith M 19 11000 1008 H.Holly S 24 14800 2009 S.Dan S 26 12000 1109 T.Fal M 32 16400 0118 H.Onda 19 22000 Create the following using a Menu 1. Open File 2. Save File 3. Add a record 4. Delete a record 5. Modify a record 6. Display All 7. Quit When Open is selected from the file is retrieved into array(s). When Save is selected from the menu contents of the array(s) are saved to a file When Add is selected from the menu, a new employee can be added into the arrays. There should no file access at this point. When Delete is selected from the menu, the user is displayed employee names and prompted which one to delete. When a name is selected (you may list numbers beside the names), the employee is deleted. (Removed from the array(s)) When Modify is selected from the menu, the user is displayed the names of the employees and prompted which one to modify. When a name is selected (you may list numbers beside the names) the user can then change the information for that employee. The arrays are then updated. When Display All is selected from the menu, all employees and their information are displayed to the user, neatly line up with titles. When Quit is selected from the menu, the program terminates
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