Create a general design for a class-implement and test, JAVA Programming

Objectives

1.      To design and implement a simple class.

2.      To write a test program to create instances of your class and demonstrate its behaviour.

3.      To collect output from the test program runs, and comment on it.

4.      To conform to Java coding conventions, including documentation style comments.

Your Task

You must create a general design for a class. Design, implement, test and document this class. You will need to make some assumptions and design decisions about the class. Ensure the class documentation makes the purpose and constraints of you class clear. You should strive to write your class so that it is potentially useful in other applications.

Replace with the name of your class:

.java        ---source code of your class

Test.java    ---test program for your class

output.txt              ---output from the test(s) (plain text please)

report.txt              ---short reflective report

Add your own observations at the beginning or end of the output files. For example, were the test outcomes as expected.

The report should be about 200-400 words with your reflections about your class, test program and results. You should comment on any assumptions that you made, and where improvements could be made to the design or implementation.

Question                        description

Clock

Models a 24 hour clock, which stores a time as hours and minutes. The time can be advanced. The client can retrieve the hours and minutes.

Design, implement, and test the above class. For this class, you should use java doc comments to specify its purpose, properties and scope making appropriate assumptions where necessary.

 

Posted Date: 2/15/2013 2:51:53 AM | Location : United States







Related Discussions:- Create a general design for a class-implement and test, Assignment Help, Ask Question on Create a general design for a class-implement and test, Get Answer, Expert's Help, Create a general design for a class-implement and test Discussions

Write discussion on Create a general design for a class-implement and test
Your posts are moderated
Related Questions
Describe the final keyword ? The final keyword is used in various different contexts as a modifier meaning in which what it modifies cannot be changed in a few sense. final c

Describe the relational operators in java? Java has six relational operators which compare two numbers and return a boolean value. The relational operators are , > , , >=

What are the different scopes for Java variables? The scope of a Java variable is explained by the context in which the variable is declared. Therefore a java variable can have

RMI transport layer usually opens direct sockets to the server. Several Intranets have firewalls that do not accept this. To get through the firewall an RMI call may be embedded wi

Classes are attached into the JVM as they are referenced by name in a class that is already running in the JVM. So, how is the staring class loaded? The very first class is espec

Need the following code in double var instead of integer. import javax.swing.*; public class arrayVar { public static void main (String[] args) //This is our main method prompt

In this lab, you will practice using ArrayLists in two ways.  The first is in the problem domain class Question.java (see the UML diagram shown below) which contains data for trivi

Explain the Member Access Separator ? class Car { String licensePlate; // e.g. "New York 543 A23" double speed; // in kilometers per hour double maxSpeed; // in

A MapMessage carries name-value pair as its payload. Therefore its payload is same to the java.util.Properties object of Java. The values can be Java primitives or their wrappers

A NEW Dynamic Website I have the subsequent requirement which needs to be designed in 30 days (Max). 1) Construct a website which is a dynamic, means allow me to change conte