Page 1 of 1

IN JAVA CODE: It’s time for the annual city Sportsfest. All individuals young and old may join but it wouldn’t be fair t

Posted: Mon May 09, 2022 6:20 am
by answerhappygod
IN JAVA CODE:
It’s time for the annual city Sportsfest. All individuals young
and old may join but it wouldn’t be fair to match a young player
against an older one. So to keep the event fun, we decided to hold
separate tournaments for different age groups. The categories
are:
Let’s try to do this as quick as possible by using the power of
technology and programming!
Input
1. The age
Constraints
The value of the age is within the range: 0 <= age <=
99
Output
The first line will contain a message prompt to input the age.
The second line will contain the name of the age group depending on
the age.