Quiz Game Project in C++

By: Prof. Fazal Rehman Shamil

Quiz Game Project in C++

This quiz game is designed to display certain questions onto the screen and the user guesses the correct answer. If the user enters the correct choice, then it will add 10 points to the total score and if a user is unable to guess the correct answer then no negative marking will be performed. The total score at the end of this game is 100.

Scoring Criteria:

If the score is equal to 100 then print: “No cheating…… You have done this earlier also”

If the score is equal to 90, then print: “You are extremely intelligent Your Score is 90”

If the score is equal to 80, then print: “ You are intelligent Your Score is 80”

If the score is equal to 50 or 60 or 70 then print: “You are average Your Score is “<<x<<“Better luck next time”

If the score is less than equal to 40 then print: “use…….. Not even 5 questions right”

 

Functions of Quiz Game

  1. void header()

This function is specifically designed to display a stylish header on the top of the game.

  1. void footer()

This function is specifically designed to display a stylish footer at the bottom of the game.

  1. void user()

This function is specifically designed to get names from users and displays on the screen.

  1. void results()

This function is specifically designed to display the results of the game at the end.

 

 

Prof. Fazal Rehman Shamil
Latest posts by Prof. Fazal Rehman Shamil (see all)