Prompt the user for an automobile service

Assignment Help Basic Computer Science
Reference no: EM131768601

I need help with this exercise which is designed to teach us how to use dict...

Automobile service cost (Python 3)

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

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.

Reference no: EM131768601

Questions Cloud

Describe the functionality of the cin : Describe the functionality of the cin, getand getline, and compare their application in different situations. Explain why one may be preferable to another.
Problem analysis before coding : Chapter 1 describes the need for problem analysis before coding. What might happen if shortcuts are taken?
Should the court issue the subpoena : MultiBank is a large London bank with a branch office in Boston. The American government believes that a prominent American underworld figure.
How much did fishbone pay for the bonds : On January 1, 2010, Fishbone Corporation purchased 300 of the $1,000 face value, How much did Fishbone pay for the bonds
Prompt the user for an automobile service : Prompt the user for an automobile service. Output the user's input.
At what amount should the gain from the sale : The prevailing rate of interest for a note of this type on January 1, 2010, was 9%. At what amount should the gain from the sale of the building be reported
Make the transfer locally without going banks : Q Bank, located in State A, has a branch in State B. X has State A currency on deposit in that branch. X directs the branch to transfer the funds to a branch.
Explain what is the argument within the field of geology : Explain what's the argument within the field of geology and are both perspectives being equally portrayed in the education system? Why or why not?
Compute the value of the franc plummets : You are an arbitrageur in London. Swiss francs are presently selling in London for U.S. $0.67. You anticipate that they will increase in value.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd