Program 1: Insurance Premium.py 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 - se0e, ssee, 485e, 6see, s8se, 7899, 765e, 7980, 83ee, 9580 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 folowing tasks. 2/4 a) Calculate and display the Insurance preniun for each car according to the follov Store the insurance premium in a List. Engine Capacity Car Price car price < 5eee 5800 s car price < 550e 5500 s car price < 600e car price > 6eee Insurance Premium 1X of car price 2% of car price 3% of car price 5% of car price 7% of Car price Less than or equal 3 ce More than 3 cc b) Calculate and display the Onroad Price for each car using the formula shown below. Store tina list. Onroad Price - Car prtce + Insurance preatum c) Calculate and display average Onroad Price. d) Calculate and display number of cars with Onroad Price <6000. e) Daplay the output as follows: Price insurance onroad 4000.00 4280.00 2.60 1.60 280.00 4560.00 4879.20 319. 20 169.50 271.20 5650.00 3.30 5819.50 6780.00 4.00 1.80 7051.20 8450.00 591.50 9041.50 The Average on road price is 6214.28 The number of cars above 6000 is 2 All amounts should be dispiayed with two decimai places. Inciude the following comments at the beginning of your code. Pile Nane rne a stutert 2e Student Nee CYOUR NA

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Program 1: Insurance Premium.py
Create a Python program that ask the user to input the Car Price and Engine Capacity(cc) for n
cars and store them in twa different lists. The sample input data is shown below.
Car Price - 5000, ssee, 4850, 6see, 58s0, 7808, 765e, 7900, 83ee, 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.
2/4
a) Calculate and display the Insurance preniun for each car according to the follov
Store the insurance premium in a List.
Engine Capacity
Car Price
Insurance Premium
1X of car price
2% of car price
3% of car price
5% of car price
7% of Car price
car price < 5e0e
5000
S car price < 5500
5500 S car price < 600e
car price > Ge00
Less than or
equal 3 ce
More than 3 cc
b) Calculate and display the Onroad Price for each car using the formula shown below. Store
it in a list.
on road Price - Car prtce + insurance premtum
e) Calculate and display average Onroad Price.
d) Calculate and display number of cars with Onroad Price <6000.
e) Dsplay the output as follows:
Price
CC
insurance onroad
4000.00
2.60
280.00
4280.00
4560.00
5650.00
6780.00
1.60
3.30
319.20
169.50
271.20
591.50
4879.20
5819.50
7051.20
4.00
1.80
8450.00
9041.50
The Average on road price is
The number of cars above 6000 is
6214.28
2
All amounts should be displayed with two decimai places. Include the following comments at
the beginning of your code.
rile Nene
student 14
Student Nene
or wo
2YOUR NAD
Transcribed Image Text:Program 1: Insurance Premium.py Create a Python program that ask the user to input the Car Price and Engine Capacity(cc) for n cars and store them in twa different lists. The sample input data is shown below. Car Price - 5000, ssee, 4850, 6see, 58s0, 7808, 765e, 7900, 83ee, 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. 2/4 a) Calculate and display the Insurance preniun for each car according to the follov Store the insurance premium in a List. Engine Capacity Car Price Insurance Premium 1X of car price 2% of car price 3% of car price 5% of car price 7% of Car price car price < 5e0e 5000 S car price < 5500 5500 S car price < 600e car price > Ge00 Less than or equal 3 ce More than 3 cc b) Calculate and display the Onroad Price for each car using the formula shown below. Store it in a list. on road Price - Car prtce + insurance premtum e) Calculate and display average Onroad Price. d) Calculate and display number of cars with Onroad Price <6000. e) Dsplay the output as follows: Price CC insurance onroad 4000.00 2.60 280.00 4280.00 4560.00 5650.00 6780.00 1.60 3.30 319.20 169.50 271.20 591.50 4879.20 5819.50 7051.20 4.00 1.80 8450.00 9041.50 The Average on road price is The number of cars above 6000 is 6214.28 2 All amounts should be displayed with two decimai places. Include the following comments at the beginning of your code. rile Nene student 14 Student Nene or wo 2YOUR NAD
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Problems on Dynamic Programming
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education