Question: Extend / modify the previous part to include the following: 1 . Prompt the user to enter the name of a movie. 2 . Modify

Extend/modify the previous part to include the following:
1.Prompt the user to enter the name of a movie.
2.Modify the movie display message such that it does not include the release date anymore.
3.Use a while statement to repeatedly prompt the user for a movie name if the movie name is not correct. Proceed to the next part only when the user enters a valid movie name.
4.Use a for or while statement to allow the user 3 attempts to guess the correct year of the chosen movie
a.For an incorrect first guess, inform the user whether their guess was lower or higher than the correct year.
b.For an incorrect second guess, show a hint: the decade of the release year (e.g.,201*).
c.A message acknowledging the correct answer should be displayed if the user guesses the year correctly within the three attempts. Otherwise move to the next attempt. If the user does not guess the correct year within 3 attempts, display a condolence message and the correct year. What to do
Extend/modify the previous part to include the following:
Prompt the user to enter the name of a movie.
Modify the movie display message such that it does not include the release date
anymore.
Use a while statement to repeatedly prompt the user for a movie name if the movie
name is not correct. Proceed to the next part only when the user enters a valid movie
name.
Use a for or while statement to allow the user 3 attempts to guess the correct year of
the chosen movie
a. For an incorrect first guess, inform the user whether their guess was lower or
higher than the correct year.
b. For an incorrect second guess, show a hint: the decade of the release year (e.g.,
201*).
c. A message acknowledging the correct answer should be displayed if the user
guesses the year correctly within the three attempts. Otherwise move to the next
attempt. If the user does not guess the correct year within 3 attempts, display a
condolence message and the correct year. Sample output
Enter filename: movies2.txt
WELCOME TO THE SHIELD DATABASE >>
Avengers: Infinity War
Avengers: Endgame
Spider-Man: Far From Home
Shang-Chi and the Legend of the Ten Rings
Doctor Strange in the Multiverse of Madness
Guardians of the Galaxy Vol. 3
Enter a movie: 4
Invalid. Enter a movie: sHaNG-Chi
Invalid. Enter a movie: Shang-Chi and the Legend of the Ten Rings
Attempt 1
Guess the release year: 2017
Attempt 2
Your guess is lower
Guess the release year: 2021
Correct! Well done, Agent!
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!