Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please write in Java code *with a photo of the actual code in text editior too Problem 4: Bouncer Bot (10 points) You're hired by

please write in Java code *with a photo of the actual code in text editior too
image text in transcribed
Problem 4: Bouncer Bot (10 points) You're hired by the popular nightclub, 'Club B-day' to automate the job of their Club B-day has a novel criteria for entering, where it must be that person som state law stipulates that a patron must also be aged 21 or ulates that a patron must also be aged 21 or over to enter the premises since alcohol is served. Your robot must determine whe 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? Te it must be that person's birthday. Additionally Input Tour Solution must take in a total of six numerical inputs with each input separated by a space. The first three internet not three inputs represent the current month. current day, current year as integers. The other three inputs represents the birth month, birth day, birth year as integers. Output The output should display as a boolean result whether the patron can enter or not. Sample output Sample Input 1 31 2018 1 31 1990 1 31 2018 1 30 1990 1 31 2020 1 31 2010 true false false

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions