Summer 2015 - Lesson 7 Assignments

Post date: Aug 9, 2015 7:41:37 PM

This lesson introduced us to the while loops, which are similar to for loops but with a slightly different structure. We were able to use them to have the computer repeat a process while we had input to give it.

We also explored the comparison compounders, which allow us to combine comparison in one line. These are the AND and OR operators, which in Java are written as && and ||.

For the assignments 1 and 2, the code will seem similar to what was covered in class. Try to complete these assignments without looking at your previous work.

Assignment 3 is a little trickier, and give you less to go on. You will be writing a program which creates a Collatz Sequence, which takes any number given and performs an algorithm it reaches 1. You can find more information here.