Question: how to write in java 28 Points 2 Part (1) Define a dass with the following specifications The class name heightweightration three priate data remberi

how to write in java
how to write in java 28 Points 2 Part (1) Define a

28 Points 2 Part (1) Define a dass with the following specifications The class name heightweightration three priate data remberi pender (sering as male or female in my lewe czel . Meicht (doubles amb and weight double in b. Write a constructor that ests gender, height and weight as rou para to take the priuate data mer Provide ahedade muitas (net) method for the weight data d. Define a pele method Ted checkatied) which check the heigh waishi ratio The height weight ratio decision is checked the following de decline a Boolen Make Acceptable when weight is between heid.105) descherwise, in but acceptable Female Acceptable when weight is betwem (height-100) and pheigh-x), otherwise, wat soeptable . Define a public method called huwDetails) to show all details in the following temple Gander is Male Heights 170 CM Weight in 74 KG Part (2) Write a Java application to do the following 2. Asks the user to input his/her gender, heght and weight b. Create an object called person from the class Heightweightratio and initialize its private members according to the input data. c Display the details of persoal object d Display the message: "Acceptable Higher Weight Ratio" OR "Not Acceptable Hig/Weight Ratio" luned on the check Ratio) decidon Sample Input/Output Input Gender, Height and Weight Male 170 74 Gender Male Height 6 170 CM Weight 74 KO Aceptable Right Weight Ratio Note: Your answer should follow the given sample input/output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!