1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
yarga [219]
4 years ago
10

Tracy has a file that contains a list of actors and the movies in which they acted. She wants to know the top 3 ranked actors fr

om her list whom have acted/appeared in the most movies. ACTOR_NAMEMOVIE_NAME Leonardo DiCaprioThe Revenant Christian BaleVice Morgan FreemanShawshank Redemption Leonardo DiCaprioThe Great Gatsby Christian BaleAmerican Psycho Morgan FreemanThe Dark Knight Christian BaleThe Dark Knight Samuel L. JacksonPulp Fiction Question: Write code in Java/Scala/Python to display the top 3 ranked actors appearing in the most movies based on the count of movies in which they have acted. If there are less than 3 actors in her list, display all of them. Consider all scenarios - such as, if two actors have acted in the same number of movies, they will have the same rank.
Computers and Technology
1 answer:
harina [27]4 years ago
3 0

Answer:

{

private String name;

private String review;

/** Constructs a ProductReview object and initializes the instance variables. */

public ProductReview(String pName, String pReview)

{

name = pName;

review = pReview;

}

/** Returns the name of the product. */

public String getName()

{ return name; }

/** Returns the review of the product. */

public String getReview()

{ return review; }

}

The ReviewCollector class, shown below, is used to represent a collection of reviews to be analyzed.

public class ReviewCollector

{

private ArrayList<ProductReview> reviewList;

private ArrayList<String> productList;

/** Constructs a ReviewCollector object and initializes the instance variables. */

public ReviewCollector()

{

reviewList = new ArrayList<ProductReview>();

productList = new ArrayList<String>();

}

/** Adds a new review to the collection of reviews, as described in part (a). */

public void addReview(ProductReview prodReview)

{ /* to be implemented in part (a) */ }

/** Returns the number of good reviews for a given product name, as described in part (b). */

public int getNumGoodReviews(String prodName)

{ /* to be implemented in part (b) */ }

// There may be instance variables, constructors, and methods not shown.

}

You might be interested in
2×2×2×2×2×2×2×2:-) :-) :-) :-) :-) :-) :-! ​
Gre4nikov [31]

Answer:

256 :-) :-) :-) :-) :-) :-) :-! ​

5 0
3 years ago
Read 2 more answers
MORE FREEE POINTS AYEEE
Lerok [7]

Answer:

Hehehehehe

Explanation:

6 0
3 years ago
Read 2 more answers
Witch is a game story device
natulia [17]
A PS4 because there the most popular game out right now
5 0
3 years ago
How might your use of computers and knowledge after technology systems affect your personal and professional success
vlabodo [156]
You can get a job working as a software/ computer engineer. You can maintain servers at google. These people make lots and lots of money
7 0
3 years ago
Flammable and combustible materials should be stored according to: A. Their color B. Their fire characteristics C. Their size
iris [78.8K]

B. their fire characteristics

this should be fairly obvious

6 0
3 years ago
Read 2 more answers
Other questions:
  • How do rubrics increase learning?
    15·2 answers
  • The Fully Meets rating should be assigned when the spelling suggestion matches query intent
    11·1 answer
  • What are some examples of options you can control in the Adjust group to affect an image? (Multiple Choice)
    12·2 answers
  • Which of the following statements will assign the contents of the Text property of a Textbox control named txtInput into the Tex
    10·1 answer
  • To find the largest number in a list of numbers, use the _____.
    8·1 answer
  • List the various types of social media that have been covered in the tutorial. Mention the key purposes for which each media typ
    9·1 answer
  • What limited the possibilities of game development from a technical viewpoint?
    7·1 answer
  • Technology is used today in manufacturing,health care , and the transportation industry,but education has not yet embraced it? t
    12·2 answers
  • PLEASE HELP ILL GIVE BRAINLIEST IMMEDIATLEY TO THE CORRECT ;-;
    10·1 answer
  • What are three major events in computer science history?
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!