Posted by: yekloyatri July 17, 2007
any java programmers here in sajha?
Login in to Rate this Post:     0       ?        
Hi there need some basic programming help in java. If there is anyone who could write it up, i would greatly appreciate it.. So, here it goes.. Write a program to solve quadratic equations. The programe should take as input a string in the form of: ax*2+b*x+c=0 where a, b and c are real valued, non negative numbers. Your programe should type and print the values of x that solve the equation. Your program should use the quadratic equation formula x = (-b+sqrt(b*b-4*a*c))/2*a By inspecting sign of the value b*b-4*a*c inside the square root , you should be able to determine if the equation has two +ve, one zero, no negative solution.. using java.util.Scanner class if you could write it up with simple if else statement in a very simple and understandable way i would appretiate it.. Thank you in advace and one more thing there are users here would have no idea but would still like to talk garbage by saying something stupid ....please dont bother.. and use the <--- back button.. thanks..
Read Full Discussion Thread for this article