Question: C# problem: For this assignment you'll mimic a phone speed dialing function. Imagine that there are 6 speed-dial slots, each with a person's name and

C# problem:

For this assignment you'll mimic a phone speed dialing function. Imagine that there are 6 speed-dial slots, each with a person's name and their phone number.

You will:

1. List the contents of all the slots, one slot per row. Each will look something like this:

Slot 1: Arnold 213-222-1111

2. Next, ask the user to provide the name associated with a number. If the name exists (case insensitive), print the message "Calling name at number." If the name does not exist, tell the user that the name is not found.

3. Finally, ask the user whether they'd like to search for another name and loop back to 2 if they would.

Use the two parallel string arrays, Name and Number, illustrated below. Use a while loop to search for name.

C# problem: For this assignment you'll mimic a phone speed dialing function.

output

Imagine that there are 6 speed-dial slots, each with a person's name

Name Number Arnold 213-222-1111 213-111-1111 Sly Dwayne 213-444-1111 Vin 213-666-1111 JCVD 213-321-1111 Steven 213-978-1111 slot 1. Arnold slot 2. sly slot 3. Dwayne Slot 4. Vin slot 5. JCVD slot 6. Steven 213-222-1111 213-111-1111 213-444-1111 213-666-1111 213-321-1111 213-978-1111 Who would you like to call? keanu Bummer, dude. Nobody named keanu in your speed dial. Would you like to look up another name? yes Who would you like to call? jcvd slot 5: Calling JCVD at 213-321-1111 Would you like to look up another name? y Who would you like to call? Vin slot 4: Calling Vin at 213-666-1111 Would you like to look up another name? n Press any key to continue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!