# How to Write a C++ program to Calculate the Cost of This?

Write a c++ program to calculate the cost of a visit to a gas station. The program should ask the user whether he or she wants regular (2.629$ per gallon) or premium (2.979$ per gallon) of gasoline, whether or not a car wash is desired. Of course the program must also ask how many gallons it took to fill the tank....
show more
Write a c++ program to calculate the cost of a visit to a gas station. The program should ask the user whether he or she wants regular (2.629$ per gallon) or premium (2.979$ per gallon) of gasoline, whether or not a car wash is desired. Of course the program must also ask how many gallons it took to fill the tank. Then the program should calculate the cost of the gas and the total cost including a car wash if there was one. Help me please, Thank You!

Follow

2 answers

Are you sure you want to delete this answer?