Page 1 of 1

Create a Java program based on Figure 1 and exception handling on conditions below: User input Weight(KG) and Height(CM)

Posted: Sun Jul 03, 2022 9:58 am
by answerhappygod
Create a Java program based on Figure 1 and exception handlingon conditions below:
User input Weight(KG) and Height(CM) that could not be anegative value
- Age: int BMI:BMI -Name:String Person -getAge() int -getBMI(BMI): float -getName() :String Person(int, BMI,string):void Adult -status:string + geStatus(): string +Adult(String): void 4 Babies -vaccines: int + getVaccine(): int +Babies (int): void BMI -height:float -Weight: float +BMI(float,float):void +calculateBMI():float