Answered step by step
Verified Expert Solution
Question
1 Approved Answer
programming language Myt x FENG X Mob My My! X wm Lab X Drop Mior x http Micr x bbhosted.cuny.edu/webapps/blackboard/execute/content/file?cmd=view&content_id=44389716.18 course id= 1839575 1&frame 77
programming language
Myt x FENG X Mob My My! X wm Lab X Drop Mior x http Micr x bbhosted.cuny.edu/webapps/blackboard/execute/content/file?cmd=view&content_id=44389716.18 course id= 1839575 1&frame 77 LED 2 // Description Write a program that will evaluate the roots of a quadratic function. Remember the quadratic function may have 3 types of roots (1) Two real roots, (2) 1 Real root or (3) Two imaginary roots / 17 el 1/ 1. Declare the needed variables // 2. Collect the user input (variables a, b and a // 3. Find first the discrimant: b^2 - 4ac // 4. Based on the discriminant find the roots. 11 (1) When discriminant > 0, 2 real roots 11 (2) When discriminant - 0, 2 real root 17 (3) When discriminant #include
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started