Originally posted by jill
Yes I did catch some of my earlier mistakes today. Ok here goes
There is a list of prices;
Exterior Interior
1 to3 =16.75 16.26
4 to7 =15.85 15.10
this goes on a few more steps but thats the general idea;
if(numberofgallons==1.0<=3.0);
cout<< Know how do I get this to see exterior price and the interior price.
This is not right. I think what you want is:
Code:
int numGallons;
double price;
bool exterior;
// Insert code to set these variables to something
if (numGallons <= 3)
if (exterior)
price = 16.75;
else
price = 16.26;
else if (numGallons >= 4 && numGallons <= 7)
if (exterior)
price = 15.85;
else
price = 15.10;
cout << price << endl;
There are other ways to do it, but that'll work. Post your own code if you need more help.
Maybe I should change;
int// (to)// exterior price, interior price. But am not sure how.
Not sure what you mean here.