Skip to content

Exercise 2 — Warehouse inventory

Practica · UNEXPO · 5%

Exercise 2 — Warehouse inventory

Manage 50 product types using a linear array of structures.

A warehouse has 50 product types. Each product has: unique code, description, stock quantity, unit price.

The program must:

  1. Add new products (search by code, enter purchase quantity and price).
  2. Update stock on sales or new deliveries.
  3. Search by code and show full product info.
  4. List all products sorted by stock (highest to lowest).
  5. Calculate and show total inventory value (quantity × unit price).

Use a linear array of struct elements.

  • Fixed array of up to 50 products.
  • No vector.
  • One .cpp per pair to mcolombo@unexpo.edu.ve.
// Pending: add group solution when authorized.

Back to assignments