LAB 3: Do problem 8 in "Programming Projects" section at the end of Chapter 3 of the textbook (pages 172-173). Make sure all the numbers output by your program have 2 digits after the decimal point (So you need to add appropriate code inti your program ta achieve this).
You need to meet all the specifications stated in the problem.
Due Thursday, 9/12, 9:30 am.

Here is a skeleton program  for you to fill out the details.

//include your comments about the program
//include necessary directives

//declare functions you want to use

double hat_size(int,int);              //prototype for function to return hat size
double jacket_size(int,int,int);   //prototype for function to return jacket size
double waist_size(int,int,int);    //prototype for function to return waist size

int main( )
{

    int height,weight,age;
    double hat,jacket,waist;
    char ans;
    do
    { //tell user what this program does and prompt for input
        //get the input from the user
    hat = hat_size(height,weight); //getting the hat size by calling the function that computes it
    jacket = jacket_size(height,weight,age); // ....
   waist = waist_size(height,weight,age); //....

  // include code to fix the precision after the decimal point
//cout the results
//check to see if the user wants to continue

    }while(appropriate cond here);
return 0;
system("PAUSE");

}

//Function definitions (implementattions)

double hat_size(int height, int weight)
{
return ..... // return a value according to the formula
}

double jacket_size(int height, int weight, int age)
{

double jacket;
jacket = ..
if (age> 40)
            jacket = ..
return jacket;

}
 

double waist_size(int height,int weight,int age)
{
    double size;
    size = ..
    if (age>=30)
        size = ...
    return size;

}