1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Natali [406]
3 years ago
10

(1) Prompt the user for an automobile service. Output the user's input. (1 pt) Ex: Enter desired auto service: Oil change You en

tered: Oil change (2) Output the price of the requested service. (4 pts) Ex: Enter desired auto service: Oil change You entered: Oil change Cost of oil change: $35 The program should support the following services (all integers): Oil change -- $35 Tire rotation -- $19 Car wash -- $7 If the user enters a service that is not l
Computers and Technology
1 answer:
Pavlova-9 [17]3 years ago
6 0

Answer:

In Python:

#1

service = input("Enter desired auto service: ")

print("You entered: "+service)

#2

if service.lower() == "oil change":

   print("Cost of oil change: $35")

elif service.lower() == "car wash":

   print("Cost of car wash: $7")

elif service.lower() == "tire rotation":

   print("Cost of tire rotation: $19")

else:

   print("Invalid Service")

Explanation:

First, we prompt the user for the auto service

service = input("Enter desired auto service: ")

Next, we print the service entered

print("You entered: "+service)

Next, we check if the service entered is available (irrespective of the sentence case used for input). If yes, the cost of the service is printed.

This is achieved using the following if conditions

For Oil Change

<em>if service.lower() == "oil change":</em>

<em>    print("Cost of oil change: $35")</em>

For Car wash

<em>elif service.lower() == "car wash":</em>

<em>    print("Cost of car wash: $7")</em>

For Tire rotation

<em>elif service.lower() == "tire rotation":</em>

<em>    print("Cost of tire rotation: $19")</em>

Any service different from the above three, is invalid

<em>else:</em>

<em>    print("Invalid Service")</em>

<em></em>

You might be interested in
Type the correct answer in the box. Spell all words correctly. What is the default margin width on all four sides of a document?
Sergeu [11.5K]

1 inch (2.54 cm

the default top and bottom margins were 1 inch (2.54 cm), but 1.25 inches (3.17 cm) were given at the left and the right.

That's standard for document size by default.

7 0
3 years ago
Which of the following statements are TRUE about credit cards? I. When you use a credit card, the money comes directly out of yo
Svetllana [295]

i think it is 1. becuase it can be.

4 0
3 years ago
To turn off the AutoCorrect features, navigate to the AutoCorrect menu and deselect the box labeled_____.
barxatty [35]
Option A-Show AutoCorrect buttons, then you have the options to hide the autocorrect or to turn it on/off
4 0
3 years ago
Read 2 more answers
Drag each tile to the correct box. Shawn has been assigned to create a storyboard for an online grocery website. Organize the st
defon

Answer:  I believe the correct order is:

    Create a box and title it as the “Home Page”  →   Branch out pages and specify navigation flow  →  Gather information such as text and images   →   Determine the title, heading, and content for each page  →   Draw a layout of each web page with its elements.

Explanation:  It makes sense, you start with your "Home Page", then you follow the steps of planning to map out your site's navigation. You have to gather information about it before you have enough knowledge about it to determine the title, heading, and content.  You also need to know the content to create a clean and workable layout for the page.

6 0
3 years ago
Read 2 more answers
What happens if a spelling checker does not have a suggestion for a misspelled word?
Viktor [21]
Then the misspelled word is not a word probably, either that or the misspelled word doesn’t look like the desired word
8 0
3 years ago
Read 2 more answers
Other questions:
  • Your company is trying to get out of the responsibility of purchasing and hosting its own hardware so it won’t have to finance o
    13·2 answers
  • __ is/are the amount of blank space between lines of text in a paragraph
    7·2 answers
  • If you need to set up direct deposit, which information from your check would you likely need?
    9·1 answer
  • Brainly wont show me the "I'm Done" button after an interactive ad, and I cant figure out why. I've watched the entire ad, click
    11·2 answers
  • How to chnage email adresss on slate from tophat?
    13·1 answer
  • Binary numbers are based on __________.
    12·2 answers
  • To move an object to the bottom of the stack, click the Send Backwards arrow and then click Send to Back in the Arrange group on
    7·1 answer
  • Where can you find the sizing handles for a graphic, shape, or text box? Check all that apply.
    10·2 answers
  • HELP PLZZ WILL MARK BRAINLIEST
    9·1 answer
  • 1. Create an optimized function "print s(n,s)" that prints the given argument s (representing a string) k times. k represents th
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!