Skip to main content\(
\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 7.9 Assessment: Writing Methods
Subsection 7.9.1 Subgoals for Writing Methods
Define method header based on problem
Define return statement at the end
-
Define method body/logic
Determine types of logic (expression, selection, loop, etc)
Define internal variables
Write statements
Exercises 7.9.2 Exercises
1.
2.
3.
4.
You have attempted
of
activities on this page.