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

Answers

Answer 1

Final answer:

The task involves writing a program for a service station that sells gasoline and offers a car wash with variable pricing. The program calculates gasoline cost based on type and volume, and determines car wash fees based on gasoline purchase amount, implementing constants, conditionals, and input/output handling.

Explanation:

The program should calculate the total cost of gasoline based on the type and volume of gasoline purchased and determine the car wash fee based on the amount spent on gasoline. Specifically, customers who buy $10.00 or more worth of gasoline qualify for a discounted car wash fee of $1.25, while others pay $3.00. The gasoline prices are defined as constants within the program: regular at $2.89, plus at $3.09, and super at $3.39 per gallon. Inputs for the program include the number of gallons purchased (where R, P, S stand for regular, plus, and super gasoline, respectively, and N indicates no purchase) and whether a car wash is desired (Y for yes, N for no). The output should clearly state the total cost incurred for both gasoline and the car wash, if applicable. This scenario serves as an excellent practical application of programming skills, involving constants, conditionals, and input/output handling.


Related Questions

The Cursor is blinking in a white area on the Screen. This area where text will appear in the ____.

A. Draft view
B. Document work space
C. Print layout view
D. White space

Answers

Answers B if the curser is blinking
The answer is B

Explanation

A typical day in programming and software development would involve
A.monitoring network connections.
B.figuring out why a computer will not turn on.
C.using an image-editing program.
D. writing code for a software program. (correct answer)

Answers

Answer:

Option D. writing code for a software program

Explanation:

One important task in programming and software development is to write code for a software program. Writing code is an activity that involves writing commands that can be understood by computer to perform certain task. There are many programming languages that can be chosen by a programmer to write their code. The choice of language is dependent on the purpose of the program itself and it can be also the self-preference or computing background of that programmer.

the answer is:

d. writing code for a software program

what is x squared times b squared

Answers

Answer:

x^2 * b^2

Explanation:

Like 3 squared times 2 squared is 3*3*2*2. Similarly the expression given in the question is equal to x*x*b*b. And that explains what is mentioned in question.

For your biology class, you will be giving a presentation of the findings of a plant
growth experiment. Which application is best suited for this presentation?

Answers

Answer:

PowerPoint

Explanation:

It is dedicated for presentation.

Answer:   Impress or PowerPoint

Explanation:  

11. You should type _
space(s) after a period at the end of a sentence.
A. zero
B. three
C.one
D. two

Answers

Answer: one

Explanation:

I don’t know why but every time you type something you would have to leave a space after a period

Answer:

One

Explanation:

Every time you type something you would have to leave a space after a period.

An electronic spreadsheet is a type of
archive.
database.
document.
periodical.

Answers

Answer:

document!

Explanation:

graphics that contain movement are often referred to as
..........​

Answers

Answer:

I think the answer is animation.

Answer:

Graphics that contain movement are often refereed to as animation

Explanation:

Hope it helps

If a graphic designer creates an image to illustrate a website, this image is protected by a
trademark
copyright
nondisclosure agreement.
patent

Answers

Answer:

copyright

Explanation:

the copyright rules will protect his image from stolen by other graphic designers

Answer:

B edge 2020

Explanation:

Zahra wants to create a table for her clients’ phone numbers from a template. She clicks on the Create tab, and under the template category chooses application parts. From the Quick Start section, which category should she choose? Contacts Issues Tasks Users

Answers

Answer:

Zahra needs to select Contacts.

Explanation:

Zahra has already chosen application parts as a template category. And from the QuickStart table, it looks quite clear that Contacts is at the same level in software as issues, Tasks, and Users. And She needs to add all clients' contacts. Hence, she only needs to select the Contacts, and further, she needs to list all the clients' names and contact numbers which will definitely be shown as columns of the table which Contacts will create.

What were the job titles of the people on the design team at IDEO?

Answers

Answer:

IDEO is a designing company. And it does business designing, communication designing, interactive designing, organization design, as well as Industrial designing and also does design research, marketing and you will also find then doing big data analysis. And the job titles are accordingly. Like Business design lead, Communication design lead, Interactive design lead, Organization design lead, Industrial design lead, Marketing lead, Data Scientists, etc. You will also find them doing business development. Hence you will also find at IDEO job titles like Business development lead and various other job titles according to the above field. However, they don’t work in software design.

Explanation:

The answer is self explanatory.

Which table attributes would this code produce?

three rows, two columns, table width of half the screen, and a thin border


two rows, three columns, row width of half the screen, and a thin border


two rows, three columns, table width of half the screen, and a thin border


three rows, two columns, row width of half the screen, and a thin border

Answers

Answer:

two rows, three columns, table width of half the screen, and a thin border

Explanation:

The code given in the image is HTML code that is used to generate a table.

Each Starting row tag generate a row and each column tag generate the column.

so in given code

<tr>

</tr>

is used to generate a row.

Then

<tr>

<td></td>

<td></td>

<td></td>

</tr>

This portion of the code generate one row and three columns of table. As this section repeats two times, it means that 2 rows and 3 columns will be generated.

<table width="50%" border="1">

this code used to generate the table of half of the screen and thin border.

2. What type of expansion card allows your computer to
talk to other computers, without wires? *
3 points
O A. Modem
O
B. NIC
O C. PSU
O
D. PCle

Answers

You can use a peripheral component interconnect Express card (also known as an expansion card) to connect your computer to a wireless network (WLAN).

I hope this helped!

Which type of system would be more reliable for keeping a plane traveling at constant speed – an automatically controlled feedback loop, or a manually controlled feedback loop? Why?

Answers

In order to keep the plane travelling at a constant speed, an automatically controlled feedback loop is more reliable.

Explanation:

The main reason behind this is that the plane needs to travel at a constant speed and that would only be maintained by setting constant feedback for the loop.

The feedback being constant will correspond to constant input which will, in turn, correspond to a constant output and hence constant speed.

In the case of using a manually controlled feedback loop, feedback will have to be provided manually at each iteration which is not practically viable as there is a scope for errors.

Please answer please

Answers

Answer:

Number 7 is C

Explanation:

Answer:

3. C

6. B

Explanation:

How do you do 3.3 Code Practice: Question 1 on Edhesive?

Answers

Answer:

# Write a program to get as input the value of Red, Green and Blue. The value of each can be in between 0 and 255. And if the value of Red, or Green or Blue is below 0 then it should print out of range.#

Explanation:

import time

# Enter the value of RGB#

redvalue = int(input("Enter value of RED: "))

greenvalue = int(input("Enter the value of GREEN: "))

bluevalue = int(input("Enter the value of BLUE: "))

# We now need to check the value of RGB#

if redvalue <= 255 and greenvalue <= 255 and bluevalue <= 255:

 print("All the entries are correct.")

 # Its more than maximum #

if redvalue > 255:

 print("Red is too High.")

if greenvalue > 255:

 print("Green is too High.")

if bluevalue > 255:

 print("Blue is too High.")

 # Its quite low #  

if redvalue < 0:

 print("Red is not correct.")

if greenvalue < 0:

 print("Green is not correct.")

if bluevalue < 0:

 print("Blue is not correct.")

Problem: Test if a date is a payday based on the day of the month (15th or the 30th).

Answer: date = int(input("Enter today's day numerically:"))

if date == 15 :

  print("It's payday!")

elif date == 30 :

  print("It's payday!")

else:

  print("Sorry, not a payday.");

Explanation:

If it helped plz sub 2 me on YT at kustomkicks04

You work for a computer reseller. A customer walks in and asks you what the main differences are between a Mac and a PC. You tell her that there are slight differences in the look and feel. Additionally, which statement do you tell her to best answer her question?

a -There are no other differences.
b- Bundling and versioning are the main differences.
c- Distribution and development are the main differences.
d- The differences are not significant.

Answers

Answer:

The differences are not significant

Explanation:

Option D is better choice. Because PC and Mac are almost same things except different designs and look.

What is also know as a visual aid in a presentation

Answers

Visual aids in presentations are tools like posters and PowerPoint slides used to visually reinforce spoken content, simplifying complex information and emphasizing key points.

In presentations, visual aids are elements that can help convey information visually, supporting the presenter's verbal communication. Effective use of visual aids, like posters, PowerPoint slides, charts, and graphs, can enhance the audience's understanding by simplifying complex information and emphasizing key points. However, it is crucial to not let these aids overshadow the presentation's main content. Each visual aid typically includes a title and a caption which provides a brief explanation to ensure the audience correctly interprets the information presented. In the context of conference presentations, such visual representations are integral for illustrating data, explaining content, and focusing the audience's attention on the key concepts or points being discussed.

Dolphin Tecx is a new tech company that just issued smart watches to its
employees. But there is a problem: getting the watches to receive company
email has not been easy. What problem has the company just experienced
that is one of the biggest problems in networking?

Answers

Answer:

the problem of transporting

Explanation:

Answer:

Getting hardware and software from different sources to work together

Explanation:

a p e x

Your dad has downloaded an application from the internet. He calls you up and says he is unable to uninstall the application. He says the file he downloaded has an ISO extension. What do you tell him?

Answers

I may be right or may not be dont trust me on this one but I'm pretty sure it's letter A that is if you are using CourseHero but if your not its extract it using a 7-zip. Please do more research before you trust me because I am not completely sure.

Which of the following would an NSA professional most likely need?
A. a high school diploma
B.a high school diploma and some training
C. a certificate
D.a bachelor’s degree (correct answer)

Answers

Answer:

B.a high school diploma and some training

Explanation:

Undoubtedly, NSA professional requires limited education, and a high school diploma is enough for them. However, they will need some training related to security services as well. and only then they will be able to work as an NSA professional. Hence, having only a high school diploma is not enough, and the certificate will also not work. However, they also do not need a bachelor's degree. And they definitely need a high school diploma and some training. That is certainly going to be enough for becoming an NSA professional.

This problem performs elliptic curve encryption/decryption using the scheme out-
lined in Section 10.4. The cryptosystem parameters are E11(1,6) and G = (2,7). B's
secret key is nb = 3. (Hint: Note the relationship of this system to the one discussed in
the previous question (10.14)]

a. Find B's public key PB.
b. A wishes to encrypt the message Pm = (10,9) and chooses the random value
k = 4. Determine the ciphertext Cm.

c. Show the calculation by which В recovers Pm from Cm.

(10.14----> for E11(1,6) consider the point G=(2,7). compute the multiple of G from 2G through 13G.)

Answers

Answer:

Following is the solution fr the question step by step:

a. PB = (7,2)

b. Cm = {(8,3), (10,2)}

c. Pm= (10,9)

Explanation:

I hope it will help you!
(a) B's public key is "[tex]P_B = (7,2)[/tex]"(b) The ciphertext is "[tex]C_m = {(8,3),(10,2)}[/tex]"(c) Between the two points, addition as well as multiplication are proceeding.

(a)

The formula:

→ [tex]P_B = n_B\times G[/tex]

By substituting the values, we get

        [tex]= 7\times (2.7)[/tex]

        [tex]= (7,2)[/tex]

(b)

As we know,

The cipher text will be:

→ [tex]C_m = {\left\{ kG, P_m+kP_B \right \}}[/tex]

By putting the values,

        [tex]=\left \{ {3(2,7), (10,9)+3(7,2)} \right \}[/tex]

        [tex]= \left \{ (8,3),(10,2) \right \}[/tex]

(c)

B Recovers will be:

→ [tex]P_m = \left \{ kP-b-n_b(kG,P_m) \right \}[/tex]

        [tex]= (10,2)-7(8,3)[/tex]

        [tex]= (10,2)-(3,5)[/tex]

        [tex]= (10,2)+(3,6)[/tex]

        [tex]= (10,9)[/tex]

Thus the above responses is correct.                

Learn more about cipher text here:

https://brainly.com/question/18426927

Which type of word processing programs enables us to include illustrations within the program?
A. popular
B. widely used
C.
full featured
D. inexpensive

Answers

Answer:

C.  full featured

Explanation:

You need to make use of the full-featured version of the word processing programs to use the illustrations that are part of the program. And simple versions might not have that. By fully featured it means you need to have the license included or else you will be able to use it for a few days or a maximum of 3 months, and that is certainly not a good idea.

a compound document has

A. the computing power of a spreadsheet

B. a spreadsheet embedded.

C. more than one application interface.

D. only one application interface.

Answers

Answer:

c

Explanation:

more than one application interface

The exchange of infomation is called

Answers

Answer:

Electronic data interchange (EDI)

Explanation:

Answer: Dillon is packing equal quantities of pretzels and crackers for snacks. Dillon bags the pretzels in groups of 5 and the crackers in groups of 11. What is the smallest number of crackers that he can pack?

Explanation: can u awnser this?

state reasons why new version of application packages are released often?​

Answers

- To add new features

- To fix bugs

- To combat security vulnerabilities

- To keep customers engaged by showing the application is still maintained

Answer:

new version of applications are released to address issues like:

fixing bugsinsecurity of the applicationto update featurescustomer engagement as well market competition

Explanation:

Most application release new versions of their applications due to all and more of these reasons been given above:

fixing of bugs: bugs are a constant threat to the functionality of different applications hence the constant improvement and release of newer version help detect and remove most bugs

insecurity of the application: this is very important for most Applications because identities of users can be stolen by hackers if an application is not properly secured

update of features: new versions come with newer features which makes the application user friendly

customer engagement is essential so that there will be new and returning customers using the application

market competition: rival and similar applications tend to release newer versions of their applications in other to win the market

Select five system utility functions.

-executing user-level programs
-managing memory usage
-encrypting data
-managing files
-initializing system date and time
-managing the network
-backing up disk data
-compressing data

Answers

Answer:

so the five would be 5,4,6,8,2 i think correct me if I’m wrong

Explanation:

executing user-level programs Is one

-managing memory usage is two

-encrypting data is three

-managing files is four

-initializing system date and time is five

-managing the network is six

-backing up disk data is seven

-compressing data is eight

Which is a correctly formatted Python tuple?
o
[12, "cirde", "square]
n : 12, "shape1": "circle”, “shape2": “square"}
(12, circle”, “square")
12 circle square

Answers

Answer:

(12, "circle”, “square")  is the correct answer.

Explanation:

The following answer is true because the following answer is in the correct format. The tuple is the data type of the Python Programming language which is defined inside the parentheses "()" and it is an immutable type that means its elements is not changed after once the element is inserted in the tuple. Tiple is also defined by the parentheses "()" or by the predefined function tuple().

Answer:

(12, "circle”, “square")  is the correct answer.

Explanation:

XD

HELP ME PLEASE
What are the components that could be used in a mathematical formula? Check all that apply.
variable
expression
value
operator
result

Answers

Answer:

variable

expression

operator

result

Explanation:

Final answer:

A mathematical formula consists of variables, expressions, values, operators, and results; to solve problems, identify knowns and unknowns and substitute values to obtain results.

Explanation:

The components that can be used in a mathematical formula include variables, expressions, values, operators, and results. Variables represent unknown quantities and can change, expressions combine variables and numbers using operators, values are the specific numbers in the formula, operators are the symbols that define operations (such as addition, subtraction, multiplication, division), and the result is the outcome of the formula. When solving problems, it is essential to identify the known and unknown variables, express the unknowns in terms of knowns, and then substitute all known values to get the result.

Approximately how many times should you review and practice possible fill in the blank questions that may be on a test?
a. 5-10 times
c. 1-3 times, to get a good feeling about what the
possible answers could be
b. Until they can be easily answered
d. 2-5 times
Please select the best answer from the choices provided
Ο
Α

Answers

Answer:

b. Until they can be easily answered.

Explanation:

We cannot fix the No. of reviews to understand the best possible answer. It can be solved in first attempt and cannot be in 100 attempts.

This is the reason, answer "B" is best possible choice for this question.

Does anyone know how to able an iPhone 6s with a hp computer without and iTunes??

Answers

Not possible you need iTunes to unlock the phone
Other Questions
30 points Asap Recall that Seth's house is 17 miles from school. Whichlocation should Seth start off at to get to school fasterand how long will it take?from the bus stop is faster, taking 17 minutesfrom the bus stop is faster, taking 24 minutesfrom his friend's house is faster, taking 15 minutesfrom his friend's house is faster, taking 22.5 minutes Schachter's (1964) two-factor theory of emotion suggests that we first experience ________ and then subsequently seek to ________. A. physiological arousal; label the emotion appropriately B. compunction; reduce cognitive dissonance C. cognitive dissonance; label the emotion appropriatelyD. physiological arousal; reduce self-awareness which two functions of a firewalls in an enterprise network are true (choose two) West high schools population is 250 students fewer then twice the population of East High school the two schools have a total of 2858 students how many students attend the East high school Speech sounds register first in the primary _____ cortex; they are then sent to _____ area where they are unscrambled into meaningful patterns of words.a) temporal; Broca'sb) parietal; sensoryc) auditory; Wernicke'sd) sensory; prefrontal This technique is designed for women interested in having a completely natural, nonmedicated birth that stresses good diet and exercise, partner coaching, and deep relaxation.Bradley methodnatural childbirthLamaze methodcrowning method At the used bookstore, Keisha bought 24 novels. If 3/8 of the book the books are mystery novels and the rest are science fiction novels, how many science fiction novels did Keisha buy? Identify the monomial function described as odd or even, and indicate whether a is positive or negative. What equation represents a line that has a slope of -1/2 and passes through the point (4, 0) A sofa was sold at a price of $270 with a 25% profit. What is the cost of the sofa? A circular jogging track forms the edge of a circular lake that has a diameter of 2 miles. Johanna walked once around the track at the average rate of 3 miles per hour. If t represents the number of hours it took Johanna to walk completely around the lake, which of the following is a correct statement?A. 0.5< t < 0.75B. 1.75< t < 2.0C. 2.0 < t < 2.5D. 2.5 < t < 3.0E. 3 < t < 3.5 Nicoles job pays her salary plus commission. She earns a daily salary of $60 plus 15% commission of her total sales. On Monday, she earned a total of $63.75. What were her total sales? Can you please help me solve and if you show work I would really appreciate it Play in board games like Dungeons and Dragons is constricted within the context of the real world.a. True b. False Choose the graph which represents -6x - 5y = -10 What are the recent trends in American juvenile justice, and how has this portion of the American criminal justice system improved or gotten worse? Self-determination, curiosity, challenge, and effort are all _____ in adolescents' motivation. simplify the expression- 3w+8+18 Select all that apply: If medically indicated after an exposure, the U.S. Public Health Service requires that your employer offers you post-exposure medication for _______.A. HIVB. InfluenzaC. TuberculosisD. Hepatitis BE. Hepatitis C All of the following communications with the general public are considered to be Retail Communications subject to the communication rules on advertising EXCEPT:a. A firm's web siteb. Communications or more than 25 retail investors within any 30 calendar day periodc. A firm's electronic bulletin boardd. An issuer's prospectus Steam Workshop Downloader