Search⌘ K
AI Features

Exercise: E-Commerce Order Processor

Explore how to apply Dart flow control statements to process e-commerce order statuses. Learn to use loops, conditional checks, the continue statement, and switch cases to route orders correctly while skipping cancelled ones.

Problem statement

An online retail platform receives batches of order statuses from its warehouse database. We need a script that processes these statuses, routes active orders to their respective handlers, and entirely ignores orders that are already cancelled.

Task requirements

  • Iterate through a ...