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:
- Equilateral - all sides the same length,
- Isosceles - two sides the same length or
- Scalene - no sides the same length
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:
- Requirements: (outline of the above requirements)
- 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.
- Implementation: A computer print out of your implementation.
- 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:
- Analysis and Design (25%)
- Implementation (50%)
- 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