Due: Monday, March 12th by 11:59 PM

Note that late submissions will not be accepted for this assignment.

Your Task

Your task for this assignment is to complete the following CloudCoder exercises. We strongly recommend you do them in order. The later exercises are (in general) more challenging than the earlier ones.

Important: Unlike the other assignments, this assignment is entirely individual. You may not collaborate with or get help from other students. You may ask an instructor or tutor for help.

The exercises:

  1. Echo input
  2. Count up
  3. plus four
  4. skip counting
  5. triangle counting
  6. Count down
  7. mirror pairs
  8. Print divisors
  9. powers of 2
  10. count evens
  11. First digit
  12. Largest digit
  13. is undulating?
  14. Perfect Number
  15. is kth power?

Hints

Don’t print a prompt when reading input values. CloudCoder does not require a prompt, and the text of the prompt is likely to be misinterpreted as the program’s intended output, causing tests to fail.

Since all of the exercises (other than the first) involve loops, you will want to

  1. Think about a general strategy for solving the problem, and write down an outline of your strategy
  2. Consider whether a loop recipe is appropriate
  3. Plan the loop so that you know precisely what needs to happen on each iteration of the loop