Ch 13 · Mini-Projects & Practice · C++
Topic 13 of 13 in C++ — Complete Tutorial (Beginner) — 5 lessons.
Simple Calculator
This project builds a calculate function that takes two numbers and an operator, using a switch and throwing on division by zero — combining functions, switch, and exceptions.
Grade Reporter
This project uses a Student class and a vector to compute averages and grades, then prints a report — combining classes, containers, loops, and methods.
Number Guessing Game
This project processes a vector of guesses in a loop using a function, conditionals, and break — the core logic of a guessing game.
Practice Exercises
Now You Try!
Try to practice by writing your own code. Reading code teaches you a little — *writing* it teaches you a lot! Open the playground beside this card, pick one of these mini-challenges, and build it from scratch: