Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need just the pseudocode of this program. No programming language. Write a dat

ID: 3834781 • Letter: I

Question

I need just the pseudocode of this program. No programming language.

Write a data text file with a list of phone number (10 digits with dashes, 555-555-5555)

Read text file to retrieve contact info (phone number, first name, last name)

Read the file into memory (hint: parallel arrays)

Individual contact info can also be entered from the keypad

Process: (open/read the file, display the menu, close file)

Maintain the phone list by ADD, UPDATE, DELETE, INQUIRE/SEARCH, SORTING

When each item on the menu is done, redisplay the menu

Output: (per each navigation menu item)

Design a GUI screen that include

Keypad with numbers

Navigation menu

Add New Contact ( textbox for first name, last name, textbox for phone number)

Update Contact (search by phone number to display name and phone OR search by name to display name and phone number)

Delete Contact from List (change name to blank)

Inquire: enter phone name or name

List: Sort list either ascending or descending order by first name or last name

Help

Save phone list

Exit

Define a CONTACT class

Fields (phone number, first name, last name)

Set & get method

Constructor

Methods (add, update, delete, save, sort, display the list etc. )

Object: personal contact list Or company phone directory (inheritance)

Public class PersonalContact extends Contact { }

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, save contact info, display confirm 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

Pseudocode

Explanation / Answer

Pseudocode is an artificial and informal language that helps programmers develop algorithms. It is a "text-based" detail (algorithmic) design tool.

==================================
Here is the pseudocode as per the given criteria, please go through it:-
+++++++++++++++++++++++++++++++++++++++++++++++++++++++=
Enter the phone number (phone number: range 1-999)
   Print "Choose option(1/2/3/4/5/6/7/8)"
       Add-case 1
       Change-case 2
       Delete-case 3
       Inquire-case 4
       Sort-case 5
       Help-case 6
       Save-case 7
       Exit-case 8
      
if the number is not found
   display message

elseif number is found
   display name
  
------------------------
case 1: Add
   Print "Do you want to add number"
if yes
{
   if name is blank
       enter name(first and last)"
   elseif
       save contact info
   Print"confirmation message"
}

elseif
   return to menu
==========================
case 2: Change
   Print "Do you want to change name"
if name is blank
   enter new name
elseif
   return to menu
===========================
case 3: Delete
   Print "Do you want to delete?"
if confirm is yes
   Blank out name
elseif
   return to menu
===========================
case 4: Inquire
   Print "Do you want to Inquire?"
if found and name is blank
   Display message
elseif
   return to menu  
===========================
case 5: Sort
   Print "Sort in ascending,descending or return to menu"
if ascending
   sort phone number in ascending order
elseif descending
   sort phone number in descending order
elseif
   return to menu
Display phone list
===========================
case 6: Help
   Display menu option
   Description of one function
return to menu
===========================
case 7: Save
   write phone list back to file
return to menu
===========================
case 8: Exit
if file is open
   save phone list
elseif
   close file
return to menu
===========================
case 9: Error
if menu selection is made that is not displayed
   Print" Issue message"
   Display the help screen