Question: Part) Define a dous with the following specifications: & The dans nemes elhelhetetle with three private data membersiler (String as male or female in any

Part) Define a dous with the following specifications: & The dans nemes elhelhetetle with three private data membersiler (String as male or female in any letter e), mehe (double in cml, and what (double in l. & Write a constructor that accepta gender, hot and was input parameters to India toas the private data members. - Provide - BOX() method anda mattor (not) method for the lht data member Define ape method anledd Radeo which check the height weight ratio mdream the Boolem. The height weight ratio decidon is chooked as the following Mile: Acoeptable when weight is betwem (height-105) and (height-95); otherwise, is not acceptable Remale Acoeptable when weet is betworn (height-100) and (height:90); otherwise, is not acomptable .. Define a pelle method called the Details to show all details in the following sample: . Gender: Male Height: 170 cm Weight: 174 Part (2) Write a Java application to do the following: a. Asks the user to input his/her gender, height and weight. b. Create an object called personi from the class HelchtweightRatio and initialize its private members according to the input data. e Display the details of penoni object. d. Display the message: "Hightweight ratio decision: acceptable" OR "Hight/weight ratio decision: not acceptable" based on the checkRathod) decision. Sample Input/Output Enter Gender Height and Weight: Male 170 74 Gender: Male Height: 170 cm Weight: 74 kg Hightweight ratio decision: acceptable mm Note: Your answer should follow the given sample input/output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
