Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(Heres the code I currently have. Need to have that result on the screen there. Anything to add to make that like that?) service_choice1 =

(Heres the code I currently have. Need to have that result on the screen there. Anything to add to make that like that?)

service_choice1 = input() service_choice2 = input()

services = {'Air freshener': 1, 'Rain repellent': 2,

'Tire shine': 2, 'Wax': 3, 'Vaccum': 5}

base_wash = 10

total = 10

print("ZyCar Wash")

print("Base car wash -- $10")

if service_choice1 in services.keys(): print(service_choice1+" -- $"+str(services[service_choice1])) total += services[service_choice1]

if service_choice2 in services.keys(): print(service_choice2+" -- $"+str(services[service_choice2])) total += services[service_choice2]

print("----")

print("Total price: $" + str(total))

image text in transcribed

Input Vacuum Air freshener ZyCar Wash Base car wash Air freshener $10 Your output $1 --- Total price: $11 -- $10 ZyCar Wash Base car wash Vacuum $54 Air freshener -- Expected output $1 --- Total price: $16

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_2

Step: 3

blur-text-image_3

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 Marketing The New Profit Frontier

Authors: Ed Burnett

1st Edition

0964535629, 978-0964535626

More Books

Students also viewed these Databases questions