Instructions for Assignment 1

The purpose of this assignment is to teach the basic concepts of for and while loops.

You are to edit the file AssignmentOne.java and change the for and while loops so that the program generates the following output:

Counting up from 0 to 10:
0
1
2
3
4
5
6
7
8
9
10

Counting down from 10 to 0:
10
9
8
7
6
5
4
3
2
1
0

Done.

To get full marks, you should only edit the code for the loops. The code currently looks like this:


Instructions for Submission

If you are using GILD, you can follow these steps.
  1. Make sure that you have edited AssignmentOne.java and have completed this assignment.
  2. Select the project that contains AssignmentOne.java in the Gild Resource View. Right click and select "Rename" from the context menu. Rename the project to Assignment 1.XXXXXXX where XXXXXXX is your student number.
  3. Select the project that contains AssignmentOne.java in the Gild Resource View. Right click and select "Export>Archived Project" from the context menu.
  4. Follow the instructions you are given.
  5. Email the .ZIP file that was created in step 4 to the TA.