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
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 StartedRecommended Textbook for
Quantitative Methods For Business
Authors: David Anderson, Dennis Sweeney, Thomas Williams, Jeffrey Cam
11th Edition
978-0324651812, 324651813, 978-0324651751
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App