Question: Extend / modify the previous part to include the following: 1 . Use a while statement to create a loop that allows the user to

Extend/modify the previous part to include the following:
1.Use a while statement to create a loop that allows the user to play multiple rounds of guessing the year game.
2.Implement a scoring system:
a.Award 3 points for correct guesses on the first attempt.
b.Award 2 points for correct guesses on the second attempt.
c.Award 1 point for correct guesses on the third attempt, else no points awarded.
3.After each round, prompt the user to confirm if they want to continue playing.
4.Keep track of the total score across all rounds.
5. What to do
Extend/modify 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 3 points for correct guesses on the first attempt.
b. Award 2 points for correct guesses on the second attempt.
c. Award 1 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.0-5 points: "S.H.I.E.L.D. Recruit"
b.6-10 points: "Avenger in Training"
c.11-15 points: "Earth's Mightiest Hero"
d.16+ points: "Guardian of the MCU Timeline" Thor
Captain America: The First Avenger
Doctor Strange
Spider-Man: Honeconing
Black Panther
Captain America: The Winter Soldier
The Avengers
Spider-Man: No Way Home
Enter a movie: The Avengers
Attempt 1
Guess the release year: 2012
Correct! Well done, Agent!
Your current score is 3
Do you want to continue (yn):y
Enter a movie: Thor
Attempt 1
Guess the release year: 2099
Attempt 2
Your guess is lower
Guess the release year: 2011
Correct! Well done, Agent!
Your current score is 5
Do you want to continue (yn):y
Enter a movie: Iron Man
Attempt 1
Guess the release year: 2021
Attempt 2
Your guess is higher
Guess the release year: 2010
Attempt 3
Hint: 29e*
Guess the release year: 2008
Correct! Well done, Agent!
Your current score is 6
Do you want to continue (yn):n
Gane Over! Your final score is 6
Your rank is Avenger in TrainingWhen the user decides to stop, display their final score and a rank based on their performance:
0-5 points: "S.H.I.E.L.D. Recruit"
6-10 points: "Avenger in Training"
11-15 points: "Earth's Mightiest Hero"
16+ points: "Guardian of the MCU Timeline"
Extend / modify the previous part to include the

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 Programming Questions!