Question: USE WHILE and FOR LOOPS BUT DO NOT USE FUNCTIONS such as DEF. Do not get any help from gpt I need a Python program

USE "WHILE" and "FOR" LOOPS BUT DO NOT USE FUNCTIONS such as DEF.
Do not get any help from gpt
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 4.12days to watch, round it up to 5full 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 1
Enter the movie library: Mystery:136;Mystery:183;Fiction:436
Enter a minimum runtime limit: 100
Enter the holiday length in days: 60
Enter the viewing speed for genres: Thriller:40;Mystery:50
Movies Watched:
Movie 1finishes by day 3.
Movie 2finishes by day 7.
Total runtime watched: 319minutes
Movies to skip/donate:
Movie 3
Sample Run 2
Enter the movie library: Mystery:136;Mystery:183;Thriller:436
Enter a minimum runtime limit: 150
Enter the holiday length in days: 60
Enter the viewing speed for genres: Thriller:40;Mystery:50
Movies Watched:
Movie 2finishes by day 4.
Movie 3finishes by day 15.
Total runtime watched: 619minutes
No movies to skip/donate!
Sample Run 3
Enter the movie library: Mystery:136;Mystery:183;Fiction:436
Enter a minimum runtime limit: 500
Enter the holiday length in days: 60
Enter the viewing speed for genres: Thriller:40;Mystery:50
No movies to watch!
Movies to skip/donate:
Movie 3
Sample Run 4
Enter the movie library: Mystery:136;Mystery:183;Thriller:436
Enter a minimum runtime limit: 500
Enter the holiday length in days: 60
Enter the viewing speed for genres: Thriller:40;Mystery:50
No movies to watch!
No movies to skip/donate!
Sample Run 5
Enter the movie library: Mystery:136;Mystery:183;Thriller:436;Fiction:313;Mystery:463;Science Fiction:105;Romance:253;Science Fiction:318
Enter a minimum runtime limit: 200
Enter the holiday length in days: 75
Enter the viewing speed for genres: Thriller:40;Mystery:50;Fiction:30
Movies Watched:
Movie 3finishes by day 11.
Movie 4finishes by day 22.
Movie 5finishes by day 32.
Total runtime watched: 1212minutes
Movies to skip/donate:
Movie 6
Movie 7
Movie 8

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!