Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can you format this for python idle please ? This assignment will use the same basic downpipat which calculated the cost apa sation based on

can you format this for python idle please ? image text in transcribed
This assignment will use the same basic downpipat which calculated the cost apa sation based on the type of gas, the number of pallons of gas, and the type of car wash pecaned. However, you will modify the code so that it can proces variable her of vicles and compute salto. You can modify your pal code or the sample pel solution to incorporate the following new fans Your program will first the wet how many vehicles they will be purchasing and care for Next, your code will use a countControlled loop to calculate the cost of the gas and car wash for each vehicle this portion is the passie see the paindet) Display themes for each individual . In dit the calculations from pai you will ale Maintain a sum of the total gallons el gas purchased for all cicle Maintain a sum of the gas cost for all chicles Count the number of vehicles that will have a car wash Maintain a sm of the stal car wash cost for all vehicles Calculate the total cost of us dear wishes for all chicles You will daplay the new calculations in a ratly aligned table at the cand of the program precation laput your code should process correctly if the studentenen capital or lowercase lettersley or Y:ror You are not required to check for valid input (le, who testing your code, we will provide valid input such as yin and RTX Formatted Output: The largest sumerical data you should fit for is 999 99 e. 5 digits plus a decinul point The number of cars and number of car washes will be an intervalue. The remaining numerical outputs should have two decimal places of precision and be aligned by the decimal point Sample Run 11: Welcome to the Gon Stop We have wegalar and Prelungas. Enter the number of CAD : 3 ap by the is indicated by this buldunderlined & talice NOTE I will not be bold, delsed, and italice when you non your program Notice how some of the sample rues we were letters and some pprrca Enter the information for car.1 Enter the type of gas (R/ PR Enter the number of gallos Would you like a car wash t/m. Summary for car. Cas Type: Regular Cost per Callon: 2.00 Calons Purchased: 10.00 Total Cas Cost: 20.00 Car Wash Cost: 0.00 Total Coats 20.00 Intet the information for cat Enter the type of gas (R/P: g Enter the number of lion: Wold you like a car wash yn y Car wash options: 1. Maste- 35.00 2. Premium - 16.00 3. Deluxe - 17.00 Enter your selection 2 Sumary or car Gas Types Premium Cost per Calon 2.50 Gallone Purchased: 8.00 Total Gas Costo 20.00 Car Wash Costs Total Cost 27.00 9.00

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

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions

Question

Does it have at least one-inch margins?

Answered: 1 week ago

Question

Define marketing concepts.

Answered: 1 week ago

Question

1 what does yellow colour on the map represent?

Answered: 1 week ago