Log in Page Discussion History Go to the site toolbox

CIS3020:Project 3:AnD

From BluWiki

Analysis and Design:

getX
Objective: returns �x� coordinate of the point.
Date Set:
Expected Results: 

getY
Objective: returns �y� coordinate of the point.
Date Set: 
Expected Results: 
Expected Results: 

setLocation(int x, int y)
Objective: moves the point to a specified location.
Date Set: 	
Expected Results: 

equals(TwoDimensionalPoint p)
Objective: this method compares the current point with point �p� and returns a boolean value indicating the result of the comparison (�true� if they are the same point or �false� otherwise).
Date Set: 
Expected Results: 

perform(String operation, TwoDimensionalPoint  rn)
Objective: calls appropriate operation based on the value of operation parameter. Operation can have a value of gradient, distance, or angle. Any other value for operation will cause the program to print an error message to the standard output (monitor). This method returns the appropriate calculated value as a double.  Data Set: ratNum1: 2/5.
Data Set:
Expected Results: 

xDistance(TwoDimensionalPoint p)
Objective: this method calculates the �x� distance between the current point object �p,� and returns the resulting double value. 
Date Set:
Expected Results: 

yDistance(TwoDimensionalPoint p)
Objective: this method calculates the �y� distance between the current point object �p,� and returns the resulting double value. 
Date Set:
Expected Results: 

Distance(TwoDimensionalPoint p)
Objective: this method calculates the two-dimensional distance between the current point object �p,� and returns the resulting double value. 
Date Set:
Expected Results: 

gradient(TwoDimensionalPoint p)
Objective: this method calculates the gradient of the line passing through the current point object �p,� and returns the resulting double value. 
Date Set:
Expected Results: 

areAligned(TwoDimensionalPoint p1, TwoDimensionalPoint p2)
Objective: this method determines if the current point p1 and p2 are aligned on a straight line and returns a boolean value which is true if they are aligned and false otherwise.
Date Set:
Expected Results: 

angle(TwoDimensionalPoint p)
Objective: this method calculates the angle in degrees of the line passing through the current point object �p,� and returns the resulting double value. 
Date Set:
Expected Results: 

toString()
Objective: this method override the default toString() method and returns the String representation of the two-dimensional point in the format (x, y). 
Date Set:
Expected Results: 

PointDemo
Objective: utilize the functions of the PointDemo class.
Date Set:
Expected Results: 

Site Toolbox:

Personal tools
GNU Free Documentation License 1.2
This page was last modified on 25 March 2007, at 15:00.
Disclaimers - About BluWiki