Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PYTHON CODE PLEASE 4.20 LAB: Warm up: Automobile service cost (1) Prompt the user for an automobile service. Output the user's input. (1 pt) Ex:

PYTHON CODE PLEASE

4.20 LAB: Warm up: Automobile service cost

(1) Prompt the user for an automobile service. Output the user's input. (1 pt) Ex:

Enter desired auto service: Oil change You entered: 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 listed above, then output the following error message:

Error: Requested service is not recognized 

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil, Elizabeth O'Neil

2nd Edition

1558605800, 978-1558605800

More Books

Students also viewed these Databases questions

Question

Using Table as an example, create two alternative access plans.

Answered: 1 week ago

Question

9. Describe the characteristics of power.

Answered: 1 week ago

Question

3. Identify and describe nine cultural value orientations.

Answered: 1 week ago