Question: Extend / modify the previous part to include the following: 1 . Use a while statement to create a loop that allows the user to
Extendmodify the previous part to include the following:
Use a while statement to create a loop that allows the user to play multiple rounds of guessing the year game.
Implement a scoring system:
aAward points for correct guesses on the first attempt.
bAward points for correct guesses on the second attempt.
cAward point for correct guesses on the third attempt, else no points awarded.
After each round, prompt the user to confirm if they want to continue playing.
Keep track of the total score across all rounds.
What to do
Extendmodify the previous part to include the following:
Use a while statement to create a loop that allows the user to play multiple rounds of
guessing the year game.
Implement a scoring system:
a Award points for correct guesses on the first attempt.
b Award points for correct guesses on the second attempt.
c Award point for correct guesses on the third attempt, else no points awarded.
After each round, prompt the user to confirm if they want to continue playing.
Keep track of the total score across all rounds.
When the user decides to stop, display their final score and a rank based on their
performance:
a points: SHI.ELD Recruit"
b points: "Avenger in Training"
c points: "Earth's Mightiest Hero"
d points: "Guardian of the MCU Timeline" Thor
Captain America: The First Avenger
Doctor Strange
SpiderMan: Honeconing
Black Panther
Captain America: The Winter Soldier
The Avengers
SpiderMan: No Way Home
Enter a movie: The Avengers
Attempt
Guess the release year:
Correct! Well done, Agent!
Your current score is
Do you want to continue :
Enter a movie: Thor
Attempt
Guess the release year:
Attempt
Your guess is lower
Guess the release year:
Correct! Well done, Agent!
Your current score is
Do you want to continue :
Enter a movie: Iron Man
Attempt
Guess the release year:
Attempt
Your guess is higher
Guess the release year:
Attempt
Hint: e
Guess the release year:
Correct! Well done, Agent!
Your current score is
Do you want to continue :
Gane Over! Your final score is
Your rank is Avenger in TrainingWhen the user decides to stop, display their final score and a rank based on their performance:
points: SHI.ELD Recruit"
points: "Avenger in Training"
points: "Earth's Mightiest Hero"
points: "Guardian of the MCU Timeline"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
