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
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
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 3 images
Knowledge Booster
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.Recommended textbooks for you
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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education