Before Class
- Read the General Introduction
from the section entitled What is Debugging?
through the section entitled Experimental Debugging.
All Together Activity
- Write a program that calculates and prints the two roots of a quadratic
equation, ax^2 + bx + c = 0.
- Demonstrate how to introduce a syntax error into the above program.
- Demonstrate how to introduce a run-time error into the above program.
- Demonstrate how to introduce a semantic error into the above program.
Active Learning
- Write a Python program that uses the
compound interest formula to
tell the user how much money will be in a bank account after 10
years when the initial balance is $1000, the interest rate is 5%
and the interest is compounded quarterly.
All Together Activity
- Solve the compound interest problem. The correct answer is $1643.62.