Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program to calculate the total price for car wash services. A base car wash is $10. The cost for additional services are

image text in transcribed   image text in transcribed image text in transcribed

Write a program to calculate the total price for car wash services. A base car wash is $10. The cost for additional services are as follows: Air freshener Rain repellent Tire shine Wax Vacuum $1 $2 $2 $3. $5 Your program should store the additional services in a dictionary. The user enters which additional services they want, separated by a comma. Assume the services the user enters are distinct. If the user doesn't select any additional services, they can just hit "enter" on the keyboard. Then your program outputs all selected services, according to the input order, along with the corresponding costs and then the total price for all car wash services. The base wash should be the first one printed. Note that the user doesn't need to input the base car wash. It is selected by default. Attempt 1 C3 M 2023 Spring Semester Due: Fri Apr 7, 2023 11:59pm Home Announcements Syllabus Modules 38 Grades = People Support & Policies Library Resources MU Connect Search Examples IN PROGRESS Next Up: Submit Assignment Example 1: The user doesn't select any additional service. 100 Possible RESTART: /Users/jj2cr/Documents/Mizzou/Courses/INFOTC1040/Spring2023/ homework/homework08/carWash.py ZyCar Wash Base car wash: $10 Total price: $10 Add C Zoom < Previous Example 2: The user enters "Tire shine". = RESTART: /Users/jj2cr/Documents/Mizzou/Courses/INFOTC1040/Spring2023/ homework/homework08/carWash.py Tire shine ZyCar Wash Base car wash: $10 Tire shine - $2 Total price: $12 APR A 5 tv Submit Assignment 38 Home Attempt 1 Announcements Syllabus Modules Grades People Support & Policies Library Resources MU Connect IN PROGRESS Next Up: Submit Assignment homework/homework08/carWash.py Tire shine ZyCar Wash Base car wash: $10 Tire shine - $2 Total price: $12 Search Zoom Previous P Example 3: The user enters "Tire shine,Wax, Rain repellent" = RESTART: /Users/jj2cr/Documents/Mizzou/Courses/INFOTC 1040/Spring2023/ homework/homework08/carwash.py Tire shine, Wax, Rain repellent ZyCar Wash Base car wash: $10 Tire shine - $2 Wax - $3 Rain repellent - $2 Total price: $17 APR LO 5 tv 8 W Submit Assignm

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Here is the implementation of the program to calculate the total price for a car wash dictionary to ... 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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions

Question

The following sample observations were randomlyselected.

Answered: 1 week ago