yeah just ditch tht problem, i got it ;)
now im doing the second one
how do you put 3 functions in one program??
Type: Posts; User: haibhailie
yeah just ditch tht problem, i got it ;)
now im doing the second one
how do you put 3 functions in one program??
and wht are highlinght tags????
I am now doing the 3rd question...
my script till now is:
class ProfitAndLoss
{
public static void findResult(int sp,int cp);
{
if (sp>cp);
{
...
my final script, finally compiled and worked ^^ tysm kevin workman!!!!
i got a script:
class Triangle
{
public static void findArea(int a,int b, int c)
{
if (a+b>c);
{
double x=a*b*c/2;
...
ok, yh i didnt quite get it lol...
my program:
class Triangle
{
public static void findArea(int a,int b, int c)
{
if a+b>c,a+c>b,b+c>a
{
...
omg...ty sooo much!!!! i got it!!!!! :D yay!!!
i havent actually learnt that if statement and boolean literal, thats wht i need help in.
when two sides are greater than the other, a triangle can be formed. when they are not, it cannot.
when a+b<c
b+c<a and a+c<b, triangle cannot be formed.
but if instead of these, we use:a+b>c
b+c>a and a+c>b
ittl work.
uhm, maybe just putting in the required things needed, and if it meets up, just give the area, and if it doesnt, say triangle cannot be formed....not quite get wht u mean though...
i did the class triangle but am not getting the boolean part of it. I have got the part where find the area, but have not got where it tells us to say "triangle cannot be formed".
My script until...
thank you,
i hadent seen that. :D
i do only small projects without the args etc.
only like
public static void diplay findResult(int n,int x)
{
/then like/ double a,b,c;
/and then just...
Well, im not getting stuck...lol
i dont know how to do them for i was absent when the explanation was going on sir.
I am new to java and really need help!!!!
I need to create a:
1. class triangle with a method to find the area of a triangle using three sides, only if they form a valid triangle.Otherwise display...