Lesson 24 of 24

Mini Project: Inventory ManagementMini Project: Inventory Management

15 min 50 XP

ஒரு கடையின் inventory system: பொருட்களைச் சேர்த்தல், விற்பனை, இருப்பு அறிக்கை. class + map + exceptions எல்லாம் ஒன்றாக. உங்கள் resume-க்கான நல்ல project.

A shop's inventory system: add stock, sell items and report what's left, with a class, a map and exceptions working together. A good project for your resume.

Example: edit me and press Run

Output Loading C++ (first time takes a few seconds)
Press Run to see the result here.

Challenge

+50 XP

முதல் வரி n. Commands: ADD item qty → எதுவும் print இல்லை SELL item qty → "Sold qty item", இருப்பு போதவில்லை என்றால் "Only k item left", இல்லாத பொருள் என்றால் "No item item" REPORT → இருப்பு உள்ள (qty > 0) பொருட்கள் அகர வரிசையில் "item qty", ஒன்றும் இல்லையெனில் "Empty"

The first line is n. Commands: ADD item qty → prints nothing SELL item qty → "Sold qty item", or "Only k item left", or "No item item" for an unknown item REPORT → each item with qty > 0 in alphabetical order as "item qty", or "Empty" if there are none

Output Loading C++ (first time takes a few seconds)
Press Run to see the result here.