Question
PROG 110: The programming language is C# Write a program that lets you keep track of your 5 best friends favorite TV show and the
PROG 110: The programming language is C#
Write a program that lets you keep track of your 5 best friends favorite TV show and the name of their favorite pet. [1] build 3 arrays, 1 each to hold friends names (just first name is fine), favorite TV shows, and pet names. [2] Build a loop that asks the user to enter their friends names and store them in the 1st array. [3] Build a second loop that then writes out those 5 names. [4] Modify the 2nd loop to ask each person what the name of their favorite TV show is, and save that in the 2nd array. Use their name in the prompt, such as: George, what is the name of your favorite TV show? [5] further modify the 2nd loop to also ask what their favorite pets name is, and store that in the 3rd array. Again, use their name in the prompt. George, what is the name of your favorite pet? Add 3 Console.WriteLine(); statement to mark the end of data input and the beginning of data querying. [6] build a loop that asks the user to enter a friends name. If the name is found in the 1st array, write out a response such as: Georges favorite TV show is Jeopardy and his favorite pets name is Percy If the name is not in the 1st array, write out a message that says Did not find that person. If the user enters the word done the program should exit.
in case you need my 5 best friends, here they are:
1. Name: Samuel ; Fav Tv Show: power; pet name: max
2. Name: David; fav tv show: snowfall; pet name: sasha
3. Name: Sephora; fav tv show: Rosalina; pet name: rex
4. Name: Yvan; fav tv show: Power; pet name: Bella
5. Name: Naomi; fav tv show: euphoria; pet name: Coco
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started