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,...
-
In bombarding atomic nuclei with proton "bullets," why must the protons be accelerated to high energies if they are to make contact with the target nuclei?
-
Find the value of the following numbers modulo 12 : 1. 34 2. 539 3. 156
-
Multiple Choice. Choose the best answer. 1. The FASBs objectives of financial reporting for not-for-profit organizations include all of the following except: a. Making resource allocation decisions....
-
Please solve this problem Problem 5-5A The trial balance of Valdez Fashion Center contained the following accounts at November 30, the end of the company's fiscal year. VALDEZ FASHION CENTER Trial...
-
A Codification Research Case on the Accounting for Software Development Activities Portfolio Milestone (30 points) Submit an outline and questions for your Portfolio Project. Prepare and submit the...
-
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...
-
Machine C was purchased five years ago for $200,000 and produces an annual real cash flow of $80,000. It has no salvage value but is expected to last another five years. The company can replace...
-
In each of the following statements, name the term defined or the items requested. Answers are listed at the bottom. 1. The seven operations and supply chain competitive dimensions. 2. It is probably...
-
The Public Company Accounting Oversight Board now has the responsibility for issuing standards for audits of public companies. At the time of writing this edition of the text-book, it had just issued...
-
The University Book Store sells books and other supplies to students in a state where the sales tax rate is 7 percent. The University Book Store engaged in the following transactions for 2008. Sales...
-
In 1983, Marta Giordano inherited the restaurant that her grandfather, Alberto Buranello, had established shortly after returning to his hometown of Boston after serving in World War I.1 For nearly a...
-
Enron paid Arthur Andersen \($46.8\) million in fees for auditing, business consulting, and tax work for the fiscal year ended August 31, 1999; \($58\) million in 2000; and more than \($50\) million...
-
You are analyzing bids from two companies. Company A has scored 85 points on the quality evaluation (out of a scale of 100 points), while company B has scored 95 points. The overall weighting your...
-
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)...
-
solution, theres alr ans . ABC Company manufactures three main products, X, Y, and Z, from a joint process. Joint costs amounted to P450,000. Additional information for June production follows: X...
-
1. Greyson Company wants to earn a 6% return on sales after taxes. The company's effective income tax rate is 40%, and its contribution margin is 30%. If Greyson has fixed costs of P240,000, what is...
-
step by step solution pls. ABC Inc. produces customized vans in a food carts order shop: [in November 1, the following balances appear in the inventory records: Finished goods P1?9,000 Work in...
Study smarter with the SolutionInn App