Documente Academic
Documente Profesional
Documente Cultură
EASY
Create a JAVA program; sort.class that will sort entered whole numbers. The user may
input minimum of two (2) numbers and a maximum of ten (100) numbers.
SAMPLE OUTPUT:
C:\> java sort 5 4 2 1 3
You entered five numbers.
Sorted values:
1 2 3 4 5
AVERAGE
Body mass index (BMI) is an index of your weight - and classifies a person as
underweight, normal, overweight, or obese. The method of calculation is divide
weight in kilogram (Kg) by the square of the height in meters (m). Create a java
class (BMI.class) that will compute for the BMI of a person and categorize the
person on the following BMI ranges:
SYNTAX: JAVA BMI <SPACE> <Weight (in Kg)> <SPACE> <Height (in m)>
DIFFICULT
Create a java class (Analyze.class) that will accept word or phrase. The program must
establish and display the following information:
SAMPLE OUTPUT:
C:\> java Analyze A whole new world!!!
Prepared by:
EUGENE Q. CASTRO