Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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!

image text in transcribed

image text in transcribed

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

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

Step: 3

blur-text-image

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

Professional SQL Server 2012 Internals And Troubleshooting

Authors: Christian Bolton, Justin Langford

1st Edition

1118177657, 9781118177655

More Books

Students also viewed these Databases questions

Question

Explain how reward systems impact ethical behavior.

Answered: 1 week ago

Question

To solve p + 3q = 5z + tan( y - 3x)

Answered: 1 week ago