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: 56% (16 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,...
-
Jerry Rice and Grain Stores have $4,780,000 in yearly sales. The firm earns 4.5 percent on each dollar of sales and turns over its assets 2.7 times per year. It has $123,000 in current liabilities...
-
Describe how those who contract AIDS are discriminated against.
-
Figure is a system sequence diagram for the use case Record dental procedure in the dental clinic system. Do the following: a. Develop a first-cut sequence diagram, which only includes the actor and...
-
Menu Assignment for the Steak Restaurant For this portion of the assignment, you will continue the development of your restaurant concept with the creation of a menu. The menu should contain...
-
You are to design a 11001 sequence detector from a logic input X with a Moore system and using D flip flops. 1) Draw a state diagram with a minimal number of states. 2) find a state table with a...
-
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...
-
Find a power series representation for the function and determine the interval of convergence. f(x) x-1 x + 2
-
Elevator Speech - Ethics Philosophy. An elevator speech is very often a kind of speech that talks about "Your" thoughts, beliefs or experience about the subject, with references to articles and...
-
Individual Social Media Analysis Assignment: This week, each group member will select a different social media platform as the subject for an individual social media assignment. I am looking for ...
-
The first challenge is to help Rita to achieve the following: 1- Prepare Personal Cash Flow Statement. 2- Personal Balance Sheet. 3- Calculate the current Ratio, debt to assets ratio and savings...
-
Explain any five advantages of franchising for the franchisors. provide and illustrate your points with real - world examples. Provide at least two examples.
-
The net present value (NPV) for a project is the present value of the cash flows generated by the project minus the initial investment in the project. Assume that a firm takes on a project that...
-
Mobile Processes, Inc., a U.S. company, made network management devices. To test the demand for the devices in Asia, Mobile exported the products to Asian markets. When the test proved successful,...
-
Catalytic hydrogenation of naphthalene over PdC results in rapid addition of 2 moles of H 2 . Propose a structure for this product.
-
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)...
-
ABC Inc. curently has a share price of $44. If they are paying a dividend of $1.13, with a cum dividend date of November 1, would would you expect their share price to be on November 2nd? Please give...
-
Does China benefit from a weak currency?Does Us benefit from a strong currency? Why? Please explain
-
You purchased 10 ASD June 45 puts and the company declares a 10% stock dividend. How are the terms of the option contract then changed?
Study smarter with the SolutionInn App