C++ Programming Practice (Fall 2023) - 3.02 - Exceptions I

Опубликовано: 29 Июль 2026
на канале: BillBird
150
2

Note: There's a bug in the code for the third task (to compute square roots). I made the assumption that the square root of x is always less than or equal to x, which is not true if x is less than 1. So the initial upper bound should be max(1, x) instead. If only I had done more testing...

The best way to learn programming is by programming. For new programmers, even finding enough practice problems can be a challenge. But now, thanks to generative AI, it's easy for anyone to request customized practice exercises on the fly.

Contents:
0:00 Introduction
7:24 Exercise 1 (Divide Numbers)
8:48 Exercise 2 (Factorial)
12:46 Exercise 3 (Square Roots) - See note above

This video series was originally made for the Fall 2023 offering of CSC 116, a second programming course teaching the C++ language (to students who already know C). The point of these videos is to demonstrate how helpful (or sometimes not helpful) generative AI tools can be when learning programming, and to provide some extra practice for programming students.

These videos were recorded in one sitting with no editing or script, so they also document the raw process of writing code, including all of the design decisions, fumbling, compromises, dead ends, compile errors, bugs and frustrating debugging sessions.

If you find any of this helpful or interesting, please let me know (I really appreciate any other feedback as well).