labactivity 4.9.1: Warm up: Automobile service cost (Python 3)

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:

Cost of oil change: $35

The program should support the following services:

  • 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.

labactivity 4.9.1: Warm up: Automobile service cost (Python 3)

Hi there! Click one of our representatives below and we will get back to you as soon as possible.

Chat with us on WhatsApp