Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
I will also need some screen shots after run. Thanks The program requirements are: Company Phone list File layout:
Hi, I need help writing a Java program. I will also need some screen shots after run. Thanks The program requirements are:
Company Phone list
File layout: Phone number (3 digits), Last name, First name
Task: Maintain the phone list by Add, Change, delete, inquire and sorting.
Read the file into memory (hint: parallel arrays)
Display Menu:
1. List on screen
2. Add to list (name and phone number)
3. Change name by phone number
4. Delete from List (change name to blank)
5. Inquire: enter phone number, display Name
6. Sort list either ascending or descending order
7. Help
8. Save phone list
9. Exit
When each item on the menu is done, redisplay the menu
Process:
Open file, display menu, close file
List:
Show on screen Phone number, Last name, first name
Add:
Enter phone number (phone number: range 1-999)
If not found - display message
If name is blank, enter name (first and last)
If name NOT blank, display message
Change:
Enter phone number
If not found - display message
IF found - display name and ask for new name
If name is blank, ask for new name
Delete:
Enter phone number
If not found - display message
If found - display name and confirm delete
If confirm is yes - blank out name
If confirm is no - return to menu
If name is blank, display message
Inquire:
Enter phone number
If found - display name
If not found - display message
If found and name is blank - display message
Sort:
Question: sort ascending, descending or return to menu
If return to menu, then return to menu
If ascending- sort phone number ascending
If descending - sort phone number in descending order
After sort, display phone list
Help:
Display menu option and a one description of the function
Save:
Write phone list back to file
Exit:
If file is open, save phone list, close file
Terminate program
Error:
If a menu selection is made that is not displayed (1-9)
Issue message and display the help screen