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

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 variable: name (a string), age and weight (int), height (double) The class secretType has the following member functions: (Make the accessor functions const)
 C++ Write a definition of a class that has the following

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

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!