Assignments

  1. If you only hand in code
    • The hand in must be ONE, repeat ONE, jar-file.
  2. If you hand in code and/or text files
    • The code must be ONE, repeat ONE, jar-file.
    • The text must be ONE, repeat ONE, pdf-file
  3. Code files must be have their native filename extension, eg. x.java, y.html, etc.
  4. Put your academy login-id into the filenames, and an "_7" to number the file individually, eg: EAANILA1_7.jar
  5. Attach the jar and/or the pdf to an email.
  6. Put the token idefix somewhere in the subject line of the email, eg: Assignments idefix
  7. Mail it to nml@acm.org

As you have just seen, I ask for hand in of code in the form and shape of .jar-files. Jar files are .zip-look-alikes known to the JDK and the JRE, Java Runtime Environment. The may be produced with a File->Export in Eclipse:


followed by:


When you are succesfull, repeat the steps 2-5 in the list above, while substituting HelloWorld1 for HelloWorld0, and key in the code from the Figure 1.6, “Eclipse Workbench With HelloWorld1” editor.

Take a look at the following code


In order to practice coding modify the program from the section called “Assignment 1.4” so that it calculates using a while loop instead. Remove the console output.

In order to practice coding modify the program from the section called “Assignment 1.4” so that it calculates using a do … while loop instead. Remove the GUI output.