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:

All topics in C++ Beginner

  1. Introduction to Programming & C++
  2. Your First C++ Program
  3. Variables & Data Types
  4. Input & Output
  5. Operators & Expressions
  6. Conditional Statements
  7. Loops & Iterations
  8. Functions
  9. Vectors & Strings
  10. Classes & Objects
  11. Working with Classes
  12. Exception Handling
  13. Mini-Projects & Practice