Problem:
Question 1- Modify the movie-rating program so that a user gets three tries to enter a valid rating. After three incorrect entries, the program issues an appropriate message and continues with a new user.
Question 2- Modify the movie-rating program so that the user is prompted continuously for a movie title until ZZZZZ is entered. Then, for each movie,continuously accept star-rating values until a negative number is entered. Display the average rating for each movie.
Please show the code of movie-rating program and explain it step by step.