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 3 4
July 24th, 2019

تلخيص وحل أسئلة مهارات التحليل

المطلوب تلخيص الفصل الاول وحل الاسئلة الخاصة به كما هي في المحاضرة هنا مع كتابة الاسم بالعربي

July 12th, 2019

كتاب و محاضرات مهارات البحث والتحليل

كتاب مهارات البحث والتحليل https://drive.google.com/open?id=1_VcimjIcHc_74Lw0hx96mMlEWzw5gUpi محاضرات مهارات البحث https://drive.google.com/open?id=1WGdflCQr8FCi-id9aTP-tRHF03T-injY

May 3rd, 2019

محاضرات د. ريهام كاملة

ده اللينك كامل للمحاضرات https://drive.google.com/open?id=13xEjlrqikE118vFuG6eNIpH3c9ubhhd4  

April 22nd, 2019

Information Security Exam

Click here
April 15th, 2019

Information Security Revision

محاضرة هامة …. طريقة الأسئلة    https://drive.google.com/open?id=13Qb4cDfx8eVmoTXoLCR8IiFcChuDhpEv

March 31st, 2019

محاضرات

https://drive.google.com/open?id=1ww7t0sVLpMi9CaCvzWWOXlNjxOcFx3TN

March 19th, 2019

virus attacks

What is the most famous virus attacks in the world?

March 16th, 2019

محاضرات

1- 8085 instruction set Arabic https://drive.google.com/open?id=1RDTaBXB6nybHepz-k9z86EjT-G8jXzlr 2-Programming with 8086 https://drive.google.com/open?id=1YGzthEPYpR3DZqzr9BY_HDblmZH-hLQe 3-8086 Assembly Programs https://drive.google.com/open?id=1dX5JdtgYHnRtzoIQNUWPDwonrE5kTAYn  

March 12th, 2019

المحاضرات

1- Introduction to Microprocessor Systems https://drive.google.com/open?id=1AKQYTiDPHDB-WCGTis-_LU_yuSSOGf_b 2-Memory and input and output ports, Interrupts, Direct Memory Access, Cache memory, Register file. https://drive.google.com/open?id=1MxerliIPqQd7bkT0r3gVHN1UGoqrccg0 […]

March 4th, 2019

Microprocessor Notes

Download this file https://drive.google.com/open?id=1g6bEojykzvlaaNgNsNBLZyq2ism1A-Ai

March 4th, 2019

Report

March 4th, 2019

Report

March 4th, 2019

Report

What is operating systems, Types of operating systems, and how it works? What is an Application? its Types? give examples […]

March 4th, 2019

Midterm Exam

 

February 18th, 2019

موقع مهم

الموضعات هنا ممتازة في البداية .. ربنا يوفق الجميع http://www.qariya.info/electronics/beginer_page.htm

February 17th, 2019

Why information security is important?

1-What is information? 2-What is information security? 3-Why information security is important? 4-What is information security management?

February 16th, 2019

How computer change our life ?

How computer change our life ?  Leave your answer in comment 

December 14th, 2018

QUIZ

“”” Write a program do the following: – ask the user to enter number of students in the class – […]

December 10th, 2018

Python Examples Run

Program 1 https://trinket.io/python/f80f228607 Program 2 https://trinket.io/python/22ce0558f5 Program 3 https://trinket.io/python/4188b4c32c Program 4 https://trinket.io/python/2b043e2b05 Program 5 https://trinket.io/python/a53e7f9e82 Program 6 https://trinket.io/python/7f7a015b33 Program 7 […]

December 9th, 2018

اختار موضوع واحد فقط

كيفية إنشاء موقع مجاني والتسويق من خلاله التسويق بإستخدام محركات البحث وكيفية الوصول إلي عملاؤك اسرع من منافسيك . علم […]

December 4th, 2018

Python examples

“”” use python while loop to print the following output ***** **** *** ** * “”” x = 5 while […]

December 3rd, 2018

امتحان مهارات البحث علي الانترنت

Click here
November 19th, 2018

Quiz 3

ما هو محرك البحث ؟ ما هي أهم خدمات جوجل ؟

November 19th, 2018

Quiz 2

مميزات وعيوب البحث الالكتروني ؟