Question: Java Programming Question 4 (10 points): Solutions for a quadratic equation ax(squared)+bx+c= 0. where a does not equal zero are as follows. r1=( b+b(squared)4ac)/2a r2=(bb(squared)4ac)/2a

Java Programming

Question 4 (10 points):

Solutions for a quadratic equation ax(squared)+bx+c= 0. where a does not equal zero are as follows.

r1=( b+b(squared)4ac)/2a

r2=(bb(squared)4ac)/2a

if b(squared)4ac <0, equation doesnt have real roots. If it is 0 there is one

root(r1=r2). Write a Java program to read a,b and c from keyboard and find the roots, if they exist.

Note:

You need to have a method that takes 3 real values as arguments

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!