COMP553 PRACTICAL EXERCISE 2 - TRIANGLE RECOGNITION

To be commenced in Week 6 (commencing Monday 29th October).

Latest hand in: 17:00 Friday 9 November 2001.



1. REQUIREMENTS

Produce a Java program which, given three sides of a triangle, determines whether the triangle is:

  1. Equilateral - all sides the same length,
  2. Isosceles - two sides the same length or
  3. Scalene - no sides the same length
TRIANGLES

Assume that any individual side must be a positive number not greater than 100.0.

Note: You might find it useful to look at the notes on choice points and the Java "if-else" statement.



2. REPORT

You should hand in a report comprising the following sections:

  1. Requirements: (outline of the above requirements)
  2. Analysis and Design: A short description of your analysis of the problem including a Class Diagram outlining the class structure for your proposed solution. Detailed descriptions for the methods you intend to include. A Control Flow Diagram for you design.
  3. Implementation: A computer print out of your implementation.
  4. Testing: A set of appropriate test cases with the output from your program as a result of running these test cases.

Marks will be distributed evenly over: analysis and design; implementation; and testing. Refer to guidance notes on the presentation of work if necessary.


3. MARK SCHEME

Marks will be awarded for:

  1. Analysis and Design (25%)
  2. Implementation (50%)
  3. Testing (25%)

See also notes on practicals and course work for general guidance on the presentation of work, the COMP101 marking scheme and late submission policy.




Created and maintained by Frans Coenen. Last updated 31 October 2001