subject

The Gas-N-Clean Service Station sells gasoline and has a car wash. Fees for the car wash are $1.25 with a gasoline purchase of $10.00 or more and $3.00 otherwise. Three kinds of gasoline are available: regular at $2.89, plus at $3.09, and super at $3.39 per gallon.

User Request:

Write a program that prints a statement for a customer.

Analysis:

Input consists of number of gallons purchased (R, P, S, or N for no purchase), and car wash desired (Y or N). Gasoline price should be program defined constant. Sample output for these data is

Enter number of gallons and press 9.7

Enter gas type (R, P, S, or N) and press R

Enter Y or N for car wash and press Y



* *

* *

* Gas-N-Clean Service Station *

* *

* March 2, 2004 *

* *



Amount Gasoline purchases 9.7 Gallons

Price pre gallons $ 2.89

Total gasoline cost $ 28.03

Car wash cost $ 1.25

Total due $ 29.28

Thank you for stopping

Please come again

Remember to buckle up and drive safely

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:40
In the lab, which of the following displayed a list of all installed services and included a description of the service, the current state, and whether the service started automatically or manually? a. the services manager b. the applications summary c. the recommended services d. list the safe services list
Answers: 2
question
Computers and Technology, 22.06.2019 19:10
What a backup plan that you have created in a event you encounter a situation
Answers: 2
question
Computers and Technology, 24.06.2019 01:10
Create a program that will take in a single x and y coordinate as the origin. after the input is provided, the output should be all of the coordinates (all 26 coordinates read from the “coordinates.json” file), in order of closest-to-farthest from the origin.
Answers: 1
question
Computers and Technology, 24.06.2019 13:30
Does anybody know how to hack into a google account? i had important information on it and it is gone now and i need getting it back.
Answers: 1
You know the right answer?
The Gas-N-Clean Service Station sells gasoline and has a car wash. Fees for the car wash are $1.25 w...
Questions
question
English, 07.01.2021 19:10
question
Mathematics, 07.01.2021 19:10
question
English, 07.01.2021 19:10