5.2 Develop a Sub procedure to determine the real roots of the quadratic equation ax +...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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? 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?
Expert Answer:
Answer rating: 100% (QA)
Here is a VBA Sub procedure that calculates the real roots of a quadratic equation based on the give... View the full answer
Related Book For
Numerical Methods For Engineers
ISBN: 9780071244299
5th Edition
Authors: Steven C. Chapra, Raymond P. Canale
Posted Date:
Students also viewed these programming questions
-
A mortgage loan that would allow a borrower to purchase a home paying only the paperwork costs of the loan at closing could be called a A "liar" loan. B "zero-down" mortgage. C) All of the options...
-
This project is a continuation of the previous project. For a quadratic expression such as ax 2 + bx + c, a real root is any double number x such that ax 2 + bx + c = 0. For example, the quadratic...
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
In Canada, Canadian teachers and bosses and HIGH AUTHORITY FIGURES are not FEARED but RESPECTED. In CANADA TEACHERS, bosses and AUTHORITY FIGURES encourage feedback, OPINIONS and ENGAGE in discuss....
-
Government spending in the United States has grown over time and now accounts for more than forty percent of United States national income. Does this mean that government has been consistently...
-
The December 31, 2014, unadjusted trial balance for Tucker Photographers after the first month of operations is shown below: Required 1. Enter the unadjusted trial balance onto a work sheet. 2. Using...
-
Should governments be the principal sources of assistance for economic development and poverty reduction, or should philanthropy play the leading role? What are the advantages and disadvantages of...
-
Arrowhead School District No. 75 is located in Park County, south of Livingston, Montana, and consists of one school, Arrowhead School (School). For the 199798 school year, the School employed about...
-
On July 1, 2021, Larkin Co. purchased a $470,000 tract of land that is intended to be the site of a new office complex. Larkin incurred additional costs and realized salvage proceeds during 2021 as...
-
The firm's target capital structure is the mix of debt, preferred stock, and common equity the firm plans to raise funds for its future projects. The target proportions of debt, preferred stock, and...
-
Andy's yearly income is $ 4 0 , 0 0 0 . What would Andy's debt load be on a $ 1 5 , 0 0 0 personal loan? Would Andy's debt load follow the guidelines of the 2 0 / 1 0 rule? Provide a reason for Your...
-
Jackson County Senior Services is a nonprofit organization devoted to providing essential services to seniors who live in their own homes within the Jackson County area. Three services are provided...
-
Kristens Cookie Company You and your roommate are preparing to start Kristens Cookie Company in your on-campus apartment. The company will provide fresh cookies to starving students late at night....
-
Craig is a long - time employee working from home in a call center role. It is time for his quarterly review. You worked as Craig's peer when all positions were in the office and became friends with...
-
How unbiased literature, respectful representation and unbiased perspectives can provide a touchstone of truth to combat systemic racism. Combine unbiased literature, respectful representation and...
-
Twenty eight applicants interested in working for the Food Stamp program took an examination designed to measure their aptitude for social work. A stem-and-leaf plot of the 28 scores (sample data)...
-
The following information is for Montreal Gloves Inc. for the year 2020: Manufacturing costs Number of gloves manufactured Beginning inventory $ 3,016,700 311,000 pairs 0 pairs Sales in 2020 were...
-
Given the following data for Float Energy: a. Give the entries to record the abandonment of both Lease A and Lease B. b. Give the entries assuming instead that both Lease A and Lease B were proved,...
-
Gusher Oil Corporation obtained shooting rights only for \($10,000\) on 5,000 acres owned by Mr. Q and shooting rights coupled with an option to lease for \($12,000\) on 4,000 acres owned by Mr. S....
-
The following transactions relate to one lease: a. On March 10, 2017, Axis Petroleum paid delinquent property taxes of $2,000 on an undeveloped lease. Assume that these taxes are recoverable out of...
Study smarter with the SolutionInn App