Register Now

Login


Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Medical Store Inventory System

It is a General purpose Medical Store Inventory System and this project is developed using C++. This is a mini project and its for beginners. It handles simultaneously for both a medical store or a general store. This projects entire program is Password protected which the user sets himself and may edit later. This mini project is good  for those people who want to learn programming in C++ Programming language.


Used Language:


C++ Introduction:

The C language was developed in 1972 by Dennis Richie at Bell laboratories. C++ Programming is a upgraded version of C Programming. C++ is a middle-level programming language developed by Bjarne Stroustrup starting in 1979 at Bell Labs. C++ runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX.


Here is an example of a mini project for a medical store inventory system in C++:

#include <iostream>
#include <unordered_map>
#include <string>

using namespace std;

// Store inventory as a map from medicine name to quantity
unordered_map<string, int> inventory;

// Function to print current inventory
void printInventory() {
  cout << "Current inventory:" << endl;
  for (const auto& [medicine, quantity] : inventory) {
    cout << medicine << ": " << quantity << endl;
  }
}

// Function to process an order
void processOrder() {
  string medicine;
  int quantity;
  cout << "Enter medicine to order: ";
  cin >> medicine;
  cout << "Enter quantity: ";
  cin >> quantity;
  inventory[medicine] += quantity;
  cout << "Order processed. New inventory:" << endl;
  printInventory();
}

int main() {
  // Initialize inventory
  inventory["ibuprofen"] = 100;
  inventory["aspirin"] = 50;
  inventory["acetaminophen"] = 75;

  // Print initial inventory
  printInventory();

  // Process orders
  cout << "Enter 'O' to process an order, 'Q' to quit: ";
  char input;
  cin >> input;
  while (input != 'Q') {
    if (input == 'O') {
      processOrder();
    }
    cout << "Enter 'O' to process an order, 'Q' to quit: ";
    cin >> input;
  }

  return 0;
}

This code defines a function printInventory to print the current inventory, and a function processOrder to prompt the user for an order and update the inventory accordingly. The main function initializes the inventory with three medicines and their quantities, and then enters a loop to process orders until the user quits by entering ‘Q’.

I hope this helps! Let me know if you have any questions.

Comments ( 3 )

  1. Aishwarya Vengatesan
    June 17, 2013 at 9:51 PM

    hi,.thz z aishwarya,.i really like thz project so much,.so i need sourcecode,.plz mail me at [email protected]

  2. give me in c new poject defination

  3. i need MS ACCESS 2007 PROJECT WITH THESIS PLEASE SEND ME AS SOON AS POSSIBLE
    THANKS

Leave a reply