Free2Code
 
Time: 2008-12-04, 10:00pm
java assignment
Subject: java assignment  ·  Posted: 2006-11-15, 05:35am
Rank: ? (6)
Member #: 29111
Aims and Objectives: Provide an opportunity for students to apply their knowledge of the "if-else" construct taught in week 6.

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.

anyone got any ideas how i can start this off

 
  Reply to this ·  Post link ·  Top
Subject: Re: java assignment  ·  Posted: 2006-11-16, 03:33am
Rank: ? (4821)
Member #: 3416
break it into three parts: input, logic, and output.

input consists of prompting for the lengths of the 3 sides and reading them in to variables.

logic consists of determining the triangle type by comparing the lengths.

output is displaying the result of your logic.

my mind is like a steel trap! it only hangs on to the big stuff. visit my forums at track7.org
 
  Reply to this ·  Post link ·  Top
Subject: Re: java assignment  ·  Posted: 2006-11-16, 07:14am
Rank: ? (6)
Member #: 29111
thanks man so i made to class's

traingle class
and triangle App class

it was quite striaght foward thanks anyway

 
  Reply to this ·  Post link ·  Top
Subject: Re: java assignment  ·  Posted: 2006-12-07, 11:42pm
Rank: ? (2)
Member #: 29340
where can we post our questions


 
  Reply to this ·  Post link ·  Top
Subject: Re: java assignment  ·  Posted: 2006-12-07, 11:43pm
Rank: ? (2)
Member #: 29340
i need to work with transactions in java code how can we?

 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.

icons