logo

Crowdly

Write an algorithm to find the roots of given input values of a quadratic equati...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Write an algorithm to find the roots of given input values of a quadratic equations using the quadratic formula of (-b+/-(b^(2)-4ac)^(1/2))/2a

Fill in the gaps by using only the following letters and words, but any operators:

Letters and words you can use (exacty as you see it here): GET, SET, DECLARE, a, b, c, d, root1, root2, PRINT, ELSE IF, ELSE, END, END IF

Do not type spaces in between anything except if you need to use an ELSE IF or END IF.

Begin

a, b, c, d, root1, root2

a

b

d = b^(2)-4ac

IF THEN

     root1 =

     root2 =

      "x = " " for root 1 and x=" "for root 2"

d==0 THEN

     root1=root2=-b/2a 

      "x = " " for root 1 and x=" "for root 2"

      "There is no real roots (imaginary)"

More questions like this

Want instant access to all verified answers on connect.belgiumcampus.ac.za?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!