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

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 20PE
icon
Related questions
Question
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 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:
ŻyCar Wash
Base car wash --
$10
Rain repellent -- $2
Total price: $12
Transcribed Image Text: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 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: ŻyCar Wash Base car wash -- $10 Rain repellent -- $2 Total price: $12
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Computational Systems
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning