View the step-by-step solution to:

# Question 4 : Answer the following Write a Java program for solving a quadratic equation a * + box + e = O using the following USING th wing header...

I was asked to find the roots of the equation , i know how to do it , bu here he asks to solve it using methods

Question 4 : Answer the following
Write a Java program for solving a quadratic equation a * + box + e = O using the following
USING th
wing header
method and retum number of solutions .
public static int solveEquation ( int a , int b , int ( )
Write a Java code that prompts the user to enter values for the coefficients a b , and c . The coefficients n ,
its 2 , D , all
coefficients
Care Di
the method so
Care passed to the method solve Equation . Then . the method returns the number of roots and displays in
Dis and displays the
6 + 6 2 - 1 0 0
and
0 - VEZ - 4 0 0
Answer

#### Top Answer

Quadratic equation can be solved with steps given below : Check if value of a is 0 or not. If a is 0 then the given equation... View the full answer

1 comment
• Hello, the above is complete and working but the output images somehow didn't get uploaded into the website. Please check these three images for the output. https://i.imgur.com/NUEXoBO.jpg https://i.imgur.com/rx5tW7N.jpg https://i.imgur.com/aWU2OSx.jpg
• Algorithm_123
• Jan 07, 2019 at 8:40am

### Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

### -

Educational Resources
• ### -

Study Documents

Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

Browse Documents
• ### -

Question & Answers

Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

Ask a Question
Ask a homework question - tutors are online