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