Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Quantitative Methods For Business

Authors: David Anderson, Dennis Sweeney, Thomas Williams, Jeffrey Cam

11th Edition

978-0324651812, 324651813, 978-0324651751

More Books

Students also viewed these Programming questions

Question

Write each fraction as a percent. 7 50

Answered: 1 week ago