Computers and Technology, 26.02.2020 04:35 mmagee2020
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
Answers: 3
Computers and Technology, 23.06.2019 03:00, Julianhooks
State 7 common key's for every keyboard
Answers: 1
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
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
The Gas-N-Clean Service Station sells gasoline and has a car wash. Fees for the car wash are $1.25 w...
History, 28.10.2020 03:00
Physics, 28.10.2020 03:00
History, 28.10.2020 03:00
Mathematics, 28.10.2020 03:00
Mathematics, 28.10.2020 03:00
Arts, 28.10.2020 03:00
Advanced Placement (AP), 28.10.2020 03:00
Mathematics, 28.10.2020 03:00