Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Pyhton please! 3 3 . 1 6 LAB: Car wash Instructor note: The skills required for this lab are covered in Chapter 1 1 -

Pyhton please! 33.16 LAB: Car wash
Instructor note:
The skills required for this lab are covered in Chapter 11- Lists and Dictionaries. To successfully complete this lab, review the content of Chapter 11, as well as the preceding chapters, and complete the Challenge Activities associated.
Write a program to calculate the total price for car wash services. A base car wash is $10. A dictionary with each additional service and the corresponding cost has been provided. Two additional services can be selected. A '-' signifies an additional service was not selected. Output all selected services, according to the input order, along with the corresponding costs and then the total price for all car wash services.
Ex: If the input is:
Tire shine
Wax
the output is:
ZyCar Wash
Base car wash -- $10
Tire shine -- $2
Wax -- $3
----
Total price: $15
Ex: If the input is:
Rain repellent
-
the output is:
ZyCar Wash
Base car wash -- $10
Rain repellent -- $2
----
Total price: $12
services ={ 'Air freshener' : 1, 'Rain repellent': 2, 'Tire shine' : 2, 'Wax' : 3, 'Vacuum' : 5}
base_wash =10
total =0
service_choice1= input()
service_choice2= input()
''' Type your code here '''

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

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions

Question

socialist egalitarianism which resulted in wage levelling;

Answered: 1 week ago

Question

soyuznye (all-Union, controlling enterprises directly from Moscow);

Answered: 1 week ago