Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment Description: In the second assignment we will create a simple question and answer game using if statements, Boolean expressions, Python I/O for interaction and

Assignment Description: In the second assignment we will create a simple question and answer game using if statements, Boolean expressions, Python I/O for interaction and looping control flow structures.

Program Description, Interfaces, and Functionality: Choose a topic and create three questions and answers to ask a player. For each question, the game will decide if the correct answer was chosen. The player must be able to continuously run the game if they did not answer all three questions correctly. If the player answers all questions correctly the game will end.

See the usage below for implementation details.

1. At least three multiple choice trivia questions with a topic of your choice (e.g. movies, sports, geography, etc.). Do not reuse the questions from this handout.

2. The use of input and print to read in data and write out data.

3. Variables and assignment statements to hold the data (i.e. a players answer) entered in using the input function.

4. A game loop to continuously play the game if a player presses y or chooses to exit by typing n. Note: the game exits if all three questions are answered correctly (see sample interaction in this handout.

5. The display of three questions and answers.

6. Functionality to check the correct answers and display either correct or try again, that is the incorrect answer.

7.. A way for the player to quit the game or play again.

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

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

More Books

Students also viewed these Databases questions

Question

How are procurement costs reduced through e-procurement?

Answered: 1 week ago

Question

Describe Raedekes entrapment theory of sport burnout.

Answered: 1 week ago

Question

5. Make suggestions for use at home.

Answered: 1 week ago

Question

Language in Context?

Answered: 1 week ago