Purpose: Using C#, develop an application for a Quiz. Outcomes: 1. Apply the programming techniques of C#. 2. Apply sequence-logic and selection-logic concepts. 3. Write decision-making statements,...

1 answer below »











Purpose:


Using C#, develop an application for a Quiz.




Outcomes:


1. Apply the programming techniques of C#.


2. Apply sequence-logic and selection-logic concepts.


3. Write decision-making statements, iterative statements to solve problems.


4. Use functions/methods to optimize your application.


5. Explore best practices for designing and developing Console applications.






Problem statement:


The application creates a Quiz and displays a Progress Report. Give a suitable name for your application.



The user enters his/her last name and first name at the beginning of the quiz.



The quiz contains five questions about a hobby, popular music or any other individual interest.


Each question should be a multiple-choice question with two options.


Each question should be worth 20 marks.



When the user answers the question correctly, display a congratulatory message along with the score.



If the user responds to a question incorrectly, display an appropriate message.


The user should be presented with each question continually until it is answered correctly.



The application must keep a track of the number of attempts for each question.


For any question, the user can score:



  • first attempt à 20 marks

  • second attempt à 10 marks

  • any additional attempt à 0 marks



When the user ends the quiz, the application must display a well-formatted Progress Report (on the screen itself), indicating the following:



- Current date and time


- Full Name of the user


- Marks scored for the quiz


- Percentage score (for e.g. 60/100 would be 60%)


- Number of attempts for each question.

Answered Same DayFeb 13, 2021

Answer To: Purpose: Using C#, develop an application for a Quiz. Outcomes: 1. Apply the programming techniques...

Arun Shankar answered on Feb 19 2021
145 Votes
using System;
class MainClass
{
public static void Main (string[] args)
{
Console.Write
Line ("~~~~SOCCER QUIZ~~~~");
Console.WriteLine ("~~~~~~~~~~~~~~~~~~~");
int score=0;
string fname, lname;
Console.Write("Enter your first name - ");
fname = Console.ReadLine();
Console.Write("Enter your last name - ");
lname = Console.ReadLine();
Console.WriteLine("{0} {1}, Let's begin!",fname,lname);
string[] questions;
questions = new string[5]{"How many parts is the full game divided to and how long is each one ?",
"How many players start the game for each team ?",
"How many substitutions does a team have through out the game?",
"In case of a draw, teams go to extra times.Hhow long is each one of the extra times ?",
"How long can the goalkeeper keep the ball in his hands without committing a foul ?"};
...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here