Question
PLEASE DO THIS IN JAVA Exercise #1: Design and implement a program (name it Youth) that reads from the user an integer values repressing age
PLEASE DO THIS IN JAVA
Exercise #1: Design and implement a program (name it Youth) that reads from the user an integer values repressing age (say, age). The program prints out the entered values followed by a message as follows: If age is less or equal to 21, the message is Youth is a wonderful thing. Enjoy.. Finally, the program always prints out the message Age is a state of mind. Format the outputs following the sample runs below. Sample run 1: You entered: 20 Youth is a wonderful thing. Enjoy. Age is a state of mind. Sample run 2: You entered: 25 Age is a state of mind. Sample run 3: You entered: 21 Youth is a wonderful thing. Enjoy. Age is a state of mind.
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