Java Program to Categorize Taller, Dwarf and Average by Height of a Person
In this program, categorize taller, dwarf, and average by the height of a person. For comparison, a standard height of reference is taken into consideration as 151cm to 175cm. Height ranging from the limit of 151cm to 175cm comes under average height. Height greater than 175cm comes under the taller height category and height below 150cm comes under the Dwarf category.
Input: 164 Output: This person has Average height Input: 180 Output: This person is taller
This person is Taller
Implementation using Command line arguments:
Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course.