Answered You can hire a professional tutor to get the answer.

QUESTION

Contact Management System ------------------------- 1. Display contacts 2. Add a contact 3. Update a contact 4. Delete a contact 5. Search contacts...

Contact Management System

-------------------------

1. Display contacts

2. Add a contact

3. Update a contact

4. Delete a contact

5. Search contacts by cell phone number

6. Sort contacts by cell phone number

0. Exit

Select an option:> 2

Please enter the contact's first name: I Should

Do you want to enter a middle initial(s)? (y or n): Y

Please enter the contact's middle initial(s): Not Be

Please enter the contact's last name: In This List

Please enter the contact's street number: -77

Please enter the contact's street number: 77

Please enter the contact's street name: Cityscape Rd.

Do you want to enter an apartment number? (y or n): y

Please enter the contact's apartment number: -1200

Please enter the contact's apartment number: 1200

Please enter the contact's postal code: Q8Q 3J3 P3P

Please enter the contact's city: Somewhere City

Please enter the contact's cell phone number: 111b223333

Enter a 10-digit phone number: 1112223333

Do you want to enter a home phone number? (y or n): N

Do you want to enter a business phone number? (y or n): y

Please enter the contact's business phone number: 222-333-4444

Enter a 10-digit phone number: 2223334444

--- New contact added! ---

(Press Enter to continue)

Contact Management System

-------------------------

1. Display contacts

2. Add a contact

3. Update a contact

4. Delete a contact

5. Search contacts by cell phone number

6. Sort contacts by cell phone number

0. Exit

Select an option:> 1

+-----------------------------------------------------------------------------+

|               Contacts Listing                |

+-----------------------------------------------------------------------------+

 Rick Grimes

  C: 4161112222  H: 4162223333  B: 4163334444

    11 Trailer Park, King City, A7A 2J2

 Maggie R. Greene

  C: 9051112222  H: 9052223333  B: 9053334444

    55 Hightop House, Bolton, A9A 3K3

 Morgan A. Jones

  C: 7051112222  H: 7052223333  B: 7053334444

    77 Cottage Lane, Peterborough, C7C 9Q9

 Sasha Williams

  C: 9052223333  H: 9052223333  B: 9054445555

    55 Hightop House, Bolton, A9A 3K3

 I Should Not Be In This List

  C: 1112223333  H:       B: 2223334444

    77 Cityscape Rd., Apt# 1200, Somewhere City, Q8Q 3J3

+-----------------------------------------------------------------------------+

Total contacts: 5

(Press Enter to continue)

Contact Management System

-------------------------

1. Display contacts

2. Add a contact

3. Update a contact

4. Delete a contact

5. Search contacts by cell phone number

6. Sort contacts by cell phone number

0. Exit

Select an option:> 2

***ERROR: The contact list is full! ***

(Press Enter to continue)

Contact Management System

-------------------------

1. Display contacts

2. Add a contact

3. Update a contact

4. Delete a contact

5. Search contacts by cell phone number

6. Sort contacts by cell phone number

0. Exit

Select an option:> 3

Enter the cell number for the contact: 6665555

Enter a 10-digit phone number: 6665551111

*** Contact NOT FOUND ***

(Press Enter to continue)

Contact Management System

-------------------------

1. Display contacts

2. Add a contact

3. Update a contact

4. Delete a contact

5. Search contacts by cell phone number

6. Sort contacts by cell phone number

0. Exit

Select an option:> 3

Enter the cell number for the contact: 9051112222

Contact found:

 Maggie R. Greene

  C: 9051112222  H: 9052223333  B: 9053334444

    55 Hightop House, Bolton, A9A 3K3

Do you want to update the name? (y or n): y

Please enter the contact's first name: Maggie

Do you want to enter a middle initial(s)? (y or n): y

Please enter the contact's middle initial(s): R.

Please enter the contact's last name: Greene Grimes

Do you want to update the address? (y or n): y

Please enter the contact's street number: 55

Please enter the contact's street name: Hightop House

Do you want to enter an apartment number? (y or n): y

Please enter the contact's apartment number: 55

Please enter the contact's postal code: A9A 3K3

Please enter the contact's city: Bolton

Do you want to update the numbers? (y or n): y

Please enter the contact's cell phone number: 9051112222

Do you want to enter a home phone number? (y or n): n

Do you want to enter a business phone number? (y or n): n

--- Contact Updated! ---

(Press Enter to continue)

Contact Management System

-------------------------

1. Display contacts

2. Add a contact

3. Update a contact

4. Delete a contact

5. Search contacts by cell phone number

6. Sort contacts by cell phone number

0. Exit

Select an option:> 1

+-----------------------------------------------------------------------------+

|               Contacts Listing                |

+-----------------------------------------------------------------------------+

 Rick Grimes

  C: 4161112222  H: 4162223333  B: 4163334444

    11 Trailer Park, King City, A7A 2J2

 Maggie R. Greene Grimes

  C: 9051112222  H:       B:

    55 Hightop House, Bolton, A9A 3K3

 Morgan A. Jones

  C: 7051112222  H: 7052223333  B: 7053334444

    77 Cottage Lane, Peterborough, C7C 9Q9

 Sasha Williams

  C: 9052223333  H: 9052223333  B: 9054445555

    55 Hightop House, Bolton, A9A 3K3

 I Should Not Be In This List

  C: 1112223333  H:       B: 2223334444

    77 Cityscape Rd., Apt# 1200, Somewhere City, Q8Q 3J3

+-----------------------------------------------------------------------------+

Total contacts: 5

The upon content is the outcome of the code.

What i want to ask you is why the apartment number that i input in the 'update contacts' part is not shown in the result..

The apartment number(update section) is not updated..

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question