Question: Write a program using C++. Please include a screenshot of the output as well. Their should be different screenshots for each section. thank you! Use


Write a program using C++. Please include a screenshot of the output as well. Their should be different screenshots for each section. thank you!

Use the equations for part 4 that are in the picture attached(whiteboard)
4) If root_type is 2 then ask the user for the repeated root. Evaluate the quadratic equation for the given root, print proper message to indicate how close the evaluation is to 0. Here a=1, b=-5, Enter repeated root: 2 root 1-2 root 2 2 solution for repeated root = 2 Solution is not acceptable for the repeated root 4) If root_type is 3 then ask the user for the complex roots. Evaluate the quadratic equation for the given roots. Print proper message to indicate how close the evaluation is to 0. Here a-2, b-3, c-4. Equations will be given in the class on how to evaluate the complex roots. Enter real part of root 1: -0.75 Enter imaginary part of root 1: 1.199 root 1--0.75 t j1.199 root 2-0.75 j1.199 Solution for root 1 0.000202 Solution is acceptable for root 1 Solution for root 2 0.000202 Solution is acceptable for root 2 if imaginary part is negative such as -1 .199 then print- j1.199 instead of+ j-1.199
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
