logo

Crowdly

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

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

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)"

Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на connect.belgiumcampus.ac.za?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!