Codelab I Exercises

The best way to learn to code is to… write lots of code. With that in mind, here are some ideas for exercises or projects you can work on.

Exercises by topic

  1. Getting started

    See Chapter 1 of the Codelab I repository.

  2. Logic and Conditional Statements

    See Chapter 2 of the Codelab I repository.

  3. Iteration (lops)

    See Chapter 3 of the Codelab I repository.

  4. Arrays

    See Chapter 4 of the Codelab I repository.

At this point, you might like to move on to some bigger projects. Alternatively, contiue with the topics below.

  1. Functions

    See Chapter 5 of the Codelab I repository.

  2. Struct

    See Chapter 6 of the Codelab I repository.

    Projects

  3. See the Further Exercises section of the Codelab I repository.
  4. Ciphers - implement and attempt to break some cryptographic ciphers.
  5. Dungeon Crawler game - build a terminal-based game.
  6. Poker Hands
  7. Chatbot
  8. Graph algorithms
  9. Solve some Christmas-themed puzzles from Advent of code (previous years’ exercises are also available: 2023, 2022).

    The difficulty may vary, and some of the problems might be unreasonably hard in C++.