Skip to content

This is a simple micro-project implementing an Inventory Management System to manage buying, selling, and tracking profit/loss for items (like vegetables). The project is developed in C language using core concepts of data structures like arrays and file handling for persistent storage.

Notifications You must be signed in to change notification settings

AlbinMath/Inventory-Management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Inventory Management System (Micro-Project)

Overview

This is a simple Inventory Management System implemented in C. It allows users to manage inventory transactions, search for specific items, and calculate profit or loss.

Features

  • Transaction Management:
    • Record buying transactions (item name, quantity, rate).
    • Record selling transactions (item name, quantity, rate).
  • Search and Analysis:
    • Search for items in transaction records.
    • Calculate and display profit or loss based on transactions.
  • User-Friendly Interface:
    • Menu-driven program for easy navigation.

Data Structures Used

  1. Struct (struct veg):
    • Represents an inventory item with attributes:
      • name: Name of the item (string).
      • quantity: Quantity of the item (float).
      • rate: Rate per unit (float).
  2. File Handling:
    • Data is stored persistently in external files (buyingdata.txt, sellingdata.txt).

Functions

  • menu():
    • Displays the main menu and navigates to other options.
  • transaction():
    • Handles transaction options (buying or selling).
  • buying():
    • Records buying data to a file.
  • selling():
    • Records selling data to a file.
  • showDetails():
    • Displays the submenu for search and profit/loss options.
  • searchdata():
    • Searches for specific items in transaction records.
  • profit_loss_data():
    • Calculates and displays profit or loss from the transactions.

Steps to Run the Program

  1. Clone the repository:
    git clone <repository_url>
  2. Navigate to the project directory:
    cd inventory-management
  3. Compile the program:
    gcc inventory_management.c -o inventory_management
  4. Run the program:
    ./inventory_management

Micro-Project Concept

This project demonstrates fundamental concepts:

  • File Handling: Storing and retrieving data.
  • Struct Usage: Grouping related attributes.
  • Menu-Driven Design: Enhancing user experience.
  • Profit/Loss Analysis: A simple business logic implementation.

Note: Customize and expand this project to add advanced inventory features!

README

About

This is a simple micro-project implementing an Inventory Management System to manage buying, selling, and tracking profit/loss for items (like vegetables). The project is developed in C language using core concepts of data structures like arrays and file handling for persistent storage.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages