Please code in java and follow the instructions as it is.. Dont use very advanced methods. refer the images provided Hired by the popular nightclub, 'Club B-day' to automate the job of their bouncers. Club B-day has a novel criterion for entering, where it must be that person's birthday. Additionally state law stipulates that a patron must also be aged 21 or over to enter the premises since alcohol is served. Your robot must determine whether a person can enter the club given the following conditions: ● Is today their birthday? ● Are they 21 years or older? Input Your solution must take in a total of six numerical inputs with each input separated by a space. The first three inputs represent the current month, current day, current year as integers. The other three inputs represent the birth month, birthday, birth year as integers. Output The output should display as a boolean result whether the patron can enter or not.
Please code in java and follow the instructions as it is.. Dont use very advanced methods. refer the images provided
Hired by the popular nightclub, 'Club B-day' to automate the job of their bouncers. Club
B-day has a novel criterion for entering, where it must be that person's birthday. Additionally
state law stipulates that a patron must also be aged 21 or over to enter the premises since alcohol
is served. Your robot must determine whether a person can enter the club given the following
conditions:
● Is today their birthday?
● Are they 21 years or older?
Input
Your solution must take in a total of six numerical inputs with each input separated by a space.
The first three inputs represent the current month, current day, current year as integers. The
other three inputs represent the birth month, birthday, birth year as integers.
Output
The output should display as a boolean result whether the patron can enter or not.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images