Question: Question 3 28 Points ce Part (1) Define adass with the following specifications The dess name is Height Weightratie with three private data member gender
Question 3 28 Points ce Part (1) Define adass with the following specifications The dess name is Height Weightratie with three private data member gender Series e or femalena double in cm. and weight double in we contractor that compts gender, height and weights out permistonnials the rate a member wide me Indmed) mead for the behet me d Define a puble method called cheatio) which check the beginti and turn the deciso The heightweight ratio decision is checked was the following Male ople whom weight is betwem (105) and height otherwi, totoo Female Acceptable whes weight le between high-100; and (high-0), churi, e Define a pohle method called the Details to show all details in the following comple: Gender Male He is 170 CM W 14 KG 1 Part (2) Write a Java application to do the following Asks the user to input his/her gender, belight and weight Create an object called person from the class Height Weight Ratio and initialize its private members according to the input data Display the details of person object & Osplay the message "Acceptable w/Weight Ratio" OR "Not Acceptable right/Weight Rato" haned on the chakradeci Sample Input/Output lepot Gender, Height and Weyhe Male 170 74 Gender is Male Height is 170 CM Weight is 24 KO Ahle Hight Weight Ratio Note: Your answer should follow the given sample input/output. Save and close
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
