Question: getweight - value - returning function to return the weight getHeight - Value - returning function to return the height Default constructor - Sets name
getweightvaluereturning function to return the weight
getHeightValuereturning function to return the height
Default constructor Sets name to the empty string and age, weight, and height to
Constructor with parameterSets the values of the instance variables to the values specified by the user
Write the definition of these member functions of the class secretType
b Write the main class that creates at least two different instances of the secretrype class. Please play around with the member functions for this task, eg the first instance can be created from the constructor with parameter and the second instance can have its information from the functions setName, setAge, setWeight, setHeight Then print out the information ie member variables of these instances.
Part B: points. LabPartB.cpp graded out of points if not submitted during lab time.
Check to see what value the function mystery returns when called with a value of
int mysteryint number
if number
return ;
else
return number mysterynumber ;
Write the similar function mystery but using the 'while' or 'for' loop instead.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
