Question: C++ Write a definition of a class that has the following properties. The name of the class is secretType. The class secretType has four member
Write a definition of a class that has the following properties. a The name of the class is secretType b The clasS secretType has four member variable: name (a string), age and weight (int), height (double) c The class secretType has the following member functions const) i print- outputs the data in the member variables in a nice format i setName-sets the name i setAge- sets the age iv setWeight- sets the weight setHeight-sets the height vi getName- value returning function returns the name returns the height vill getWeight-value returning k weightStatus - value returning function that returns a string according to the following chart returns the weight (taken from http/www.whathealth.com/bmiformula.html You can find the formula for BMI (body mass index) at that same site) 18.5-2459 25 29.9 Normal Overweight a Write definitions of all the member functions of class secretType
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
