1302Project[1] - Student Name: _ Class and Section _ Total...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Student Name: __________________ Class and Section __________________ Total Points (10 pts) __________________ Due: September 14, 2009 before the class Project: The Triangle Class CSCI 1302 Introduction to Programming Principles Armstrong Atlantic State University Problem Description: Design a class named Triangle that extends GeometricObject . The class contains: Three double data fields named side1 , side2 , and side3 with default values 1.0 to denote three sides of the triangle. A no-arg constructor that creates a default triangle. A constructor that creates a triangle with the specified side1 , side2 , and side3 . The accessor methods for all three data fields. A method named getArea() that returns the area of this triangle. A method named getPerimeter() that returns the perimeter of this triangle. A method named toString() that returns a string description for the triangle. For the formula to compute the area of a triangle, see
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/20/2010 for the course ITEC 1302 taught by Professor Liang during the Spring '10 term at Armstrong State University.

Page1 / 4

1302Project[1] - Student Name: _ Class and Section _ Total...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online