use Java
The two roots of a quadratic equation ax^2 + bx + c = 0
can be obtained using the following formula:
r1 = (-b + sqrt(b^2 - 4ac)) / (2a)
and
r2 = (-b - sqrt(b^2 - 4ac)) / (2a)
b^2 - 4ac is called the discriminant of the quadratic
equation. If it is positive, the equation has two real roots. If it
is zero, the equation has one root. If it is negative, the equation
has no...
Write a C++ program that solves a quadratic equation to find its
roots. The roots of a quadratic equation ax2 + bx + c = 0 (where a
is not zero) are given by the formula (–b ± sqrt(b2 – 4ac)) / 2a
*Use #include for the use of sqrt. The value of the discriminant
(b2 – 4ac) determines the nature of roots. If the value of the
discriminant is zero, then the equation has a single real root. If...
Write a program to input the coefficients of a quadratic
equation and solve roots for all cases (including complex roots).
VBA.
x=(b ^2) - (4ac)
I have it for 2 complex and 2 real and repeated.
Is that all cases?
[15 marks] Draw the flowchart of the following programming
problem: You can draw the flowchart using a drawing tool, or draw
the flowchart on a piece of paper, take a picture, insert it here
or save it in the submission folder The program reads an
unspecified number of integers until a zero is entered. While the
program reads each number it counts the number of positive numbers
and the number of negative numbers that have been entered and sum
up...
Find Roots of a Quadratic Equation
Step 1: Analyze the Problem
Accept three coefficients a, b, and c (all of data type double)
of a quadratic equation: ax2+bx+c=0
Output real roots (double) of the equation
Step 2: Develop a Solution
Check for degenerate case (user enters 0 for both a and b), no
solution
Check if the equation is linear (user enters 0 for a), x =
-c/b
Calculate the discriminant = b2-4ac (obviously, the
data type will be double)...
Using excel UserForm
construct a Flowchart that solves a quadratic
equation ax^2+bx+c=0 for changingvalues of a, b
and c. Please also display the
code you have used.
Please use excel UserForm
Thanks