Skip to main content

Order Pipeline

Challenge on lesson: Checkpoint: Enums & Models

Given the Order model in scope, implement Order next_status(Order o) advancing PENDING -> SHIPPED -> DELIVERED (DELIVERED stays), int count_status(const Order *os, int n, Order s) counting matches, and int shipped_revenue(const Order *os, int n) summing total_cents of SHIPPED orders.

Difficulty: beginner

Back to lesson: Checkpoint: Enums & Models