#include <iostream>
#include <iomanip>
using namespace std;
int main ()
{
double cup, gallon, liter, pint, quart, ounces, milliliter, teaspoon, tablespoon ;
string horizontalLine (50, '-') ;
cout << "HELLO RACHEL RAY! \n" << endl ;
cout << "Enter the Number of Cups you wish to convert! \n" << endl ;
cout << "CUPS:" << endl ;
cin >> cup ;
cup = 8 * ounces ;
gallon = 16 * cup ;
liter = 4.25 * cup ;
cup = 236.59 * milliliter ;
pint = 2 * cup ;
quart = 4 * cup ;
ounces = cup / 8 ;
milliliter = cup / 236.59 ;
teaspoon = cup / 48 ;
tablespoon = cup / 16 ;
cout << setw(10) << fixed << "CUPS" << "CONVERTS TO" << endl ;
cout << horizontalLine << endl ;
cout << cup << ounces << "FLUID OUNCES" << endl ;
cout << cup << gallon << "GALLONS" << endl ;
cout << cup << liter << "LITERS" << endl ;
cout << cup << milliliter << "MILLILITERS" << endl ;
cout << cup << pint << "PINTS" << endl ;
cout << cup << quart << "QUARTS" << endl ;
cout << cup << tablespoon << "TABLESPOONS" << endl ;
cout << cup << teaspoon << "TEASPOONS" << endl ;
cout << horizontalLine << endl ;
cout << "HAPPY COOKING!" << endl ;
return 0 ;
}
#include <iomanip>
using namespace std;
int main ()
{
double cup, gallon, liter, pint, quart, ounces, milliliter, teaspoon, tablespoon ;
string horizontalLine (50, '-') ;
cout << "HELLO RACHEL RAY! \n" << endl ;
cout << "Enter the Number of Cups you wish to convert! \n" << endl ;
cout << "CUPS:" << endl ;
cin >> cup ;
cup = 8 * ounces ;
gallon = 16 * cup ;
liter = 4.25 * cup ;
cup = 236.59 * milliliter ;
pint = 2 * cup ;
quart = 4 * cup ;
ounces = cup / 8 ;
milliliter = cup / 236.59 ;
teaspoon = cup / 48 ;
tablespoon = cup / 16 ;
cout << setw(10) << fixed << "CUPS" << "CONVERTS TO" << endl ;
cout << horizontalLine << endl ;
cout << cup << ounces << "FLUID OUNCES" << endl ;
cout << cup << gallon << "GALLONS" << endl ;
cout << cup << liter << "LITERS" << endl ;
cout << cup << milliliter << "MILLILITERS" << endl ;
cout << cup << pint << "PINTS" << endl ;
cout << cup << quart << "QUARTS" << endl ;
cout << cup << tablespoon << "TABLESPOONS" << endl ;
cout << cup << teaspoon << "TEASPOONS" << endl ;
cout << horizontalLine << endl ;
cout << "HAPPY COOKING!" << endl ;
return 0 ;
}