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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 03:00, Julianhooks
State 7 common key's for every keyboard
Answers: 1
image
Computers and Technology, 23.06.2019 21:20, FlowerChild1229
For positive constants a and b, the force between two atoms in a molecule is given f(r) = −a r2 + b r3 , where r > 0 is the distance between the atoms. note: a and b are upper case letters. (a) find f '(r) = (b) find the critical point for f(r). r = (c) find f ''(r) = (d) find the value of r so that f ''(r) = 0.
Answers: 1
image
Computers and Technology, 24.06.2019 03:00, paguy12
What is one potential problem associated with an organization purchasing new technology early in its lifecycle
Answers: 1
image
Computers and Technology, 24.06.2019 08:00, nataliamontirl4230
Java the manager of a football stadium wants you to write a program that calculates the total ticket sales after each game
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 in other subjects:

Konu
Physics, 28.10.2020 03:00
Konu
History, 28.10.2020 03:00
Konu
Mathematics, 28.10.2020 03:00