Monday, November 4, 2019

Using Python to Create Simple Auto Inventory Program

Spring 2019 Intro to Python

The project is to create a program using Python.  The program is an automobile inventory with automobile class, utilized by a dealership to keep track of its inventory.  This should allow the user to output all vehicles to a text file.  The following attributes for the auto class includes:

  • private string make
  • private string model
  • private string color
  • private integer year
  • private integer mileage


The program should have appropriate methods including:

  • constructor
  • add new vehicle
  • remove a vehicle
  • update vehicle attributes


Figure 1. Base code of constructor

Figure 2. Show the program "add vehicle" function

Figure 3.  Show the program "delete vehicle" function

Figure 4.  Show the program "show inventory" function

No comments:

Post a Comment