Skip to main content

Section 12.11 Unit 1b Subgoal Labeled Puzzles for Toggle Code

These are copies of the Mixed Up Code Practice 1b puzzles with subgoal labels added. The Unit 1b Toggle Code Practice page uses them as the Get Help puzzles for its write code problems. Problems whose solution has fewer than two subgoals keep the original, unlabeled puzzle.

Activity 12.11.1.

The main method in the following class should print a random number from 1 to 50. But, the blocks have been mixed up and may include an extra block that isn’t needed in the solution. Drag the needed blocks from the left and put them in the correct order on the right. Click the Check button to check your solution.

Activity 12.11.2.

The main method in the following class should print the first 2 characters of the message followed by the last 2 characters of the message. But, the blocks have been mixed up and include an extra block that isn’t needed in the solution. Drag the needed blocks from the left and put them in the correct order on the right. Click the Check button to check your solution.

Activity 12.11.3.

The main method in the following class should print the initials in lowercase letters. But, the blocks have been mixed up and include an extra block that isn’t needed in the solution. Drag the needed blocks from the left and put them in the correct order on the right. Click the Check button to check your solution.

Activity 12.11.4.

The main method in the following class should print the message in all uppercase letters. But, the blocks have been mixed up and include an extra block that isn’t needed in the solution. Drag the needed blocks from the left and put them in the correct order on the right. Click the Check button to check your solution.

Activity 12.11.5.

The main method in the following class should print the first 3 letters of message in uppercase letters. But, the blocks have been mixed up and include an extra block that isn’t needed in the solution. Drag the needed blocks from the left and put them in the correct order on the right. Click the Check button to check your solution.

Activity 12.11.6.

The main method in the following class should print the part of the message starting with the word β€œnice”. But, the blocks have been mixed up and include an extra block that isn’t needed in the solution. Drag the needed blocks from the left and put them in the correct order on the right. Click the Check button to check your solution.
You have attempted of activities on this page.