I am so lost on what to do so please help how ever you can.

I must write a program to calculate the cost and time it takes to fill a swimming pool.


* Inputs: 
Length, Width, and Depth of the pool (This is a gross simplification, since pools are not really rectangular cubes.)
Fill rate of the pool in Gallons per minute
* Calculation functions:
  * Write a function to calculate the total cubic feet (Length x Width x Depth) and return the cubic feet.
Inputs: Length, Width, and Depth Return cubic feet
  * Write a function to calculate the number of gallons:
1 cubic foot = 7.48051948 US gallons (Create a constant to hold the conversion factor.)
Input: Cubic Feet Return Gallons
  * Write a function to calculate the cost to fill the pool as follows:
Calculate 1000’s of gallons by dividing the total gallons by 1000 and putting the result in an 
integer variable.
Use the following table to generate the cost:
Input: Gallons Return Cost
* Call your functions from main()
* Outputs: 
    * Total cubic feet
    * Total gallons
    * Costm
    * Time to fill in minutes
Aoption: (The best grade is a 100%) Note: No B option on this one
* Combine the functions to calculate the cubic feet and number of gallon.  
    * Inputs to the function: Length, Width, Depth
    * Outputs (via reference variables): Cubic Feet, Gallons
Example Prototype:
void PoolSize(float Length, float Width, float Depth, float &CubicFeet, float &Gallons);
* Write a function that calculate the time to fill as follows: 
    * Inputs to the function: Gallons
    * Outputs (via reference variables): Hours and Minutes
Example Prototype:
void FillTime(float Gallons, float FillRate, ,float &Hours, float &Minutes);

I am so lost on what to do so please help how ever you can.
I must write a program to calculate the cost and time it takes to fill a swimming pool.

Take each step and program it. Start with:

  • Inputs:
    Length, Width, and Depth of the pool

Write this sections, test it. When it works, move on to

Calculation functions:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.