# Mixed Up Code Practice¶

Try to solve each of the following. Click the Check button to check each solution. You will be told if your solution is too short, has a block in the wrong order, or you are using the wrong block. Some of the problems have an extra block or two that aren’t needed in the correct solution.

The following program segment should print if your guess is too low, correct, or too high But, the blocks have been mixed up. Drag the blocks from the left and put them in the correct order on the right.

The following program segment should print either “You can go out” if you don’t have any homework and have cleaned and otherwise should print “You can not go out”. But the blocks have been mixed up and includes <b>one extra block</b> that is not needed in a correct solution. Drag the needed blocks from the left and put them in the correct order on the right.

The main method in the following class should print if x is in the range of 1 to 10 (inclusive) or not. But, the blocks have been mixed up and includes <b>an extra block</b> that isn’t needed in the solution. Drag the needed blocks from the left and put them in the correct order on the right.

The main method in the following class should print out if a string has the word “ringing” in it or not. But, the blocks have been mixed up and includes <b>an extra block</b> that isn’t needed in the solution. Drag the needed blocks from the left and put them in the correct order on the right.

The main method in the following class should print if your favorite food is junk food (pizza or wings) or not. But, the blocks have been mixed up and includes <b>an extra block</b> that is not needed in a correct solution. Drag the needed blocks from the left and put them in the correct order on the right.

The main method in the following class should print your fine if you are speeding. If you are going over 65 but less than 75 the fine is 50. If you are going at least 75 and less than 85 the fine is 100. Over that the fine is 200. But, the blocks have been mixed up and includes <b>two extra blocks</b> that aren’t needed in the solution. Drag the needed blocks from the left and put them in the correct order on the right.

The main method in the following class should print the alarm time. If it is a weekday you should get up at 7:00am and if not get up at 10:00am. But, the blocks have been mixed up. Drag the needed blocks from the left and put them in the correct order on the right.

The main method in the following class should print if you can text now. You can text if you are not driving and not eating. But, the blocks have been mixed up and includes <b>an extra block</b> that isn’t needed in the solution. Drag the needed blocks from the left and put them in the correct order on the right.

The main method in the following class should print if your name starts with a vowel or not. But, the blocks have been mixed up. Drag the blocks from the left and put them in the correct order on the right.

The main method in the following class should print your grade for score. But, the blocks have been mixed up. Drag the needed blocks from the left and put them in the correct order on the right.

The following program segment should print out all the values from 20 to 30 (20, 21, 22, … 30). But, the blocks have been mixed up. Drag the blocks from the left and put them in the correct order on the right.

The following program segment should print a countdown from 15 to 0 (15, 14, 13, … 0). But the blocks have been mixed up and include <b>one extra block</b> that is not needed in a correct solution. Drag the needed blocks from the left and put them in the correct order on the right.

The main method in the following class should print up from 0 to 50 by 5 (0, 5, 10, 15 … 50). But, the blocks have been mixed up and include <b>an extra block</b> that isn’t needed in the solution. Drag the needed blocks from the left and put them in the correct order on the right.

The main method in the following class should print out the values from 0 to 100 by 20’s (0, 20, 40, .. 100). But, the blocks have been mixed up and include <b>an extra block</b> that isn’t needed in the solution. Drag the needed blocks from the left and put them in the correct order on the right.

The main method in the following class should print out the values from 100 to 0 by 10’s (100, 90, 80, … 0). But, the blocks have been mixed up and include <b>an extra block</b> that is not needed in a correct solution. Drag the needed blocks from the left and put them in the correct order on the right.

The main method in the following class should print 3 rows with 6 <code>*</code> in each row. But, the blocks have been mixed up and include <b>two extra blocks</b> that aren’t needed in the solution. Drag the needed blocks from the left and put them in the correct order on the right.

The main method in the following class should print 1 (followed by a newline), then 22 (followed by a newline), and then 333 (followed by a newline). But, the blocks have been mixed up and include <b>an extra block</b> that isn’t needed in the solution. Drag the needed blocks from the left and put them in the correct order on the right.

The main method in the following class should print 11111, 22222, 33333, 44444, and 55555. But, the blocks have been mixed up and contain <b>two extra blocks</b> that are not needed in a correct solution. Drag the blocks from the left and put them in the correct order on the right.

The main method in the following class should print 11111, 2222, 333, 44, 5. But, the blocks have been mixed up and include <b>one extra block</b> that isn’t needed in a correct solution. Drag the needed blocks from the left and put them in the correct order on the right.

You have attempted of activities on this page