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
What is basic of android?

Problem 1 Explain and Define the following concepts with appropriate examples a) Superclass b) Subclass c) Inheritance d) Exceptions e) Stream classes >>Defining and expl

Java Runtime Environment (JRE) Java Virtual Machine is a part of a large system i.e. Java Runtime Environment (JRE). Every operating system and CPU architecture requires dif

The last exercise of each assignment will be continuous from assignment to assignment and will have the goal of building an e-store website by the end of the course. Date & Tim

Your task for this assignment is to define multiple classes via inheritance. Your classes should implement various "snacks" including "M&Ms", "Popcorn", etc. To begin, create an a

A Padovan string P(n) for a natural number n is defined as: P(0)=''X'' P(1)=''Y'' P(2)=''Z'' for a string characters ''X'',''Y'',''Z'' only,and given value of n,write a program th

When is AlreadyBoundException thrown and by which method? Ans) AlreadyBoundException is thrown by bind(String name) method when a remote object is already registered with the re

How many kinds of errors can be found during a program development? List them. 1. Syntax errors 2. Semantic errors 3. Run-time errors

Need JAVA,SPRING,JSF(primefaces) Application Support Project Description: We want someone to be part of our team's new development, it's minute application but in future, cha

Explain the char data type in java? A char is a single character in which a letter, a digit, a punctuation mark, a tab, a space or something same. A char literal is a single on