Skip to main content 
 Contents  Index  Dark Mode  Prev  Up Next   \(\newcommand{\N}{\mathbb N}
\newcommand{\Z}{\mathbb Z}
\newcommand{\Q}{\mathbb Q}
\newcommand{\R}{\mathbb R}
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle     \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle        \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle      \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\) 
Section   16.4   Debugging Practice 
 
Please try to fix all three of the below problems. While these will run in the code window, it may be easier to debug these when running and compiling on the server. Your choice!
Subsection   16.4.1   Fix Me: 1 
 
Activity   16.1 . 
 
What is wrong with this program? Add appropriate debug statements to the code to find out.
admin ..... open in new window 
Subsection   16.4.2   Fix Me: 2 
 
Activity   16.2 . 
 
What’s wrong here? Add appropriate debug statements to the code to find out.
admin ..... open in new window 
Subsection   16.4.3   Fix Me: 3 
 
Activity   16.3 . 
 
What is wrong with the following program? Add appropriate debug statements to the code to find out.
admin ..... open in new window