Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question2: * A company decided to hire new employees. However, the ages of the new employees should be between 21 and 31 (inclusive). Write a
Question2: * A company decided to hire new employees. However, the ages of the new employees should be between 21 and 31 (inclusive). Write a Java program that: Prompts the user to enter the name and the age (as an integer) of a new employee. - Then displays a message to the user if he/she is eligible to join the company. Your program should follow (exactly the format of the following samples: Sample Input: Enter the name of a new employee: Rami Saleh Enter his/her age: 25 Sample Input: Enter the name of a new employee: Adel Sami Enter his/her age 34 Sample Output: Rami Saleh can join the company Sample Output: Adel Sami cannot join the company Your
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started