Question: The code must be written in C++, and output as shown the same as below: a) Using the pseudo code and block diagram from the

 The code must be written in C++, and output as shown

The code must be written in C++, and output as shown the same as below:

the same as below: a) Using the pseudo code and block diagram

a) Using the pseudo code and block diagram from the class notes, write a program that finds real solutions of a quadratic equation (25 points) The program should solve a quadratic equation using numerical values of the coefficients a,b, and c. The values of the coefficients have to be inputted by user from keyboard. The program should produce the real solutions of the quadratic equation, x1 and x2, or give an error message if the real solutions do not exist. Program should print the equation on the screen, real solutions x1 and x2, if they exist, or an error message. Tip: this assignment requires using mathematical functions, so you need to include header file. b) Design and implement a test plan (explain how we can check whether the program gives correct results or not). Using designed test plan, test your code. If the testing reveals bugs, please explain what incorrect behavior you found, and how you fixed the code. (25 points) Enter the coeeficients of the quadratic equation ax2+bx+c=0 a=1 b=5 c=6.25 Equation (1)x2+(5)x+(6.25)=0 has one real solution: x1=2.5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!