Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please build this flowgorithm program, not flowchart. I am having trouble with the syntax for flowgorithm using arrays so that is important. Phone Number Lookup

Please build this flowgorithm program, not flowchart. I am having trouble with the syntax for flowgorithm using arrays so that is important.

Phone Number Lookup

Design a program that has two parallel arrays: a string array named people that is initialized with seven random names and a string array named phone-numbers that is initialized with the phone numbers of each person. The phone-numbers array should be a string so the phone numbers can be formatted, for example (555) 555-5555. The program should allow the user to enter a persons name (or part of a persons name). It should then search for that person in the people array. If the person is found it should get that persons phone number from the phone-numbers array and display it. If the person is not found in the people array the program should display a message indicating so.

The names and numbers must be hardcoded into the program. The program should start by asking for the name the user wants to lookup then display their phone number.

Please enter a name

Jane

The phone number is (555) 555-0000

Please enter a name

John

That name is not in the phone list

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Successful Keyword Searching Initiating Research On Popular Topics Using Electronic Databases

Authors: Randall MacDonald, Susan MacDonald

1st Edition

0313306761, 978-0313306761

More Books

Students also viewed these Databases questions