Question: Below is a copy of the code I already have, i just can not figure out what to do to calculate the final score. Any

Below is a copy of the code I already have, i just can not figure out what to do to calculate the final score. Any guidence would be appreciated.

# Guessing Number

import random

incorrectCount = 0

# Generate a random number to be guessed

number = random.randint(0, 100)

print(number)

print("Guess a magic number between 0 and 100")

guess = -1

while incorrectCount

#Prompt user to guess the number

guess = eval(input("Enter your guess or -1 to terminate: "))

if guess == number:

print("Yes, the number is", number)

elif guess == -1:

print("User terminated program ")

break

elif guess > number:

print("Your guess is too high. Enter another number to try again or -1 to terminate")

elif guess

print("Your guess is too low. Enter another number to try again or -1 to terminate")

incorrectCount += 1

else:

print("User inputted 3 incorrect answers, program terminated" )

 Below is a copy of the code I already have, i

o The program shall end when the user enters -1 as an answer, or when the user misses 3 questions in a row. o The final score consists of the number of correct questions (as it is currently in the listing), plus the longest streak of correct answers multiplied by 10. For example, if at the end of the game the user answered correctly 8 questions, and the longest streak of correct answers was 4 questions in a row, the final score is 8 + (4 x 10) = 48

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!