#include <iostream>
using namespace std;
void main()//should this be int main?
{
int Amount;
double Charge;
cout << "Enter number of cubic feet \n ";
cin >> Amount;
cin. ignore();
if (Amount <= 1000)// I had previously inserted braces after the ) and again after 15.00;
Charge = 15.00;
else (Amount <= 2000); // I had else if here at one point and it did not work
Charge = .0175 * Amount;
if (Amount <= 3000)
Charge = .02 * Amount;
else Charge = 70.00; // There was a cin.get(); following this last else but it did not work
}
** Edit **

New Topic/Question
Reply




MultiQuote





|