GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Radu028/stock-manager: C++ inventory and order-processing system modeling products, stock locations, and fulfillment from file-based input.

BranchesTags
Open more actions menu

Latest commit

 

History

48 Commits
48 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
include
include
 
 
src
src
 
 
.clang-format
.clang-format
 
 
README.md
README.md
 
 
data.txt
data.txt
 
 

Repository files navigation

Inventory Management System

This is a simple inventory management system that tracks products, stocks, and orders. The system allows you to:

  • Define products with names and prices
  • Track product quantities in different stocks (Deposit, Warehouse, Shop)
  • Create and process orders for products
  • Monitor stock levels after order processing

Project Structure

  • Product.h/cpp: Defines the Product class with name, price, and unique ID
  • Stock.h/cpp: Manages collections of products and their quantities
  • Order.h/cpp: Handles customer orders and order processing
  • main.cpp: Main program that reads data from file and processes it
  • data.txt: Input file with products, stocks, and orders

How to Use

  1. Define your products, stocks, and orders in the data.txt file
  2. Compile and run the program

File Format

The data.txt file follows this format:

# Products
# Format: PRODUCT_NAME PRICE
PRODUCT Apple 2.5
PRODUCT Banana 4.0

# Stocks
# Format: STOCK STOCK_NAME PRODUCT_NAME QUANTITY
STOCK Deposit Apple 200
STOCK Warehouse Apple 100

# Orders
# Format: ORDER ORDER_DATE STORE_NAME PRODUCT_NAME QUANTITY
ORDER 2024-03-20 Store1 Apple 10

Compiling

To compile the program:

g++ -std=c++11 main.cpp -o inventory_system

Running

To run the program:

./inventory_system

Features

  • Object-oriented design with proper encapsulation
  • File-based data input
  • Automatic unique ID assignment for products, stocks, and orders
  • Stock quantity validation during order processing
  • Total price calculation for orders
  • Console-based reporting of stock levels and order processing

Example Output

The program will display:

  1. List of all products
  2. Current stock levels
  3. All orders
  4. Updated stock levels after processing orders

About

C++ inventory and order-processing system modeling products, stock locations, and fulfillment from file-based input.

Topics

cppinventory-managementoop

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.