Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

need the code in c just c not c# or c++, need to see how to work it works out Objective Practice .else statements Background

image text in transcribed

need the code in c

just c not c# or c++, need to see how to work it works out

Objective Practice .else statements Background in a previous homework we evolved quadratic equations, that is, we calculated yax fargenvalues af , and in this homework, we sve quadratic equations, which means the find the roots of the equation or in other words we find x where ar + forgive values of 0,6, and c. Necall the quadratic formula: - by- The expresion under the square root the quantity - Ac) to called the crit. If it is positive there are two real roots if it is zero there is one real roots and if it is negative, there are two complex Assignment 1. Write a function that solves aud i o, Elven valmofa, b, and return void and take parameters abandwhich are all doubles the function should Your function should print the roots) of the equation with two decimal places in a way similar to this obviously substituting the correct value foron x2. To do this, you'll need to test the discriminant for being positive, estiver er x 0.13 and 2-10 there are two reas) Of there is one real root If there are two comprats) xi -0.13.0.47 and 2-0.3-0.47 You can either or as the imaginary unit, 1. in electrical and computer engineering jis often used instead of ito avoid confusion where is used as a symbol for current. 2. in mainil. call your function to solve the following equations 3x + 2x + 1 = 5x + 2x - 70 +2x+10 + x + 2-0 22. 2x=0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

More Books

Students also viewed these Databases questions

Question

Write a Python program to check an input number is prime or not.

Answered: 1 week ago

Question

Write a program to check an input year is leap or not.

Answered: 1 week ago