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.
write a program that prints a statement for a customer.

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

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 01:00, Trumpman137
Which option marks all modification made within a document? review comment track changes balloons
Answers: 1
image
Computers and Technology, 22.06.2019 13:30, ReaLily
1. technician a says horsepower information can be used by consumers to compare the power of different automobile engines. technician b says that manufacturers will often list the horsepower output of their engines in the online service information. who is right?
Answers: 2
image
Computers and Technology, 22.06.2019 15:00, taylorsamodell3217
Who is the first president to use social media as part of his campaign strategy
Answers: 1
image
Computers and Technology, 23.06.2019 18:00, joybeth9591
What can a word user do with the customize ribbon dialog box? check all that apply. minimize the ribbon add a new tab to the ribbon remove a group from a tab add a group to a tab choose which styles appear choose which fonts appear choose tools to appear in a group
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: