Skip to main content
Logo image

Section 12.10 Unit 1b Write Code for Toggle Code

90 minutes
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.