List

■Write an algorithm Only  that will calculate the roots of a quadratic equation

ax^2+bx+c=0

■ Hint: d = sqrt (    b^2-4ac  ), and the roots are:  x1 = (–b + d)/2a   and x2 = (–bd)/2a

62 Responses to “Report (Write an algorithm )”

  1. محمدعبده احمد حسن

    step1; input a,b,c
    step2; d = sqrt ( b^2-4ac )
    step3; if (d>0)
    then
    x1 = (–b + d)/2a
    x2 = (–b – d)/2a
    else
    no there
    step4; print “x1 and x2”

  2. محمد احمد محمد عبدالرحمن عمايم

    Step1;input a,b,c
    Step2; d=sqrt (b^2-4ac)
    Step3;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no there
    Step4;printx1 and x2

  3. عبدالباري محمد عبدالبارى محمد جسن

    step1; input a,b,c
    step2; d = sqrt ( b^2-4ac )
    step3; if (d>0)
    then
    x1 = (–b + d)/2a
    x2 = (–b – d)/2a
    else
    no there
    step4; print “x1 and x2”

  4. محمد السيد أبو قمر

    step1: input a,b,c
    step2: d = sqrt ( b^2-4ac )
    step3 : if (d>0)
    then
    x1 = (–b + d)/2a
    x2 = (–b – d)/2a
    else no there
    step4; print “x1 and x2”

  5. محمد السيد أبو قمر

    step1: input a,b,c
    step2: d = sqrt ( b^2-4ac )
    step3: if (d>0)
    then
    x1 = (–b + d)/2a
    x2 = (–b – d)/2a
    else
    no there
    step4; print “x1 and x2”

  6. محمد عزمي محمد محمد عزمي

    Step1;input a,b,c
    Step2; d=sqrt (b^2-4ac)
    Step3;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no real roots
    Step4;printx1 and x2

  7. هاله ممدوح مصطفى حسن سمره

    Step1;input a,b,c
    Step2; d=sqrt (b^2-4ac)
    Step3;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no there
    Step4;printx1 and x2

  8. كريم رضا حافظ

    Step1;input a,b,c
    Step2; d=sqrt (b^2-4ac)
    Step3;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no real roots
    Step4;printx1 and x2

  9. ميار محمد السيد محمد عبدالله

    Step1;input a,b,c
    Step2; d=sqrt (b^2-4ac)
    Step3;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no real roots
    Step4;printx1 and x2

  10. رنا محمد محمود محمد قورة

    Step1;input a,b,c
    Step2; d=sqrt (b^2-4ac)
    Step3;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no real roots
    Step4;printx1 and x2

  11. محمد السيد عبدالعاطى

    Step1;input a,b,c
    Step2; d=sqrt (b^2-4ac)
    Step3;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no real roots
    Step4;printx1 and x2

  12. محمد نبيل ابراهيم السمر ه

    Step1input a ، b ، c
    Step2 ؛ d = sqrt (b ^ 2-4ac)
    Step3 if(d. ^ 0)
    so
    × 1 = (- b + d) / 2a
    x2 = (-bd) / 2a
    else
    no real roots
    Step4 ؛ printx1 و x2

  13. يوسف محمد صلاح

    step1 start
    step2 input a,b,c
    step3 d=sqrt ( b^2-4ac )
    step4 if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no real roots
    step5 print x1,x2
    step6 end

  14. اسلام ايهاب ماهر السوليه

    step1; input a,b,c
    step2; d = sqrt ( b^2-4ac )
    step3; if (d>0)
    then
    x1 = (–b + d)/2a
    x2 = (–b – d)/2a
    else
    no there
    step4; print “x1 and x2”

  15. اسلام ايهاب ماهر السوليه

    step1: input a,b,c
    step2: d = sqrt ( b^2-4ac )
    step3: if (d>0)
    then
    x1 = (–b + d)/2a
    x2 = (–b – d)/2a
    else
    no there
    step4; print “x1 and x2”

  16. السيد صبحي السيد

    Algorithm
    Step1/INputa b, c
    Step2/veada b, c
    Step3/check
    B2-4ac=0
    if d >0
    solve x1, x2
    Else
    Printh or ealvoots and if

  17. عبدالوهاب عبدالرحمن احمد عبدالعاطي

    Step1;input a,b,c
    Step2; d=sqrt (b^2-4ac)
    Step3;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no real roots
    Step4;printx1 and x2

  18. احمد السيد علي عبدالله

    Step1;input a,b,c
    Step2; d=sqrt (b^2-4ac)
    Step3;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no real roots
    Step4;printx1 and x2

  19. احمد عصام حسن حسن طه

    step1; input a,b,c
    step2; d = sqrt ( b^2-4ac )
    step3; if (d>0)
    then
    x1 = (–b + d)/2a
    x2 = (–b – d)/2a
    else
    no there
    step4; print “x1 and x2”

  20. خالد عبد المقصود عبد المقصود زيادة

    Step1;input a,b,c
    Step2; d=sqrt (b^2-4ac)
    Step3;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no roots
    Step4;printx1 and x2

  21. خالد عبد المقصود عبدالمقصود زيادة

    Step1;input a,b,c
    Step2; d=sqrt (b^2-4ac)
    Step3;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no roots
    Step4;printx1 and x

  22. عمرو هشام محمد حسن

    step1;start requesting data from user
    step2: input a,b,c
    step3: d = sqrt ( b^2-4ac )
    step4: if (d>0)
    then
    x1 = (–b + d)/2a
    x2 = (–b – d)/2a
    else
    no there
    step5; print “x1 and x2”

  23. Nouran Ahmed Mohammed Ali Elalfy

    Step1;input a,b,c
    Step2; d=sqrt (b^2-4ac)
    Step3;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no real roots
    Step4;printx1 and x2

  24. احمد ابراهيم صبري ابراهيم ظيه

    Step1;input a,b,c
    Step2; d=sqrt (b^2-4ac)
    Step3;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no real roots
    Step4;printx1 and x2

  25. محمود عاصم فتحي ابوالخير مصطفي

    step1|start
    Step2|input a,b,c
    Step3| d=sqrt (b^2-4ac)
    Step4|if (d.^0)
    yes
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    no
    no real roots
    Step5|printx1 and x2
    step6|end

  26. Menna atef elzoghby

    step1: input a,b,c
    step2: d = sqrt ( b^2-4ac )
    step3: if (d>0)
    then
    x1 = (–b + d)/2a
    x2 = (–b – d)/2a
    else
    no there
    step4; print “x1 and x2”

  27. إبراهيم أبو الفتوح عبدالله إبراهيم

    step1; input a,b,c
    step2; d = sqrt ( b^2-4ac )
    step3; if (d>0)
    then
    x1 = (–b + d)/2a
    x2 = (–b – d)/2a
    else
    no there
    step4; print “x1 and x2”

  28. محمود عاصم فتحي ابوالخير مصطفي

    step1|start
    Step2;input a,b,c
    Step3; d=sqrt (b^2-4ac)
    Step4;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no real roots
    Step5;printx1 and x2
    step6|end

  29. مصطفى محمد عبدالمولى الناقر

    Step1;input a,b,c
    Step2; d=sqrt (b^2-4ac)
    Step3;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no real roots
    Step4;printx1 and x2

  30. العزازي الفضل إبراهيم عزازي

    step1:printin a,b,c
    step2:sqrt (d^2-4ac)
    step3:if (d>0)
    then x1=(-b+d)/2a
    ,x2=(-b-d)/2a
    else “لا يوجد”
    step4:printout x1,x2

  31. محمود أحمد حافظ محمود

    step1:printin a,b,c
    step2:d=sqrt (b^2-4ac)
    step3:if (d>0)
    then x1=(-b+d)/2a
    ,x2=(-b-d)/2a
    else “لا يوجد”
    step4: printout x1,x2

  32. السعيد السيد أبو الفتوح حشيش

    step1; input a,b,c
    step2; d = sqrt ( b^2-4ac )
    step3; if (d>0)
    then
    x1 = (–b + d)/2a
    x2 = (–b – d)/2a
    else
    no there
    step4; print “x1 and x2”

  33. بشار محمودعبد الفتاح ابراهيم

    1-input a,b,c
    2- d=sqrt (b^2-4ac)
    3-if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no real roots
    4-printx1 and x2

  34. احمد سامح محمد جويلي

    step1; input a,b,c
    step2; d = sqrt ( b^2-4ac )
    step3; if (d>0)
    then
    x1 = (–b + d)/2a
    x2 = (–b – d)/2a
    else
    no there
    step4; print “x1 and x2”

  35. محمد محمد نجاح على مصطفي

    Step1 ؛ المدخلات a ، b ، c
    Step2 ؛ d = sqrt (b ^ 2-4ac)
    Step3 ؛ إذا (d. ^ 0)
    ثم
    × 1 = (- b + d) / 2a
    x2 = (-bd) / 2a
    آخر
    لا يوجد
    Step4 ؛ printx1 و x2

  36. محمود عاصم فتحي

    step1; input a,b,c
    step2; d = sqrt ( b^2-4ac )
    step3; if (d>0)
    then
    x1 = (–b + d)/2a
    x2 = (–b – d)/2a
    else
    no there
    step4; print “x1 and x2”

  37. محمد رضا عبدالعزيز

    step1; input a,b,c
    step2; d = sqrt ( b^2-4ac )
    step3; if (d>0)
    then
    x1 = (–b + d)/2a
    x2 = (–b – d)/2a
    else
    no there
    step4; print “x1 and x2”

  38. هاله ياسر أحمد حاتم محمد لبيب

    Step1;read a,b,c
    Step2; d=sqrt (b^2-4ac)
    Step3;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no real roots
    Step4;printx1 and x2

    • أحمد سامي محمود عبد العال

      1-Start
      2-Input a, b, c
      3-Sqrt (2b ^-4ac)
      4-Ifd >0 Then
      Root1 is (-b-d)
      Root2 is (-b+d)
      5-printR1, R2
      6-END.

  39. سارة حامد الالفى

    Step1 ; input a,b,c
    Step2 ; d= sqrt (b^2-4ac)
    Step3 ; if (d>0)
    then
    X1=(-b+d)/2a
    X2=(-b-d)/2a
    else
    No real roots
    Step4; “X1 and X2”

  40. بسمه صلاح عامر حماد

    Step1;input a,b,c
    Step2; d=sqrt (b^2-4ac)
    Step3;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no real roots
    Step4;printx1 and x2

  41. أحمد سامي محمود عبد العال

    1-Start
    2-Input a, b, c
    3-Sqrt (2b ^ – 4ac)
    4-Ifd >0 Then
    Root1 is (-b-d)/2a
    Root2 is (-b+d) /2a
    5-printR1, R2
    6-END

  42. احمد سمير عبد الرؤف محمد

    Step1;input a,b,c
    Step2; d=sqrt (b^2-4ac)
    Step3;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no there
    Step4;printx1 and x2

  43. احمد سمير عبد الرؤف محمد

    Step1;read a,b,c
    Step2; d=sqrt (b^2-4ac)
    Step3;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no real roots
    Step4;printx1 and x2

  44. عبد الرحمن محمد احمد محمد علي

    Step1;read a,b,c
    Step2; d=sqrt (b^2-4ac)
    Step3;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no real roots
    Step4;printx1 and x2

  45. محمود عبد الخالق عبد العزيز الجارحي

    step1; input a,b,c
    step2; d = sqrt ( b^2-4ac )
    step3; if (d>0)
    then
    x1 = (–b + d)/2a
    x2 = (–b – d)/2a
    else
    no there
    step4; print “x1 and x2”

  46. محمود عبد الخالق عبد العزيز الجارحي

    Step1;read a,b,c
    Step2; d=sqrt (b^2-4ac)
    Step3;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no real roots
    Step4;printx1 and x2

  47. أميره أبو المعاطي امور منصور

    Step1;input a,b,c
    Step2; d=sqrt (b^2-4ac)
    Step3;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no real roots
    Step4;printx1 and x2

  48. اميره ابو المعاطي انور منصور

    step1; input a,b,c
    step2; d = sqrt ( b^2-4ac )
    step3; if (d>0)
    then
    x1 = (–b + d)/2a
    x2 = (–b – d)/2a
    else
    no there
    step4; print “x1 and x2”

  49. احمد صلاح محمد السعيد

    Step1:Printin a, b, c
    Step2:sqrt(d^ 2-4ac)
    Step3:if(d>0)
    then x1=(-b+d) /2a
    ,x2=(-b-d)/2a
    else”لايوجد”
    Step4:Printoutx1, x2

  50. احمد صلاح محمد السعيد

    Step1:Printin a, b, c
    Step2:sqrt(d^2-4ac)
    Step3:if(d>0)
    then x1=(-b+d) /2a
    ,x2=(-b-d)/2a
    else”لا يوجد”
    Step4:Printoutx1, x2

  51. احمد احمد عبدالحميد بهرام

    Step 1start
    Step2 input a,b,c
    Step3 d=sqrt(b^2-4ac)
    Step4 if(d.^0)
    Then
    x1=(-b-d)/2a
    else
    no real roots
    Step5 print X1,x2
    Step6 end

  52. السيد عبدالله السيد اسماعيل

    Algorithm
    Step1: input a, b, c
    Step2:Read a, b, c
    Step3:check if (d=b*b-4ac>or=0 )
    Then
    Solve x1, x2
    Else
    No real roots
    Step4:print x1, x2

  53. طارق ابراهيم علي حسن

    الخطوة 1: إدخال a ، b ، c
    step2: d = sqrt (b ^ 2-4ac)
    step3: if (d> 0)
    ثم
    x1 = (–b + d) / 2a
    x2 = (–b – d) / 2a
    else
    لا يوجد
    step4 ؛ اطبع “x1 و x2”

  54. احمد فتحى احمد محمد بدر

    Step1;input a,b,c
    Step2; d=sqrt (b^2-4ac)
    Step3;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no real roots
    Step4;printx1 and x2

  55. Gehad hassan ibrahim elkhabiry

    ➡️Step1
    ؛ المدخلات a ، b ، c
    Step2
    ؛ d = sqrt (b ^ 2-4ac)
    Step3
    ؛ إذا (d. ^ 0)
    ثم
    × 1 = (- b + d) / 2a
    x2 = (-bd) / 2a
    آخر
    لا جذور حقيقية
    Step4
    ؛ printx1 و x2⬅️
    .
    .
    جهاد حسن ابراهيم محمد الخبيري
    * Sec 9 *
    * Group 2 *

  56. Fareda hazem mostafa

    ➡️1-ابدأ
    2-الإدخال a، b، c
    3-Sqrt (2b ^ – 4ac)
    4- Ifd > 0 ثم
    Root1 is (-bd) / 2a
    Root2 is (-b + d) / 2a
    5-printR1، R2
    6 -النهاية⬅️
    فريدة حازم مصطفي السيد
    سكشن ١٠
    المجموعة الثانية

  57. Nehal kamel lotfy

    Step1;input a,b,c
    Step2; d=sqrt (b^2-4ac)
    Step3;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no real roots
    Step4;printx1 and x2

  58. محمد عمرو محمد السيد

    step1; input a,b,c
    step2; d = sqrt ( b^2-4ac )
    step3; if (d>0)
    then
    x1 = (–b + d)/2a
    x2 = (–b – d)/2a
    else
    no there
    step4; print “x1 and x2”

  59. هبة محمود محمد ابراهيم

    Step1;input a,b,c
    Step2; d=sqrt (b^2-4ac)
    Step3;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no real roots
    Step4;printx1 and x2.

    NAME: Heba Mahmoud mohamed Elbody.
    LEVEL Zero.

  60. اسلام فتحي محمد بدر

    Step1 ; input a,b,c
    Step2 ; d= sqrt (b^2-4ac)
    Step3 ; if (d>0)
    then
    X1=(-b+d)/2a
    X2=(-b-d)/2a
    else
    No real roots
    Step4; “X1 and X2”

  61. احمد جمعه

    Step1;input a,b,c
    Step2; d=sqrt (b^2-4ac)
    Step3;if (d.^0)
    then
    ×1=(-b+d)/2a
    x2=( -b-d)/2a
    else
    no real roots
    Step4;printx1 and x2

Leave a Reply

Your email address will not be published. Required fields are marked *

  Posts

1 2 4
April 5th, 2022

Artificial Intelligence: A Modern Approach Lec(6)

Problem-Solving Agents https://drive.google.com/drive/folders/1dATIjI_UbdvoGwvGsVdIEHaa1wEODht3?usp=sharing

April 5th, 2022

Artificial Intelligence: A Modern Approach Lec(5)

Problem-Solving Agents https://drive.google.com/drive/folders/1K5QedjOtuhB03VRcmgETzY50lkZRA05R?usp=sharing

March 19th, 2022

Artificial Intelligence: A Modern Approach Lec(4)

Problem-Solving Agents Download from this link https://drive.google.com/drive/folders/1nmKUlWTd_f3la-BOHXpomWlOe3iLjmni?usp=sharing

March 13th, 2022

Artificial Intelligence: A Modern Approach Lec(3)

INTELLIGENT AGENTS Download from this link https://drive.google.com/drive/folders/1bQesWpipvYzw1FWwxTYO7ld7oa1UTr9_?usp=sharing  

March 5th, 2022

Artificial Intelligence: A Modern Approach Lec(2)

INTRODUCTION What Is AI? Download from this link https://drive.google.com/drive/folders/1SYygpoG-t21_4K6h9V_EllIf9nrWOv1_?usp=sharing Important link https://github.com/aimacode/aima-python https://aimacode.github.io/aima-exercises/ Task https://www.programiz.com/python-programming/keyword-list Optional https://i.am.ai/roadmap/#note  

February 23rd, 2022

Artificial Intelligence: A Modern Approach Lec(1)

INTRODUCTION What Is AI? Download from this link https://drive.google.com/drive/u/4/folders/10CUPZsMHo9simp8pc-PREViDzb2DW1bm Important link http://aima.cs.berkeley.edu/ https://github.com/aimacode/aima-python https://drive.google.com/file/d/1RPrTAQmuBj4NPnIGeZ7n9VEdmZSUoLnK/view https://drive.google.com/file/d/1Kc8e3HFPHRxasbNx3Kvt9R4U447p9otl/view https://www.youtube.com/playlist?list=PLUl4u3cNGP63gFHB6xb-kVBiQHYe_4hSi  

November 26th, 2021

Program Quiz

Click here
May 18th, 2021

ما هي مهارات العرض و التقديم ؟

ما هي مهارات العرض و التقديم ؟

May 11th, 2021

_تقرير _ اكتب الاجابة في كومنت

_اكتب اسمك كامل باللغة العربية_  الاجابة في كومنت اذكر صفات القائد ؟ حدد أهم خصائص فريق العمل ؟ ما هو […]

December 11th, 2020

كتاب مهارات الحاسب الالي

https://drive.google.com/file/d/1rfa4QEJJs-O087r_TVW6vhhzYxcMjQDf/view?usp=sharing

August 28th, 2020

الشيت الاول مهارات اتصال وعرض

     

July 1st, 2020

Research Gate

<a href=”https://www.researchgate.net/profile/El_Sayed_El-Kenawy”>El-Sayed M. El-kenawy on ResearchGate</a>

April 21st, 2020

Filter- Design Part2 Last chapter DSP-محاضره معالجه اشارات

https://youtu.be/zdBbof5-VZ4
April 21st, 2020

Filter- Design Part1 Last chapter DSP-محاضره معالجه اشارات

https://youtu.be/zdBbof5-VZ4
April 12th, 2020

circularconv معالجة اشارات

https://www.youtube.com/watch?v=Qgn6O-FPZ0o&feature=youtu.be
April 9th, 2020

Problems on Filter Realization معالجة اشارات

https://www.youtube.com/watch?v=1ZuyZQSeDso&feature=youtu.be
April 9th, 2020

حل شيت 5 مهارات الحاسب

https://drive.google.com/file/d/1-YvUakJnGyTHyBs6aTFv3yW2-3rUKSno/view?usp=sharing

April 3rd, 2020

REALIZATION معالجة اشارات

https://www.youtube.com/watch?v=d98TCckgbHc&feature=youtu.be
March 29th, 2020

Z properties معالجة اشارات

https://www.youtube.com/watch?v=uQoEGUIpioU&feature=youtu.be
March 28th, 2020

Report Solve the Following Using Z.T

March 28th, 2020

Revision on zمعالجة اشارات

https://www.youtube.com/watch?v=w3M5YYeusyQ&feature=youtu.be
March 27th, 2020

معالجة اشارات رقمية حل الشيت _سيكشن 1

https://drive.google.com/file/d/1J-UuLWmQu6EwnPN9FbvTj9-M1ekPVPQa/view?fbclid=IwAR1wCB2rP9oClLyInY-AAdO0FW4FKgisTARugw21X1BhhLZFIAAFKihXg54

March 26th, 2020

Frequency Response معالجة اشارات

https://www.youtube.com/watch?v=O5x1pxQRcSQ&feature=youtu.be
March 26th, 2020

Inverse z Transform part 4

https://www.youtube.com/watch?v=8TU-7E5DyvU&feature=youtu.be