Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions