| | |
plllllzzz hellp me before next Suterday
![]() |
•
•
Join Date: Nov 2009
Posts: 6
Reputation:
Solved Threads: 0
hi guyz and GiRlzz (F) ;;
how R u ?
plllz I need 4 helpping from u !!
I've a Q in Java ,, I'm trying to write it in jGRASP but I can't :s
plllllzzz hellp me before next Suterday ;s
this is my Q
3.Write expressions to compute both solutions for the quadratic formula. The formula is
- b + - ( b^2 - 4ac) / 2a
The - & + symbol means “plus or minus” and indicates that the equation has two solutions: one in which the result of the square root is added to -b and one in which the result is subtracted from -b. Assume all variables are float variables.
this is my answer but when put it in jGRASP , it tell me ERROR !!!
and this is another Q
2.Write a java program that reads two integers into the variables a and b then swaps the values of a and b.
I'm so sorry :;s
how R u ?
plllz I need 4 helpping from u !!
I've a Q in Java ,, I'm trying to write it in jGRASP but I can't :s
plllllzzz hellp me before next Suterday ;s
this is my Q
3.Write expressions to compute both solutions for the quadratic formula. The formula is
- b + - ( b^2 - 4ac) / 2a
The - & + symbol means “plus or minus” and indicates that the equation has two solutions: one in which the result of the square root is added to -b and one in which the result is subtracted from -b. Assume all variables are float variables.
this is my answer but when put it in jGRASP , it tell me ERROR !!!
Java Syntax (Toggle Plain Text)
import java.lang.Math; public class E3 { public static void main(String[] args) { Scanner console = new Scanner (System.in); float x,y,a,b,c,f; double e; System.out.println("Enter a "); a =console.nextDouble(); System.out.println("Enter b "); b = console.nextDouble(); System.out.println("Enter c "); c = console.nextDouble(); f= (b*b)-(4*a*c); e= Math.pow(f, 0.5 ); x=(-b + e)/(2*a); y=(-b - e)/(2*a); System.out.println("solution1 =" + x); System.out.println("solution2 =" + y); } }
and this is another Q

2.Write a java program that reads two integers into the variables a and b then swaps the values of a and b.
I'm so sorry :;s
•
•
Join Date: Nov 2009
Posts: 4
Reputation:
Solved Threads: 0
0
#4 26 Days Ago
•
•
•
•
2.Write a java program that reads two integers into the variables a and b then swaps the values of a and b.
java Syntax (Toggle Plain Text)
public class swapInts { public static void main(String[] args) { Scanner console = new Scanner (System.in); int a, b, tempInt; System.out.println("Enter first Int: "); a =console.nextInt(); System.out.println("Enter second Int: "); b = console.nextInt(); tempInt = a; //copy a to temp a = b; //copy b to a b = tempInt; //copy temp to b System.out.println("int 1=" + a); System.out.println("int 2 =" + b); } }
hope this helps...
•
•
Join Date: Nov 2009
Posts: 6
Reputation:
Solved Threads: 0
-2
#5 25 Days Ago
anuj576 & stevelg
THX 4 u ,, I solved Q 3 and I knw where is my erorr ^^
mruthyunjaya
Thhhhhhhhhhhhhhhnk u
you've helped me thhhx huuuun (F)(F) u'r a heRo
I'v a Q
what's meaning of tempInt in
Finelly ^^ R u sure from da code ?
thx again
THX 4 u ,, I solved Q 3 and I knw where is my erorr ^^
mruthyunjaya
Thhhhhhhhhhhhhhhnk u
you've helped me thhhx huuuun (F)(F) u'r a heRo
I'v a Q
what's meaning of tempInt in
Java Syntax (Toggle Plain Text)
int a, b, tempInt; tempInt = a; //copy a to temp b = tempInt; //copy temp to b
Finelly ^^ R u sure from da code ?
thx again
Last edited by GiRL,IT; 25 Days Ago at 3:40 am.
-1
#6 25 Days Ago
@GiRL,IT your use of language is unacceptable. Please make sure you read forum rules where you will find something like
•
•
•
•
We strongly encourage all posts to be in full-sentence English. Please do not use "leet" speak or "chatroom" speak.
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
•
•
Join Date: Nov 2009
Posts: 4
Reputation:
Solved Threads: 0
0
#8 25 Days Ago
•
•
•
•
mruthyunjaya
Thhhhhhhhhhhhhhhnk u
you've helped me thhhx huuuun (F)(F) u'r a heRo
I'v a Q![]()
what's meaning of tempInt in
Java Syntax (Toggle Plain Text)
int a, b, tempInt; tempInt = a; //copy a to temp b = tempInt; //copy temp to b
Finelly ^^ R u sure from da code ?![]()
thx again
![]() |
Similar Threads
- Need hellp with my array (C++)
- Urgent: Please Help Computer Keep Saying Kernel_data_inpage_error And Some Times Kern (Storage)
- compaq armada 1700 cmos (Troubleshooting Dead Machines)
- hellp please (Java)
- Machine_Check_Exception in wmp HELLP! (Windows NT / 2000 / XP)
- C++ Coding :: First Ever (C++)
- Motherboard Manual (Computer Science)
Other Threads in the Java Forum
- Previous Thread: default contructor?
- Next Thread: how can i show a wap site in J2ME application ???
| Thread Tools | Search this Thread |
add android api applet application applications array arrays automation bank binary bluetooth chat class clear client code codesnippet collections component converter database development dice digit ebook eclipse equation error event formatingtextintooltipjava fractal functiontesting game givemetehcodez graphics gui health html hyper ide idea image infinite input int integer invokingapacheantprogrammatically j2me java javame javaprojects jni jpanel julia linux list loop looping main map method methods mobile myregfun mysql netbeans newbie nonstatic openjavafx parameter pearl php problem program programming project recursion repositories scanner scrollbar server set sms sort sorting spamblocker sql sqlserver state storm string superclass swing swt text-file thread threads tree windows






