cout << "Insert the length: ";
cin >> Length;
cout << "Insert the width: ";
cin >> Width;
cout << "Insert the depth: ";
cin >> Depth;
cout << "The volume of the pool is: "<< PoolSize (Length, Width, Depth, volume) << "cubicfeet\n\n";
cout << "The pool holds: " << Convert (volume, cubicfeet, gallons) << " gallons of water\n\n";
cout << "Enter fill rate of the pool (in gallons per minute): ";
cin >> FillRate;
cout << "\n";
cout <<"The time it takes to fill the pool is: "<< FillTime (gallons, FillRate, Minutes) <<" minutes \n\n";
cout << " The Cost to fill the pool is $"<< Cost(gallons, rate);
system("pause");
}
You have already defined the variable rate in parameter section of the function cost. All you need to do is remove the double in front of rate in the code. Should look like this: