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 12.10 Unit 1b Write Code for Toggle Code
This is the write code problems associated with the mixed up code problems.
Activity 12.10.1.
Write code that prints a random number from 1 to 50.
Activity 12.10.2.
Write code that prints the first 2 characters of the message followed by the last 2 characters of the message using the appropriate String methods.
Activity 12.10.3.
Write code that prints the first letters in first, middle, and last in lowercase letters using the appropriate String methods.
Activity 12.10.4.
Write code that prints the message in all uppercase letters using the appropriate String methods.
Activity 12.10.5.
Write code that prints the first 3 letters of the message in uppercase letters using the appropriate String methods.
Activity 12.10.6.
Write code that print the part of the message starting with the word βniceβ using the appropriate String methods.
You have attempted
of
activities on this page.