Question: I am programming a Quiz with C# and need to foolproof the code by disallowing improper input values and display an error message while giving

I am programming a Quiz with C# and need to foolproof the code by disallowing improper input values and display an error message while giving the user a chance to repeat the input.

Here are screenshots of my current code. Please include the output in your response! Thx!

I am programming a Quiz with C# and need to foolproof the

code by disallowing improper input values and display an error message while

Debug Default Visual Studio Community 2017 for Mac Q-Press %, to se Program.cs ProgramMain(stringD args) using System; 3 namespace MOD4._2 class Program static void Main(string[ args) stringl questions"Is a rainbow an arch of color?", 10 12 13 14 15 16 17 18 19 20 21 "Is a rainbow caused by reflaction of Light?", "What is the darivative of rainbow's refraction?", "How many colors are typically associated with rainbow?", "Is there such thing as a double rainbow?", Where are rainbow Located?", "what Initiliasim associates themselves with rainbows?", "There is a Rainbow Road level in what vadio game?", "Is the color Black ever included in raibows?", 23 24 25 26 "What may you find at the end of the rainbow?" 27 28 stringll answerChoice -"Yes,No", "Yes,No", Rain or Water, Grass, People,0ther Rainbow", 7,5,12,6", "Yes,No" North,South, No Specific Location, Along the equator", "LGBTQ, FBI ,NFL , NASA", 30 31 32 34 35 36 37 38 39 40 41"Donkey Kong, Mega Man,Mario Kart, Final Fanytasy" 42 43 "Yes,No", 45"Trash,Your Houese, YMCA,Pot of Gold" 46 47 48 49 50 51 52 string[] rightAnswer { "Yes", "Yes", "Rain Console.WriteLine( Simple Quiz Outline.") Console.WriteLine("Your name here?"; or Water", "7", "Yes", "No Specific Location", "LGBTQ", "Mario Kart", "No", "Pot of Gold''); Debug > Default Visual Studio Community 2017 for Mac Q Pr Program.cs Program Main(string[] args) 52 53 54 56 57 58 59 60 61 62 var name = Console. Read Line(); Console.WriteLine("What is this cource?"); var course Console.ReadLine) Console.WriteLine("What is today's date?") var date = Console.ReadLine(); var count10; while (true) 65 67 var correct 69 70 71 72 73 74 75 76 for (inti-; i Default Visual Studio Community 2017 for Mac Q Pr Program.cs Program Main(string[] args) 52 53 54 56 57 58 59 60 61 62 var name = Console. Read Line(); Console.WriteLine("What is this cource?"); var course Console.ReadLine) Console.WriteLine("What is today's date?") var date = Console.ReadLine(); var count10; while (true) 65 67 var correct 69 70 71 72 73 74 75 76 for (inti-; i

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!