Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this lab, you are to build a trivia game. The game should present each question - either in order or randomly - to the
In this lab, you are to build a trivia game. The game should present each question either in order or randomly to the player, and display up to four possible answers. The player is to input what they believe to be the correct answer. The game will tell the player if they got it right or wrong and will display their score. If they got it right, their score will go up If they got it wrong, their score will stay the same. After all the questions have been asked, the game will present the final score correct, the final score incorrect and allow the player to play again if they choose.
You have a lot of leeway in designing this game and you can use your book though there are minimum requirements to obtain all points mentioned after this paragraph Develop your own code and try to use as many of these tools and techniques that you learned about in Chapters in your text. You may leverage other techniques in other Chapters that were not covered if you like, BUT you will need to add comments to the code with why you selected them and a brief description on how it works.
Your final script MUST include the following at a minimum:
Main line logic
Error handling Tryexceptelsefinal
Header
Comments
Globallocal Variables Users name, counters, etc.
At least custom function
Use of ListTupleDictionary
Use of at least looping function while for
You will be graded on your program design and how well you incorporated what you have learned. If you get stuck or need some guidance, please feel free to ask.
To get you started, here are five, fouranswer multiple choice questions that you can use. The correct answers have been denoted with an asterisk. You may use your own questions if you like. When you "load" the questions into your program, you may rewrite them however you need to
How many computergenerated effects were used in the movie Lord of the Rings Return of the King?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started