Question: Using java and only if else and switch and boolean expression and a flag Objectives Be able to construct boolean expressions to evaluate a given
Using java and only if else and switch and boolean expression and a flag
Objectives
Be able to construct boolean expressions to evaluate a given condition
Be able to compare String objects
Be able to use a flag
Be able to construct if and ifelseif statements to perform a specific task
Movie Selector
Imagine you're hosting a movie night with your friends and have prepared a selection of five movies:
Batman Family: No Comedy: No AwardWining: No
Frozen Family: Yes, Comedy: No AwardWining: Yes
Home alone Family: Yes, Comedy: Yes, AwardWining: Yes
Happy Holidays Family: Yes, Comedy: No AwardWining: No
The Secret Life of Pets Family: Yes, Comedy: Yes, AwardWining: Yes
Your task is to write a program that prompts the users to specify if they want to filter the movie choices based on familyfriendliness, comedy genre, or awardwinning status, and then displays the movies suitable for the group.
Please note: The program should accept both "Yes" and "yes" as affirmative responses.
Example Outputs:
Here is an example of the program's output:
Sample
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
