Question: 5.2 Develop a Sub procedure to determine the real roots of the quadratic equation ax + bx + c = 0. Recall that the

5.2 Develop a Sub procedure to determine the real roots of the

5.2 Develop a Sub procedure to determine the real roots of the quadratic equation ax + bx + c = 0. Recall that the real roots can be determined with the quadratic formula -b b2-4ac 2a (5.5) (5.6) In VBA, this formula would be implemented as x1 = (-b + Sqr(b ^ 2 - 4 * a * c)) / (2 * a) (-bSqr(b 2 - 4 * a * c)) / (2 * a) x2 = Test your program for the following cases: a = -1, b = 8, c = 2; and a = 1, b = 4, c = 1. In addition, try a case that yields an imaginary root: a = 7, b = 3, c1. What happens?

Step by Step Solution

3.41 Rating (148 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is a VBA Sub procedure that calculates the real roots of a quadratic equation based on the give... View full answer

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

Document Format (2 attachments)

PDF file Icon

663df56326acc_960772.pdf

180 KBs PDF File

Word file Icon

663df56326acc_960772.docx

120 KBs Word File

Students Have Also Explored These Related Programming Questions!