Skip to content

sshahrier/Inventory-

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Inventory Project

inv

Project Description

Create a product class which has a price, id, and quantity on hand. Then create an inventory class which keeps track of various products and can sum up the inventory value.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

There are no additional installation of packages or libraries required for this project. However, Python 3 must be installed in order to run this program.

Instructions

The folder contains three program files which are inventory.py, product.py, and main.py . In order for us to begin running our program we use run the following command python3 main.py. By running this file we are importing from our other two remaining classes and this helps to establish a seemless connection between each of them.

For example in order to import our classes we use:

from product import Product

List of Methods Used

We use the input method in our program so that you can use this to read data from the user in this case the input we used to [C] Create, [R] Read, [U] Update, [D] Delete, & [Q] Quit:

cmd = input('\nHello, ' + username + '\nHow may I help you?\n[C]reate new product\n[R]ead your product list / See Sum\n[U]pdate a product\n[D]elete a product\n[Q]uit\n>>>')

References

  • StackOverflow - Stack Overflow is a question and answer site for professional and enthusiast programmers. It is primarily used as a forum to help address questions and provide a collaborated community to answer programming/code related issues.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%