Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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.

(I got this far if someone could help me figure out what to do next.)

Class Name: Exercise01_01Extra If you get a logical or runtime error, please refer https://liveexample.pearsoncmg.com/faq.html. Code Analysis: Compiler Error(s) Compiler error messages 1. Exercise01_01Extra.java:11: error: ')' expected 2. print (ex. compute_discriminant()) \} 3 4. Exercise01_01Extra.java:11: error: illegal start of expression 5. print (ex. compute_discriminant(); ) \} 6. 7. 2 errors

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions