Question: Please create car inventory in python and provide source code and a screen shot showing the results of your testing. The manager of a car

Please create car inventory in python and provide source code and a screen shot showing the results of your testing.

The manager of a car dealership would like a simple inventory system to track of the number of cars on the lot and the number of cars sold each year. The inventory system should also track the make and model of the cars so the manager can determine things like:

The number of cars available for sale.

The number of cars of a particular make and model available for sale.

The number of cars sold in a particular month and year.

After writing your classes, write a program to test your classes. Your test program should do the following:

1. Fill your inventory using the following data:

Make Model Month Year numUnsold numSold
Hyundai Sonata 0 2016 50 0
Hyundai Sonata 1 2016 40 10
Hyundai Elantra 0 2016 35 0
Hyundai Elantra 1 2016 30 5
Ford F-150 0 2016 70 0
Ford F-150 1 2016 50 20
Ford Focus 0 2016 30 0
Ford Focus 1 2016 15 15

(You can just create the records, you don't have to get the input interactively).

2. Print out the inventory 
3. Display the total number of unsold cars 
4. Display the number of unsold cars for each make and model 
5. Display the total number of cars sold in January and February 

Turn in your source code and a screen shot showing the results of your testing. Thank you

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!