Question: c. program ENGR 1213L Lab Exercise #5 selection Structures programs to an online dropbox on D2L At the end of this lab period, you wil


c. program
ENGR 1213L Lab Exercise #5 selection Structures programs to an online dropbox on D2L At the end of this lab period, you wil be expected to turn in your "you re working onlaptop, you need to begin the lab by making sure the laptop is logged onto the nternet. Directions are on your desktop wallpaper. in this lab exercise, we are going to practice using a selection structure to direct the behavior of the program. Procedure Begin by opening a file in nano titled Labs.c This program is going to discern between different cases that can result from the quadratic formula, and will display different results depending on if the formula returns real, imaginary, ar no roots. This program will be making use of the square root the appropriate c libraries function as well as printf and scanf statements, so include Problem description: When a 2 order polynomial is arranged in the follawing form Ax +Bx+C-0 This is described as a quadratic equation in standard form. The quadratic equation can be solved for all possible inputs by applying the mathematical technique of "completing the square and then solving for x When this is done, the resulting formula is what is commonly referred to as the quadratic formula Our end goal with this program is to write a program that takes in the three coefficients, A, B, And C then computes and displays the solutions to the quadratic equation Depending on the values of the coefficients, there are three possibilities: If A is zero, the denominator of the OF is equal to zero, which means the formula cannot be applied to that problem. f B is zero, the solutions to the fomula are purely imaginary. (which means they consist of a number multiplied by the square root of -1, represented by the letter
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
