Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lab Week 4 Loops and Conditional Skills Needed to complete this Lab Loops-For and While Children's Arithmetic Game Youl need to use many types of

image text in transcribed
image text in transcribed
Lab Week 4 Loops and Conditional Skills Needed to complete this Lab Loops-For and While Children's Arithmetic Game Youl need to use many types of loops for this assignment In this lab you'l create a game for children where they are asked to answer 5 math questions. Each question will be 2 random numbers from 1-10, either added or subtracted. The player will be allowed 3 guesses. After the 5 questions are given, they are told how many they got right out of 5, and what the percentage was. They are then asked if they want to play again. The player may enter Y or N only Example Type "copyright, "credits" or "license()" for more information. RESTART What is 3 1 Guess #1 --> 1 Guess #2 -> e Guess #3--> 5 The correct answer is 2 not 5 What is 7+6 Guess #1 1 Guess #2 =-> 13 You are correct What is 6 1 Guess #1 ..> 9 Guess #2 ") 7 You are correct What is 5+3 Guess #1 "> 8 You are correct What is 8 2? Guess #1 --> 6 You are correct You got 4 out of 5 That's 80.0 % Do you want to play again? Y to continue, N to quity What is 87 Guess #1--> 15 You are correct What is 6+7 Guess #1 --> 13 You are correct What is 7+7? Guess #1 .. > 14 You are correct What is 1 6 Guess #1--> -5 You are correct What is 7+9 Guess #1 --> 18 Guess #2--> 15 Guess #3--> 14 The correct answer is 16 not 14 You got 4 out of 5 That's 8e.e % Do you want to play again? Y to continue, N to quit>N Grading and Turning In Tun in your program before the end of the lab. Only,upload the Lab3.py file, as other files wll be ignored. The lab instructor will grade your submissions

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

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

1583473858, 978-1583473856

More Books

Students also viewed these Databases questions