Lab 4: Debugging and Exception Handling | CMSC 240 Software Systems Development - Spring 2024

Lab 4: Debugging and Exception Handling

Instructions

Objective

Familiarize yourself with the essential features of the VSCode Debugger while working with a C++ programs. Learn and gain experience with errors and employ try/catch for exception handling.

Part 1 - Debugging

Part 2 - More Debugging

Part 3 - Exception Handling

Your task is to enhance the factorial.cpp program in the Part3 directory to handle potential errors gracefully. Here are the steps:

if (result > numeric_limits<unsigned long long>::max() / i) 
{
    throw overflow_error("Result will overflow.");
}

After you complete the lab, answer the questions in the README.md file. Enter your answers directly in the README.md file.