Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions

Question

What are some things you could do to become a better listener?

Answered: 1 week ago