M182-lect1 pdf
M182-lect1 pdf
M182-lect1 pdf
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
How to program: example Write a program that computes the squarefootage of a house, given the dimensions ofeach room. Step 3 : Test & Debug your program There are two types of mistakes:syntax mistakes (easy to fix; compiler helps)design mistakes, a.k.a. bugs (often hard to find; debuggerhelps). Test your program to make sure it works correctly andcan handle situations such as erroneous input (what ifsomeone types in negative dimensions?)18