Question: DO NOT USE CHATGPT I need a Python program that will, given a number of movies and some other information, decide which ones to watch
DO NOT USE CHATGPT
I need a Python program that will, given a number of movies and some other information, decide which ones to watch and which ones to not, based on the criteria written
The program should begin by obtaining the necessary inputs from the user. You can assume that the user will provide each input in the correct format, so no validation checks are required for any of the inputs.
After gathering the inputs, your program should determine which movies to watch and which movies to skip or donate. To do so the program should process the movies in the specified order, ensuring that as many movies as possible are watched.
Criteria for selecting movies to watch:
The genre of the movie should be listed in the viewing speed preferences.
The runtime of the movie should meet or exceed the minimum threshold for runtime.
Movies will be watched sequentially you wont watch multiple movies at the same time After finishing one movie, the next will be watched the following day.
Each movie should be completed before the holiday ends.
For movies selected to be watched, your program should also determine the day they will be completed. Assume that there are no rest days between movies, and always round up the required number of days to complete a movie to the nearest whole number. For instance, if a movie takes days to watch, round it up to full days.
However, if a movie's genre is not included in the viewing speed preferences, it should be considered for donation. On the other hand, if a movie's genre is in the viewing speed preferences but there is not enough time left during the holiday to watch it that movie will neither be watched nor donated.
In this project, you dont need to handle case sensitivity You may assume that if a genre is given as "Action" in the first input, it will also appear as "Action" in subsequent inputs.
Sample Run
Enter the movie library: Mystery:;Mystery:;Fiction:
Enter a minimum runtime limit:
Enter the holiday length in days:
Enter the viewing speed for genres: Thriller:;Mystery:
Movies Watched:
Movie finishes by day
Movie finishes by day
Total runtime watched: minutes
Movies to skipdonate:
Movie
Sample Run
Enter the movie library: Mystery:;Mystery:;Thriller:
Enter a minimum runtime limit:
Enter the holiday length in days:
Enter the viewing speed for genres: Thriller:;Mystery:
Movies Watched:
Movie finishes by day
Movie finishes by day
Total runtime watched: minutes
No movies to skipdonate
Sample Run
Enter the movie library: Mystery:;Mystery:;Fiction:
Enter a minimum runtime limit:
Enter the holiday length in days:
Enter the viewing speed for genres: Thriller:;Mystery:
No movies to watch!
Movies to skipdonate:
Movie
Sample Run
Enter the movie library: Mystery:;Mystery:;Thriller:
Enter a minimum runtime limit:
Enter the holiday length in days:
Enter the viewing speed for genres: Thriller:;Mystery:
No movies to watch!
No movies to skipdonate
Sample Run
Enter the movie library: Mystery:;Mystery:;Thriller:;Fiction:;Mystery:;Science Fiction:;Romance:;Science Fiction:
Enter a minimum runtime limit:
Enter the holiday length in days:
Enter the viewing speed for genres: Thriller:;Mystery:;Fiction:
Movies Watched:
Movie finishes by day
Movie finishes by day
Movie finishes by day
Total runtime watched: minutes
Movies to skipdonate:
Movie
Movie
Movie
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
