2) [45 Points] Car Wash Write a program to calculate the total price for car wash...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
2) [45 Points] Car Wash Write a program to calculate the total price for car wash services. A base car wash is $10. Create a dictionary populated with each additional service and the corresponding cost as follows (Hint: key = additional service, value = cost). Additional Service 'Air freshener' 'Rain repellent' 'Tire shine' 'Wax' 'Vacuum' Cost 1 2 2 3 5 Two additional services can be 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. A sample output is provided below. Sample output (user input is highlighted in yellow) Enter your first choice: Wax Enter your second choice: Rain repellent Mustang Car Wash Base car wash - $10 Wax - $3 Rain repellent $2. Total price: $15 2) [45 Points] Car Wash Write a program to calculate the total price for car wash services. A base car wash is $10. Create a dictionary populated with each additional service and the corresponding cost as follows (Hint: key = additional service, value = cost). Additional Service 'Air freshener' 'Rain repellent' 'Tire shine' 'Wax' 'Vacuum' Cost 1 2 2 3 5 Two additional services can be 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. A sample output is provided below. Sample output (user input is highlighted in yellow) Enter your first choice: Wax Enter your second choice: Rain repellent Mustang Car Wash Base car wash - $10 Wax - $3 Rain repellent $2. Total price: $15
Expert Answer:
Answer rating: 100% (QA)
baseprice 10 additionalservices Air freshener 1 Rain repe... 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
-
Tracy Corp. is considering Projects Meems and Eliza. The required return for each project is 11.4 percent. Calculate the NPV for each project. Which project should be accepted using NPV? Calculate...
-
The Dakota Corporation prepared, for 2014 and 2013, the following balance sheet data: 2014 2013 Cash $87,375 63,750 Available-for-sale securities (not cash equivalents) 17,250 105,000 Accounts...
-
give the Definitions/description of the following specialization structural engineering geotechnical engineering construction engineering transportation engineering water resources engineering
-
In the game of roulette, a gambler who wins the bet receives $36 for every dollar she or he bet. A gambler who does not win receives nothing. If the gambler bets $1, what is the expected value of the...
-
A 50-turn rectangular coil of dimensions 5.00 cm + 10.0 cm is allowed to fall from a position where B = 0 to a new position where B = 0.500 T and the magnetic field is directed perpendicular to the...
-
A liquid solution contains 1 mol of CaCl2 and 25 mol of water. Using data from Pb. 12.37, determine the heat effect when an additional 1 mol of CaCl2 is dissolved isothermally in this solution. In...
-
The purchasing officer for Cellar Cork Ltd has prepared a purchases budget for the financial year ending 31 March 2025, based on the following data. Required (a) Calculate the amount of purchases...
-
Oranges are grown, picked, and then stored in warehouses in Tampa, Miami, and Fresno. These warehouses supply oranges to markets in New York, Philadelphia, Chicago, and Boston. The following table...
-
1. What are some of the most common forms of unethical behavior in our workforce today? How could leadership in organizations help to minimize this ethical misconduct? Explain and support your...
-
Start with the partial model in the file Ch21 P08 Build a Model.xlsx on the textbook's Web site. Kasperov Corporation has an unlevered cost of equity of 12% and is taxed at a 40% rate. The 4-year...
-
1. a). Explain the following terminologies as applied to computer programming: i. Computer program ii. Compiler iii. Bug iv. V. (3 Marks) (3 Marks) (3 Marks) (3 Marks) (3 Marks) (5 marks) Debugging...
-
a. Define what f(n) = O(g(n)) means. Define the complexity classes P and NP. [5 marks] b. We proved in class that the problem CLIQUE is NP-complete by con- structing a polynomial reduction from 3SAT...
-
1. Suppose you have access to the following quotes for the : Spot rate: 1.2396 1.2396 180-day forward (outright) rate: 1.2393 What is the corresponding swap rate for the ? In points?
-
The boundary conditions for a polynomial cam motion are as follows: for = 0, y = 0, and y = 0; for 0 = 3, y=L, and y' = 0. Determine the appropriate displacement equation and its first three...
-
The table below shows products, and figures representing each day; follow the statement below to resolve it. 2. Sort column A alphabetically. After sorting, the list should start with Apple Sauce and...
-
A country's production of solar power, in megawatts, can be modeled by f(t) = 350(1.3)', where t is years since 2000. Find f(0), ' (0), (20), and f' (20). Give units and interpret your answers in...
-
9. Let =-6 A = :] 100 010 B = 0 -- 1 0 0 Show that AB = 12. What can you say about BA? 10. Show that the identity matrix is invertible but the zero matrix is not. 11. Is the sum of two invertible...
-
A circular concrete shaft liner with Youngs modulus of 3.4 million psi, Poissons ratio of 0.25, unconfined compressive strength 3,500 psi and tensile strength 350 psi is loaded to the verge of...
-
During 2012, William purchases the following capital assets for use in his catering business: New passenger automobile (September 30)........................$21,500 Baking equipment (June 30)...
-
In 2012, Lou has a salary of $54,000 from her job. She also has interest income of $1,700. Lou is single and has no dependents. During the year, Lou sold silver coins held as an investment for a...
-
Sherry Hopson owns a retail family clothing store. Her store is located at 4321 Circle Drive, Houston, TX 77001. Her employer identification number is 95- 1234321 and her Social Security number is...
-
Use the data of Problem 3.8 to find the phase differences of the Loewy function for a double bladed rotor where only the distance between the blades are counted. Make the same computations for...
-
If the gust intensity with time varies as given in Fig. 3.16, obtain the lift and the moment coefficient changes about the midchord and their plots with respect to time. Fig. 3.16 Wg 0 to t
-
Find the lift and the moment coefficients about the midchord of an airfoil which undergoes a sudden vertical translation under zero angle of attack. Use the Wagner function.
Study smarter with the SolutionInn App