A C-based console application for efficiently managing a medical store's inventory and user operations.
- User Roles: Admins and regular users with unique permissions.
- Inventory Management: Add, update, display, search, and delete medicine records.
- Cart & Checkout: Add items to cart and manage purchases.
- Data Persistence: Save/load medicine data to/from a file.
-
Medicine Management:
- Add new medicines to the inventory.
- Update details of existing medicines.
- Search for specific medicines by name.
- Delete medicines from the stock.
-
User Management:
- Register and log in with user roles.
- Admins have access to full inventory controls.
- Regular users can browse and add medicines to the cart.
-
Data Handling:
- Save and load the medicine inventory to/from a text file (
medicine_data.txt
) for persistence.
- Save and load the medicine inventory to/from a text file (
- Clone the repository:
git clone https://github.com/mahadishaikat/Medical-Store-Management-System cd MedicalStoreManagementSystem
- Compile the code:
gcc medical_store.c -o medical_store
- Run the application:
./medical_store
-
Admin can:
- Add, update, delete, search medicines.
- Save and load inventory data.
-
Regular Users can:
- Search and view medicines.
- Add medicines to the cart and checkout.
- Inventory Limit: Maximum of 100 medicines.
- User Limit: Up to 10 users can register.
- File Operations: Data is stored in
medicine_data.txt
file for loading and saving inventory data.
- Add new medicine:
AddMedicine()
- Display all medicines:
DisplayMedicines()
- Update medicine info:
UpdateMedicine()
- Save/load inventory:
SaveData()
/LoadData()
- Login/register:
LoginUser()
/RegisterUser()
- Add to cart:
AddToCart()
- Checkout:
CheckoutCart()
Read Full Documentation From Here.
This project is for educational purposes and is licensed under the MIT License.