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
write a program to find the area under the curvey y=f(x) between x=a and x=b.integrate y=f(x) between the limits of a and b. the area under a curve between two points can be found

For this assignment you'll create some classes for modeling tickets for a city subway system. The type of system we are modeling has these main features: Stations are grouped in

What is JavaServer Faces navigation model? Ans) A mechanism for describing the sequence in which pages in a JavaServer Faces application are shown.

Difference between HashMap and Hash table HashMap: It allow us to have null values and also one null key It is Unsynchronized. Iterator in HashMap is Fail-Safe.

The basic system has to offer the following options: 1. Exit the program 2. Enter new customer The program prompts for the details of a new customer, assigns a unique cust

Task I have an Android mobile app project that I''m trying to get profiles to transfer by connecting to a server at 23.23.175.213 port 1337. I have to send a json string to the se

Write a Java Applet which will draw a face on applet as follows:   b)    Modify the program now by adding two Buttons (Java version of ActiveX Control) named Smily Fac

Spring comprises of seven modules. They are.. a) The core container b) Spring context c) Spring AOP d) Spring DAO e) Spring ORM f)  Spring Web module g)  Sprin

Each time an object is started in Java it goes into the area of memory named as heap. The primitive variables like double and int are allocated in the stack, if they are local inst

A process is an execution of a code but a thread is a single execution sequence within the process. A process may contain multiple threads. A thread is sometimes named a lightweigh