Inventory Management

Medium Mini Projects & Algorithmic Challenges
Solve in Playground →

Problem Statement

Write a C++ program implementing a store inventory management system tracking item stock and valuation.

Input Format

Number of commands N, followed by commands ('ADD', 'RESTOCK', 'SELL', 'VALUE').

Output Format

Print transaction status or total stock value.

Constraints

1 <= N <= 50

Sample Input

4
ADD 1001 50 12.5
RESTOCK 1001 25
SELL 1001 10
VALUE 1001

Sample Output

Added
Restocked
Sold
Total Value: 812.50

Explanation

Tracks stock quantities and calculates item valuations dynamically.

Starter Code

#include <iostream>
#include <vector>
#include <iomanip>

class Item {
public:
    int code;
    int qty;
    float price;
    Item(int c, int q, float p) : code(c), qty(q), price(p) {}
};

int main() {
    int n;
    if (std::cin >> n) {
        // Write your inventory management logic here
    }
    return 0;
}

Limits

  • Time Limit: 1s
  • Memory Limit: 256MB

Embedded C Programming

Updated: March 15, 2026
Intermediate

Embedded systems rely on efficient low-level programming to interact directly with hardware. In this course, you will learn how to write practical Embedded C programs used in real microcontroller-based systems. Rather than focusing only on theory, this course follows a practice-driven approach. Each lesson includes hands-on coding exercises that simulate real firmware development tasks used