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, 22.06.2019 14:10
Dean wants a quick way to look up staff members by their staff id. in cell q3, nest the existing vlookup function in an iferror function. if the vlookup function returns an error result, the text βinvalid staff idβ should be displayed by the formula. (hint: you can test that this formula is working by changing the value in cell q2 to 0, but remember to set the value of cell q2 back to 1036 when the testing is complete.)
Answers: 3
Computers and Technology, 23.06.2019 00:30
Which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 2
Computers and Technology, 23.06.2019 07:30
Write a program that inserts the digits of an integer into an array in originalorderfollowed by reverse order. first, promptthe user to enter a positive integer(> 0). determine the number of digits of the integer. create a dynamically allocated integer arrayof a size twice the number of digits.now insert the digits in original order which will occupy half of the array. then, insert the digits in reverse order.finally, output thedigits in thearray.use at least two functions to organize your program.
Answers: 3
Computers and Technology, 23.06.2019 13:30
Font size, font style, and are all aspects of character formatting.
Answers: 2
The Gas-N-Clean Service Station sells gasoline and has a car wash. Fees for the car wash are $1.25 w...
Geography, 16.12.2020 02:30
World Languages, 16.12.2020 02:30
Mathematics, 16.12.2020 02:30
Mathematics, 16.12.2020 02:30
Health, 16.12.2020 02:30
Computers and Technology, 16.12.2020 02:30
Mathematics, 16.12.2020 02:30
Mathematics, 16.12.2020 02:30
Mathematics, 16.12.2020 02:30
Social Studies, 16.12.2020 02:30
World Languages, 16.12.2020 02:30
Mathematics, 16.12.2020 02:30