Question
15 points Create a class called MovieReducerEraCount that implements MediaReducer. Implement a reducer that takes a movie list and an era, then return the number
15 points Create a class called MovieReducerEraCount that implements MediaReducer. Implement a reducer that takes a movie list and an era, then return the number of movies found in the given era. Notice the return type is a formatted String; not an int. Submit both the MovieReducerEraCount and the Movie class from the first question. Note that the movie_list.txt provided in this assignment is different than the movie list from the examples. 15 points Create a class called MovieReducerEraCount that implements MediaReducer. Implement a reducer that takes a movie list and an era, then return the number of movies found in the given era. Notice the return type is a formatted String; not an int. Submit both the MovieReducerEraCount and the Movie class from the first question. Note that the movie_list.txt provided in this assignment is different than the movie list from the examples.
Test Case 1
Movies in Silent Era: 0
Movies in Pre-Golden Era: 7
Movies in Golden Era: 581
Movies in Change Era: 3445
Movies in Modern Era: 10165
Movies in New Millennium Era: 15457
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started