Answer to Question #39946 in Java | JSP | JSF for TANVI SINHA

Question #39946
A good movie is defined if it fulfills the following conditions.

Movie name must be longer than 10 characters not counting the spaces in it.
Rating should be greater than or equal to 5 and less than 8 inclusive. (But see condition 5)
The movie should be for all age groups.
If there are no actresses in the movie, there should be atleast 3 actors.
If rating is less than 5 but greater than 3 then it must have an actor named "Rahul" and actress named "Kareena".
If it is not for all age group then rating should be greater than 6.
Write a method:

boolean isGoodmovie(String name, int rating, String[] actor, String[] actress, boolean isForAllAges)

Name Name of the movie
Rating Movie rating out of 8
Actor Lead actors in the movie
Actress Lead actresses in the movie, can be null if there are no lead actresses.
isForAllAges Whether this movie is for all age groups. True if it is for all age groups, false otherwise.
1
Expert's answer
2014-03-17T14:21:12-0400
Dear customer,
Unfortunately, your question requires a lot of work and cannot be done for free.
Please submit it with all requirements as an assignment to our control panel and
we'll assist you.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS