Hey, so I am new to c++ trying to learn on my own, and I am across a problem that really has me stuck. So I am supposed to ask the user for how much cubic feet of water is used. Then, the program is supposed to convert that number into gallons and ounces. If you could help me that would be great. The code I have so far is:
#include <iostream>
using namespace std;
int main()
{
const double gallons_per_cubicFoot = 7.4805;
const int ounces_per_gallon = 128;
int cubic_feet, totalGallons;
double ounces;
cout << "Enter the number of cubic_feet of water used: ";
cin >> cubic_feet;
cout << "The number you entered is " << cubic_feet << endl;