## BJP4 Self-Check 2.22: loopTable

Language/Type: Java basics for loops loop table
Author: Jason Ganzhorn (on 2016/09/08)

Assume that you have a variable called `count` that will take on the values 1, 2, 3, 4, and so on. You are going to formulate expressions in terms of `count` that will yield different sequences. The first row is filled in for you as an example. Fill in the solution boxes below, indicating an expression that will generate each sequence. Your answers should be in the form 'coefficient * count + constant' in that order, or the solution checking may not be accurate.

Problem # `count` value Sequence Expression
1, 2, 3, 4, 5, 6, ... 2, 4, 6, 8, 10, 12, ... 2 * `count`
1 1, 2, 3, 4, 5, 6, ... 4, 19, 34, 49, 64, 79, ...
2 1, 2, 3, 4, 5, 6, ... 30, 20, 10, 0, -10, -20, ...
3 1, 2, 3, 4, 5, 6, ... -7, -3, 1, 5, 9, 13, ...
4 1, 2, 3, 4, 5, 6, ... 97, 94, 91, 88, 85, 82, ...
 `4, 19, 34, 49, 64, 79, ...` `30, 20, 10, 0, -10, -20, ...` `-7, -3, 1, 5, 9, 13, ...` `97, 94, 91, 88, 85, 82, ...`

You must log in before you can solve this problem.

If you do not understand how to solve a problem or why your solution doesn't work, please contact your TA or instructor.
If something seems wrong with the site (errors, slow performance, incorrect problems/tests, etc.), please

Is there a problem? Contact a site administrator.