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:30
Many everyday occurrences can be represented as a binary bit. for example, a door is open or closed, the stove is on or off, and the fog is asleep or awake. could relationships be represented as a binary value? give example.
Answers: 1
Computers and Technology, 24.06.2019 13:00
Append and make table queries are called queries. select complex simple action i think action
Answers: 1
Computers and Technology, 24.06.2019 13:30
Which of the following is not a âfatal fourâ event?
Answers: 2
Computers and Technology, 24.06.2019 22:10
Function name: poly parameters: int returns: int description: a polynomial of degree n with coefficients a0,a1,a2,a3, . . ,an is the function p(x) = a0+a1x+a2x2+a3 â x3+ . . +an â xn this function can be evaluated at different values of x. for example, if: p(x) = 1+2x+ x2, then p(2) = 1+2 â 2+22 = 9. if p(x) = 1+x2+x4, then p(2) = 21 and p(3) = 91. write a function poly() that takes as input a list of coefficients a0, a1, a2, a3, . . , an of a polynomial p(x) and a value x. the function will return poly(x), which is the value of the polynomial when evaluated at x.
Answers: 3
The Gas-N-Clean Service Station sells gasoline and has a car wash. Fees for the car wash are $1.25 w...
History, 23.09.2019 19:30
Social Studies, 23.09.2019 19:30
Biology, 23.09.2019 19:30
History, 23.09.2019 19:30
Social Studies, 23.09.2019 19:30