Develop, debug, and document a program to determine the roots of a quadratic equation, ax2 + bx
Question:
Develop, debug, and document a program to determine the roots of a quadratic equation, ax2 + bx + c, in either a high-level language or a macro language of your choice. Use a subroutine procedure to compute the roots (either real or complex). Perform test runs for the cases
(a) a = 1, b = 6, c = 2;
(b) a = 0, b = -4, c = 1.6;
(c) a = 3, b = 2.5, c = 7.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 58% (17 reviews)
Students could implement the subprogram in any number of languages The following Fortran 90 program ...View the full answer
Answered By
PALASH JHANWAR
I am a Chartered Accountant with AIR 45 in CA - IPCC. I am a Merit Holder ( B.Com ). The following is my educational details.
PLEASE ACCESS MY RESUME FROM THE FOLLOWING LINK: https://drive.google.com/file/d/1hYR1uch-ff6MRC_cDB07K6VqY9kQ3SFL/view?usp=sharing
3.80+
3+ Reviews
10+ Question Solved
Related Book For
Numerical Methods For Engineers
ISBN: 9780071244299
5th Edition
Authors: Steven C. Chapra, Raymond P. Canale
Question Posted:
Students also viewed these Numerical Analysis questions
-
Use Mullers Bairstows method to determine the roots of (a) (x) = - 2 + 6.2x 4x2 + 0.7x3 (b) (x) = 9.34 - 21.97x + 16.3x2 - 3.704x3 (c) (x) = x4 - 3x3 + 5x2 x - 10
-
Determine the roots of the following characteristic equations: (a) q(s) = s3 + 3s2 + 10s + 14 = 0. (b) q(s) = s4 + 8s3 + 24s2 + 32s + 16 = 0. (c) q(s) = s4 + 2s2 + 1 = 0.
-
The roots of the quadratic equation ax 2 + bx + c = 0 are given by a. Develop a pseudocode description of a program to compute both roots given the values of a, b, and c. Be sure to identify the real...
-
Given the monthly returns that follow, find the R2, alpha, and beta of the portfolio. Compute the average return differential with and without sign. Do not round intermediate calculations. Round your...
-
In a survey, subjects seeking a job were asked to whom they should send a thank-you note after having a job interview. Results were as follows: 40 said only the person they spent the most time with,...
-
Discuss the following: How you are an ethical person, and how your ethics informs your leadership in the early childhood field? How your ethics have guided you in the past in the field, or how you...
-
A company makes and sells a seasonal product. Based on a sales forecast of 2000, 3000, 6000, and 5000 per quarter, calculate a level production plan, quarterly ending inventory, and average quarterly...
-
Storm, Inc. purchased the following available-for-sale securities during 2014, its first year of operations: The market price per share for the available-for-sale security portfolio on December 31,...
-
Twyla Enterprises uses a computer to handle its sales invoices. Lately, business has been so good that it takes an extra three hours per night, plus every third Saturday, to keep up with the volume...
-
A sales representatives orders for May were 16 2/3% less than her April orders, which amounted to $51 120. (a) How much were the sales reps orders in May? (b) By what amount did her orders decrease?
-
Write a structured flowchart for prob.2.3
-
The cosine function can be evaluated by the following infinite series: Write an algorithm to implement this formula so that it computes and prints out the values of cos x as each term in the series...
-
1. In 1999, the NASDAQ Composite Index grew at a rate of 62.2% compounded weekly. Is this rate better or worse than 85% compounded annually? 2. Would you rather earn 3% interest compounded annually...
-
Tabletop Exercise (15%) Develop a tabletop exercise for your organization or community. The size and scope of your exercise can be whatever you need it to be in order for you to complete the...
-
Within the framework of the Porter Five-Forces Model of Competition, describe the competitive force of rivalry among competing sellers. What are some of the factors that increase the rivalry among...
-
The XYZ Corporation has decided to make some changes to help with the work-life balance of its employees. Currently, the organization has 40 employees: 25 full-time employees and 15 part-time...
-
Grocery prices tend to play a role in how people view inflation because of how frequent these purchases are for households. In the past four years grocery prices have jumped 25% which passes overall...
-
Bogg County is a rural area whose residents rely on farming for income. The most popular crop in Bogg County is tobacco, a very labor-intensive plant. To save money, many farmers employ Hispanic...
-
In its year-end earnings announcement press release, Optimistic Corp. announced that its earnings increased by $15 million relative to the previous year. This represented a 20% increase. Inspection...
-
What can scientists learn by comparing the fossilized skeletons of extinct primates with the bones of modern species?
-
Name each of the following aldoses. In part (a), work back to the Fischer projection and consult Fig. 24.3. In part (b), decide which carbons have configurations different from those of glucose, and...
-
Repeat Prob. 20.41 but determine the coefficients of the polynomial (Sec. 18.4) that fit the data in Table P20.41. Problem 20.41 0.5 0.5 V637 96.5 -20.5 20.5 96.5 637
-
The following data was collected for a cross-section of a river (y = distance from bank, H = depth, and U = velocity): Use numerical integration to compute the (a) average depth, (b) cross-sectional...
-
Develop a user-friendly computer program for adaptive quadrature based on Fig. 22.5. Test it by solving Prob. 22.10. Fig 22.5. FUNCTION quadapt(a, b) tol 0.000001 c= (a + b)12 fa-f(a) fc f(c) fb-f(b)...
-
Revenue Recognition and Sales Allowances accounting purposes ) . The goods are shipped from the warehouse on March 6 , and FedEx confirms delivery on March 7 . Ignore shipping costs, sales tax, and...
-
Ellis Perry is an electronics components manufacturer. Information about the company's two products follows: \ table [ [ , , , ] , [ Units produced,AM - 2 , FM - 9 , ] , [ Direct labor hours required...
-
Which of the following requirements to claim Earned Income Tax Credit is TRUE? The credit can be claimed under any filing status. The taxpayer must have a valid SSN for employment in the U.S., issued...
Study smarter with the SolutionInn App