Architecture Diagram
LOOP EVALUATION MODELS:
┌─────────────────┬───────────────────┬──────────────────────────────────────┐
│ Loop Type │ Condition Check │ Best Use Case │
├─────────────────┼───────────────────┼──────────────────────────────────────┤
│ for (init;c;inc)│ Pre-condition │ Fixed number of iterations / index │
│ while (cond) │ Pre-condition │ Event-driven / indeterminate cycles │
│ do { } while(c);│ Post-condition │ Prompting / executing at least once │
│ for (auto& x: c)│ Range Iterator │ Iterating over STL collections/arrays│
└─────────────────┴───────────────────┴──────────────────────────────────────┘