Exercise 2 — Warehouse inventory
Practica · UNEXPO · 5%
Exercise 2 — Warehouse inventory
Manage 50 product types using a linear array of structures.
Statement
Section titled “Statement”A warehouse has 50 product types. Each product has: unique code, description, stock quantity, unit price.
The program must:
- Add new products (search by code, enter purchase quantity and price).
- Update stock on sales or new deliveries.
- Search by code and show full product info.
- List all products sorted by stock (highest to lowest).
- Calculate and show total inventory value (quantity × unit price).
Use a linear array of struct elements.
Requirements
Section titled “Requirements”- Fixed array of up to 50 products.
- No
vector. - One
.cppper pair tomcolombo@unexpo.edu.ve.
Solution
Section titled “Solution”// Pending: add group solution when authorized.