I need help understanding and coming up with a design templa
I need help understanding and coming up with a design template for a programming project using java. The program requires me to input a text file that stores data, write/read/sort/modify that data, and then save the changes back to the text file. I honestly don\'t know where to start. I would like to create a flowchart but I have never done anything like this. Here are the instructions:
So far this is what I have: In the main method I will have a loop that runs either if statements or a switch statement for each letter that can be input. in each switch option there will be a call to a method for that letter. If Q is selected it will call a save method, and then break out of the loop and end the program. Each method will contain whatever function is required for the corresponding letter and then return to the main loop.
I\'m not sure whether these methods should be in their own separate files or all within the main file.
This assignment has six objectives: 1. 2. 3. 4. 5. 6. To open and input a list of sorted (by the key) data records from database file to insert new data record to the correct position (maintain sorted) to list the searched data records under user\'s searching criteria to delete and modify data records to update the data record file to write a design document Description You are developing and maintaining a mini database that stores the contact information of your friends and family members. This mini database has three fields, last name, first name, and telephone number per record (one record per person). All records are originally on a file called MiniDB. You are asked to performing the following operations after input all records from MiniDB to your program and the commands as follow. 1) L: list all data records-last name, first name, and telephone number 2) Iinsert a new data records -last name, first name, and telephone number 3) S search record using either last name, first name, or telephone number. Print the result on the screen, if there are multiple match print al. Example: S John will find all persons with name fields match to \"John\". If no \"John\" exist, it outputs John not found on the screen 4) D : remove a data record from the MinnDB. Example: D John will delete the person who\'s name match \"John\". The D command need to confirm with the user if there is a match. For multiple matches, the D command need to ask the user which one need to be removed from the MiniDB 5) M:modify a record. Example: M John first search for \"John\", if found then ask the user for the updated information. For multiple matches, the D command need to ask the user which \"John need to be modified 6) W: write the changes to the MiniDB file 7) Q: quit the program without change to the MiniDB file Instructions You need to use a loop for the user command, until the Q command. You need to have separate methods for each the commands L, I, S, D, M, and W. You are encouraged to use multiple .java files to manage your modules (or methods). You need to submit all .java files if you have more than one .java file. You have to name your main java code Project.java, you may name your other .java (if you have more than one .java file) files under your preference. A typical MiniDB file, sorted by the last name (the first field) as the following Chong Jiwan 505-445-3738 Garcia John 505-338-2567 John Joseph 212-780-3342 Markle Kristin 612-890-4428 Rueda Juan 505-224-3876Solution
Keep all methods in the same program file. Till now, whatever you have done is correct. I can help you in writing some of these functions. Just call them wherever required.
for character l. the method can be...
rows.add([first,last,tele]);
}
