C++ Programming Practice (Fall 2023) - 3.02 - Exceptions I @billbird2597
C++ Programming Practice (Fall 2023) - 3.02 - Exceptions I  @billbird2597
Uploaded September 2023 | Updated November 2026, 3 hours ago
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).
C++ Programming Practice (Fall 2023) - 3.02 - Exceptions IC++ Programming (Spring 2022) - Lecture 8.08 - Abstract ClassesAlgorithm Science (Summer 2025) - 25 - Depth First SearchAlgorithm Science (Summer 2025) - 28 - Topological SortingAlgorithm Science (Summer 2025) - 14 - Decision TreesAlgorithm Science (Summer 2025) - 29 - ConnectivityData Compression (Summer 2023) - Lecture 18 - SubsamplingAlgorithm Science (Summer 2025) - 38 - Network Flows IIC++ Programming (Spring 2022) - Lecture 12.10 - bothC Programming Practice (Fall 2023) - 11.04 - Debugging V (Structure Types)C Programming Practice (Fall 2023) - 8.02 - Strings IIC++ Programming (Spring 2022) - Lecture 6.06 - An Alternative Rectangle
BillBird |

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

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER