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.
- 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.
- 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).
- Represents an inventory item with attributes:
- File Handling:
- Data is stored persistently in external files (
buyingdata.txt,sellingdata.txt).
- Data is stored persistently in external files (
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.
- Clone the repository:
git clone <repository_url>
- Navigate to the project directory:
cd inventory-management - Compile the program:
gcc inventory_management.c -o inventory_management
- Run the program:
./inventory_management
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