Answered step by step
Verified Expert Solution
Link Copied!

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 30 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 (Try/except/else/final)
Header
Comments
Global/local Variables (Users name, counters, etc.)
At least 1 custom function
Use of List/Tuple/Dictionary
Use of at least 1 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, four-answer 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 re-write them however you need to.
How many computer-generated 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

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

Climate And Environmental Database Systems

Authors: Michael Lautenschlager ,Manfred Reinke

1st Edition

1461368332, 978-1461368335

More Books

Students also viewed these Databases questions

Question

The nature and importance of the global marketplace.

Answered: 1 week ago