Question: A company decided to hire new employees. However, the ages of the new employees should be between 21 and 31 (inclusive). Write a Java
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 Sample Input: Enter the name of a new employee: Adel Sami Enter his/her age: Enter his/her age: 34 25 Sample Output: Rami Saleh can join the company Sample Output: Adel Sami cannot join the company
Step by Step Solution
3.58 Rating (162 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
