Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Could you help me solve the qusetion? USing C++. Thanks! queston Not answered Ma

ID: 3702315 • Letter: C

Question

Could you help me solve the qusetion? USing C++. Thanks!

queston Not answered Mark .00 out ot 10.00 For the given class code given below, create the associated class definition. Our test cases already have the code below, we just need the correct definition (the information placed in a .h file). childorowrth:schildorowth) cunrentrce Meichthetriccomersion-8-45 P Flag question oid Childorowth::setHeight (flost h[1) for (int i-g; 1418; 1 { eipht[i1- height[]-. ight[ ]- wight[ curre tace Helper Function float Childorowth::feetToleter(float feet) height[1]-6.0; icht-88 return feet 8.3818 Helper Function loat Childorowth::poundTokclflost pound) t return pound ^ .453592 ChildGrowth::chdldGrowth(string n int a) ( currertARea weightYetricl onversian-a-45 Helper Function lnat Chirwth:scalculateini (int ar) if (a9) for Cint i -0i turn-1 height[i] 8; eightti]- 0 loat h- hwight-11 BHME Calculation Flost h[), flost ) retun t: cunnentAg float bai -caulatebni (oce) heightl height[1] -??j: rwturn "please rnter-an ar in the rate-of 1-1? Getter and Setters string ChildGrouth: getome) tring catry ir (i38.5) vodd ChildGrowth: :setNane(string n) ( 24.9) category "ONER ME?GT; return currentge category ·"OEESE". void childGrowth:isetCurrentage(int s) retun catcgory Answer: {penalty regime: 0%)

Explanation / Answer

ChildGrowth.h

#ifndef CHILDGROWTH_H
#define CHILDGROWTH_H

class ChildGrowth
{

private:
string name;

int currentAge;

float height[10];

float weight[10];

public:
ChildGrowth();

ChildGrowth(string );

ChildGrowth(string,int);

ChildGrowth(string,int,float[],float[]);

string getName();

void setName(string);

int getCurrentAge();

void setCurrentAge(int);

void setHeight(float[]);

void setWeight(float[]);

float feetToMeter(float);

float poundToKg(float);

float calculation(int);

string getCategory(int);

};
#endif

Do ask if any doubt. Please upvote.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote