C   Programming: From Problem Analysis to Program Design
C Programming: From Problem Analysis to Program Design
8th Edition
ISBN: 9780357238547
Author: D. S. Malik
Publisher: Cengage Limited
Expert Solution & Answer
Book Icon
Chapter 1, Problem 21SA

Explanation of Solution

Algorithm:

  1. Get the value of a

  2. Get the value of b

  3. Get the value of c

  4. Calculate determinant using the following formula:

       determinant = square root of (b * b - 4.00 * a * c)

  5. Find the roots using the following formula:

       If (determinant is more than 0)

        realRoot1 = (- b + determinant) / (2.00 * a)

        realRoot2 = (- b - determinant) / (2...

Blurred answer
Students have asked these similar questions
answer quikly
Computer Science What are the various search algorithms that can be adopted by an autonomous moving robot to scan a circular test area in a given minimum time.
# Computer Vision # Depth estimation
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
Principles of Information Systems (MindTap Course...
Computer Science
ISBN:9781305971776
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
Operations Research : Applications and Algorithms
Computer Science
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Brooks Cole