50 | Movie Recommendations |
The data provided by external services can give you a jumping-off point to create your own application.
Write a program that displays information about a given movie. Prompt for a search query and display the title, year, rating, running time, and a synopsis, if one exists. Then, if the audience score is above 80%, recommend that the user watch this movie right now. If the score is below 50%, recommend that the user avoid the movie at all costs.
Example Output
| Enter the name of a movie: Guardians of the Galaxy |
| |
| Title: Guardians of the Galaxy |
| Year: 2014 |
| Rating: PG-13 |
| Running Time: 121 minutes |
| |
| Description: From Marvel... |
| |
| You should watch this movie right now! |
Constraint
-
Use the Rotten Tomatoes API at http://developer.rottentomatoes.com/ ...
Get Exercises for Programmers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.