# This is another Computer Science Question and I need to figure out how write a program that will solve this answer and Its required that I use Java to answer this quesion I used Eclipse but Im struggling to run this programThe formula for computing the discriminant of a quadratic equation ax^2 + bx + c = 0 is b^2 – 4ac. Write a program that computes the discriminant for the equation 3x^2 + 4x + 5 = 0.Class Name: Exercise01_01Extrapublic class Exercise01_01Extrapublic static void main(String[] args) {

Question
9 views

This is another Computer Science Question and I need to figure out how write a program that will solve this answer and Its required that I use Java to answer this quesion I used Eclipse but Im struggling to run this program

The formula for computing the discriminant of a quadratic equation ax^2 + bx + c = 0 is b^2 – 4ac. Write a program that computes the discriminant for the equation 3x^2 + 4x + 5 = 0.

Class Name: Exercise01_01Extra

public class Exercise01_01Extra

public static void main(String[] args) {

check_circle

Step 1

A Java program to compute the discriminant of a given quadratic equation is as follows,

File name: “Exercise01_01Extra.java”

//Import required package

import java.util.Scanner;

//Create a class

public class Exercise01_01Extra

{

//Define the method

public static void main(String[] args) {

//Create Scanner object

Scanner inp = new Scanner(System.in);

//Prompt the user to enter the values for a, b and c

System.out.print("Enter the values for a, b, and c: ");

&...

### Want to see the full answer?

See Solution

#### Want to see this answer and more?

Solutions are written by subject experts who are available 24/7. Questions are typically answered within 1 hour.*

See Solution
*Response times may vary by subject and question.
Tagged in
EngineeringComputer Science

### Java 