Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a Python program that ask the user to input the Car Price and Engine Capacity(cc) for n cars and store them in two

 

Create a Python program that ask the user to input the Car Price and Engine Capacity(cc) for n cars and store them in two different lists. The sample input data is shown below. Car Price = 5000, 5500, 4850, 6500, 5850, 7000, 7650, 7900, 8300, 9500 Engine Capacity 1.3, 2, 1.6, 2.3, 2.6, 3, 3.6, 3.7, 4, 4.4 Your program has to do the following tasks. a) Calculate and display the insurance premium for each car according to the following table. Store the insurance premium in a List. Car Price car price 6000 5% of car price 7% of Car price More than 3 cc b) Calculate and display the Onroad Price for each car using the formula shown below. Store it in a list. Onroad Price = Car price + insurance premium c) Calculate and display average Onroad Price. d) Calculate and display number of cars with Onroad Price

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Heres a Python program that accomplishes ... 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

The Science And Engineering Of Materials

Authors: Donald R. Askeland, Wendelin J. Wright

7th Edition

1305076761, 978-1305076761

More Books

Students also viewed these Programming questions

Question

What are some key differences between leaders and managers?

Answered: 1 week ago