Docsity

Java Programming Assignments and Guidelines for CIS 602 Course, Slides of Java Programming

Partial preview of the text

Download Java Programming Assignments and Guidelines for CIS 602 Course and more Slides Java Programming in PDF only on Docsity!

Java and the Web

Homework Assignments

Overview

  • Most corporations require work to be presented in a standardized format. This document explains my requirements for formatting, as well as listing the assignments
  • There will be reading assignments each week, and most weeks will also have a programming assignment.

Presenting Homework

  • The course is Java and the Web. Each student must create a web site to display all work done for the class.
  • Your web site should have a main menu for CIS 602 with a separate link for each assignment. Each assignment should display your planning document(s), your timesheet, your code, and your executed program, all on a single page.

Web Site Organization

My Web Site

CIS 602Chapter 3 Chapter 5aChapter 4 …

Homework n Applet

Planning Document

Time Sheet

Code

Running Program

Your main Menu page

CIS 602 page with a link for each HW

Each HW should be on one page. List by chapter web.njit.edu/~gblank/ number. web.njit.edu/~gblank/cis web.njit.edu/~gblank/cis602/chapter

Format

  • Your applet, planning document, timesheet and code should be displayed on a single HTML page. There are utilities available on the Web that will convert Java code to HTML and pretty print it. See http://www.java2html.de/applet.html Java files are not acceptable, as my systems default to executing them, not to viewing the code. Since most of the code is provided for you, you must clearly identify code you have added or modified, preferably in a different color, but obvious comments are permissible.
  • Except for chapter 4, your code must execute in an Applet.

Linking to Moodle

  • You must post a link to your homework in Moodle. The Moodle edit window shows a chain symbol that lets you create a hyperlink to your Web page. Since I do all my grading from Moodle, this is how homework is submitted.

Work Load

  • The standard for graduate classes is two to three hours of work outside class for each hour in class. You should expect to put in at least eight hours of work on the average homework assignment, and about thirty hours on the project.

Cheating on Homework

  • A large number of students have been copying assignments from other people, sometimes taking them from a Web site without asking. I have been getting complaints from the honest students. For that reason, I want you to personalize your code, especially in the comments. As soon as you learn how, start putting your code in a .jar file.

Installing the JDK and Eclipse

  • Get Eclipse from http://www.eclipse.org. To install it, just unzip the file with pathnames to a directory of your choice.
  • Eclipse has an option to get it with Java. Otherwise, you can get the latest JDK from http://java.sun.com. Follow the instructions there to install it.

Chapter 3

Hello World

  • Read Chapter 3 in the text and the lectures assigned in Moodle.
  • Programming assignment. Prepare a Hello World program similar to the “Hello from Venus” one in the text, but make it your own by customizing the size, text and image. This homework will not be graded.

Chapters 4-

  • Assignments for these chapters are taken from the exercises in the text book.
  • Programs should be posted on your web site so that I can run them as applets. However I accept screen shots of applications.
  • Any documents or test cases must be viewable on your web site.
  • For some work, you may have to post screen shots to prove you did the work, especially if you cannot convert an application to an applet.
  • List by chapter number, not week number or homework number. Otherwise it is very hard to find the correct homework.

Chapter 4

Factorial, Files and Packages

  • Read Chapter 4 in the text and the lectures assigned in Moodle.
  • Do exercises 4.1, 4.2, 4.3, 4.7a and 4.8. As these are applications, your Web site must show screen shots to prove you got them working. For extra credit, get one or more of them working as an applet. ( You must use applets or JNLP to get an A .)
  • Submit your homework by posting a hot link to it in Moodle for that assignment.

Chapter 5b

Javadoc and URL

  • Read Chapter 2 in the text and the lectures assigned in Moodle.
  • Do exercises 5.2 and 5.3.
  • Prepare a use case in the format shown in figure 2.19 in the text for exercise 5.3. I do not want Use Case Diagrams.
  • Classroom students bring five copies of the code for 5.3 and one copy of your use case to class for inspection.

Chapter 6

Implement a Stack, JUnit

  • Read Chapter 6 in the text and the lectures assigned in Moodle, including the lecture on JUnit.
  • Do exercise 6.
  • Prepare JUnit Test Cases for Exercise 6.5.
  • Do exercise 6.5 as an applet. Show screen shots of your JUnit tests and results. Your JUnit tests should test all stack functions.
  • Classroom students bring five copies of the code for 6.5 and one copy of your JUnit code and output to class for inspection.