Write a program to calculate the total price for car wash services. A base car wash...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
Here is the implementation of the program to calculate the total price for a car wash dictionary to ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
Trade promotions refer to offers made to Group of answer choices channel members non-profit organizations businesses consumers Question 2 Consumer promotions refer to offers made to Group of answer...
-
Dougald Construction Ltd. borrowed $250,000 from TD Bank on October 1, 2014, for a nine-month period; 5% interest is payable at maturity. Both companies have a December 31 year end and make adjusting...
-
The word recursive is used to describe an equation that has an impact on a simultaneous system without any feedback from the system to the equation. Which of the equations in the following systems...
-
Consider the following cash flow diagram. What is the value of \(X\) if the internal rate of return is 15 percent? a. \(\$ 246\) b. \(\$ 255\) c. \(\$ 281\) d. \(\$ 290\) 0 $400 X X 1 2
-
Frieden Companys contribution format income statement for the most recent month is given below: Sales (40,000 units) . . . . . . . . . . . $800,000 Variable expenses . . . . . . . . . . . . 560,000...
-
What is a union query? (ii) What is SQL Data Manipulation Language (DML)? (iii) Why is MIS required? (iv) Explain the impact of computer technology on our lifestyle? (v) What do you mean by...
-
Workers in the petrochemical industry often wear flame-retardant jumpsuits. Unfortunately, the material from which they are made hinders evaporation of perspiration, and consequently heat stress can...
-
What is Six Flags worth at the end of 2009? How does this valuation affect the choice of securities in which to invest ? Evaluate the SFO Plan and the division of claims in this bankruptcy plan. Why...
-
Kim has acquired 50% of the shares owned by Betty in two companies, LTC Ltd and Non-LTC Ltd, which have accumulated losses available to be carried forward and set off against the profits of a future...
-
The lens-to-retina distance of a woman is 2.00 cm, and the relaxed power of her eye is 53.6 D. (a) What is her far point? How is the refracting power of a person's eye for distant vision related to...
-
Give at least two transactions which are recorded on the credit side of ICA and one transaction which is recorded on the debit side of ICA.
-
Michelle and Shawn have been married for the last 10 years. Since the beginning of their marriage, Michelle (the higher income earner) has been contributing into Shawn's Spousal RRSP. The...
-
Mrs. Brenner, age 50, owns all the Class A common shares of a corporation which has an investment portfolio worth $500,000. The Class A shares were issued to Mrs. Brenner on incorporation. The...
-
Write the differential equation for each system given in Fig.1(a) and (b). R(s) C(s) F(s) s+5 V(s) s2+2s+7 s3 + 8s2 +9s+ 17 (b) Fig.1 (a)
-
Solve each problem. Find the coordinates of the points of intersection of the line y = 2 and the circle with center at (4, 5) and radius 4.
-
Harold Conners (Social Security number 785-23-9873) lives at 13234 DeMilo Drive, Houston, TX 77052, and is self-employed for 2012. He estimates his required annual estimated tax payment for 2012 to...
-
Laura is a single taxpayer living in New Jersey with adjusted gross income for the 2012 tax year of $35,550. Laura's employer withheld $3,300 in state income tax from her salary. In April of 2012,...
-
Diego, age 28, married Dolores, age 27, in 2012. Their salaries for the year amounted to $46,479 and they had interest income of $3,500. Diego and Dolores' deductions for adjusted gross income...
-
Last year, Miley decided to terminate the S corporation election of her solely owned corporation on October 17, 2018 (effective immediately), in preparation for taking it public. At the time of the...
-
You have been assigned to compute the income tax provision for Motown Memories Inc. (MM) as of December 31, 2019. The companys income statement for 2019 is provided below: MM prepared the following...
-
Jane has been operating Mansfield Park as a C corporation and decides she would like to make an S election. What is the earliest the election will become effective under each of these alternative...
Study smarter with the SolutionInn App