Question: Extend / modify the previous part to include the following: 1 . Prompt the user to enter the name of a movie. 2 . Modify
Extendmodify 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 attempts to guess the correct year of the chosen movie
aFor an incorrect first guess, inform the user whether their guess was lower or higher than the correct year.
bFor an incorrect second guess, show a hint: the decade of the release year eg
cA 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 attempts, display a condolence message and the correct year. What to do
Extendmodify 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 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 eg
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 attempts, display a
condolence message and the correct year. Sample output
Enter filename: moviestxt
WELCOME TO THE SHIELD DATABASE
Avengers: Infinity War
Avengers: Endgame
SpiderMan: Far From Home
ShangChi and the Legend of the Ten Rings
Doctor Strange in the Multiverse of Madness
Guardians of the Galaxy Vol.
Enter a movie:
Invalid. Enter a movie: sHaNGChi
Invalid. Enter a movie: ShangChi and the Legend of the Ten Rings
Attempt
Guess the release year:
Attempt
Your guess is lower
Guess the release year:
Correct! Well done, Agent!
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
