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 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
1). Consider the quadratic equation
x^2+ 100 x + 1 = 0
(i) Compute approximate roots by solving
x^2 -100 x = 0
(ii) Use the quadratic formula to compute the roots of
equation
(iii) Repeat the computation of the roots but use 3 digit
precision.
(iv) Compute the relative absolute errors in the two 3 digit
precision root approximations in (iii).
(v) With x1 =1/2a (-b + sqrt b^2 - 4ac and x2 = 1/2a (-b + sqrt b^2...