Question: C++ In-Class Lab #2-Classes In Class Lab Exploring Classes Write a definition of a class that has the following properties. a. The name of the

C++
 C++ In-Class Lab #2-Classes In Class Lab Exploring Classes Write a

In-Class Lab #2-Classes In Class Lab Exploring Classes 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: (Make the accessor functions const) i print- outputs the data in the member variables in a nice format i. setName-sets the name setAge-sets the age iv. setWeight- sets the weight v. setHeight- sets the height vi. getName-value returning function returns the name vil getAge - value returning function returns the age vil getHeight value returning function returns the height ix. getWeight - value returning function returns the weight x'weightStatus - value returning function that returns a string according to the following chart (taken from http://www whathealth com/bmi/formula html You can find the formula for BMI (body mass index) at that same s 18.5 Underweight Normal 18.5-24.9 2529.9 30 & Above Overweight Obese a Write definitions of all the member functions of class secretType Lab #4

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!