Thread: triangle

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    4
    Rep Power
    0

    triangle


    a program that reads three positive numbers and determines whether they can formthe three sides of a triangle,determine if triangle is isosceles,equilaterall or right-angled
  2. #2
  3. Introspective
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Nov 2001
    Location
    London, UK
    Posts
    3,317
    Rep Power
    110
    three positive numbers are not enough in a normal cartesian coordinate system. You'd probably need 6 numbers to represent the x and y coordinates of each apex.

    As for the type of triangle, that'll be easy once you've worked out how to describe your triangle object, so let's do that first.

    christo
    This is me: http://chris.uk.com
  4. #3
  5. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    792
    actually, I believe you need to go to your instructor and class peers before you come here to get your homework done.

IMN logo majestic logo threadwatch logo seochat tools logo