1. Engineering
  2. Computer Science
  3. this module week you will implement repetitive tasks in your...

Question: this module week you will implement repetitive tasks in your...

Question details

This module week, you will implement repetitive tasks in your program while using conditional and iteration statements in C# with VISUAL STUDIO (I am using a MacBookPro).

  • Implement a loop option that suits your project. The goal is to cycle through all questions in a first round and read the appropriate user’s input from the console.
  • Mark whether the input is the correct answer.
  • Cycle through all incorrectly answered questions in a second round.
  • Tally the results and display the number of correct/incorrect answered questions, at the end.

Here is my current code:

All I really need to do is:

1. ) See how to loop at the end of the quiz if they are indeed wrong answers

2.) Tally the results and display the number of correct/incorrect answered questions, at the end.

DebugDefault Visual Studio Co...nity 2017 for Mac Press to sea Program.cs ProgramM Main(string args) using System; 3 4 - name space MOD3 class Program static void Main(string[] args) //Declaring the variable here //Personalize Code by adding name, course, and date to console Console.WriteLine Simple Quiz Outline): Console.WriteLine(Your name here?); 10 12 13 14 15 16 17 18 19 20 21 var name = Console.ReadLine(); Console.WriteLine(What is this course?; var course = Console.ReadLine(); Console.WriteLine(What is todays date?); 23 24 25 26 27 28 29 30 31 32 var date = Console.ReadLine(); //Display Question 1 Console.WriteLine(1.; Console.WriteLine(Is a rainbow an arch of color?); //Display Options Console.WriteLine( Answer 1. -Yes Answe r 2· = No); //Prompt test taker to answer question Console.WriteLine(Choose correct answer); 34 35 36 37 38 39 40 41 42 43 var answe r = Console.ReadLine(); if (answer Yes) Console.WriteLine(Correct!); else if (answer! Yes Console.WriteLine(Incorrect...); 45 46 Errors Tasks Application Output- MOD3QuizPackage Console

DebugDefault Visual Studio Co...nity 2017 for Mac Press 8 to sea Program.cs Program Main(string[] args) 47 48 49 50 51 52 53 54 //Taking input from the test taker and displaying it //Suggests using bool data type for true or false questions Console.ReadLine() //Display Question 2 Console.WriteLine(2.) ; Console.WriteLine(Is a rainbow caused by refraction of light?); //Display Options 56 57 58 59 60 61 62 63 64 65 //Suggests using bool data type for true or false questions Console.WriteLine (Answer 1 = Yes\nAnswer 2. = No); //Prompt test taker to answer question Console.WriteLine(Choose correct answer); var Question2 = Console.ReadLine(); 67 68 69 70 71 72 73 74 75 76 if (Question2Yes) Console.WriteLine(Correct!); else if (Question2 != Yes) Console.WriteLine(Incorrect...); //Taking input from the test taker and displaying it  

This current code runs perfectly fine via Visual Studio on my MacBook as of now. All I have managed to do is

1. Ask the questions

2. Tell the user whether or not the answer is correct or incorrect

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution