Name Due Date Assignment Solutions to the quadratic equation Ax +Bx + C = 0 may...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Name Due Date Assignment Solutions to the quadratic equation Ax² +Bx + C = 0 may be calculated using the quadratic formulas: x = -B+B2-4AC 2A -B-√√B²-4AC 2A These formulas may be used, of course, only if the leading coefficient, A, is not zero. The number and type of solutions is determined by the value of the expression under the radical sign, B2-4AC, known as the discriminant: value of discriminant number of solutions kind of solutions positive 2 real zero 1 negative 2 real imaginary Your job is to write a program which will read the coefficients of a quadratic equation and, if the leading coefficient is non-zero, calculate and report the solutions. Since programming languages does not provide the imaginary type, you'll have to take appropriate steps to give imaginary results in the form shown. Just remember that every imaginary number is really determined by a pair of real numbers. Several sample runs appear on the next page; user input appears in bold type. The "*I" which appears in the output is simply written where necessary; the actual calculations involve only real results. You are not required to duplicate this output, but you should provide all information shown. Page 2 Your output, for running the program several times, may appear something like this. John Smith This program will provide solutions for an equation of the form A*x^2 + B*x + C = 0, where A, B and C are integers, and A is not equal to zero. Enter A, B and C 2 -5 -3 The two real solutions are and x = 3.0000E+00 x = -5.0000E-01 Press ENTER to terminate. John Smith This program will provide solutions for an equation of the form A*x^2 + B*x + C = 0, where A, B and C are integers, and A is not equal to zero. Enter A, B and C 2 -5 4 The two imaginary solutions are x = and x = 1.2500E+00 1.2500E+00 Press ENTER to terminate +(6.6144E-01) *I (6:6144E-01) *I John Smith - This program will provide solutions for an equation of the form A*x^2 + B*x + C = 0, where A, B and C are integers, and A is not equal to zero. Enter A, B and C 1 -8 16 The one real solution is Press ENTER to terminate John Smith x = 4.0000E+00 This program will provide solutions for an equation of the form A*x^2 + B*x + C = 0, where A, B and C are integers, and A is not equal to zero. Enter A, B and C 038 No solutions will be calculated for a leading coefficient of 0! Press ENTER to terminate. Name Due Date Assignment Solutions to the quadratic equation Ax² +Bx + C = 0 may be calculated using the quadratic formulas: x = -B+B2-4AC 2A -B-√√B²-4AC 2A These formulas may be used, of course, only if the leading coefficient, A, is not zero. The number and type of solutions is determined by the value of the expression under the radical sign, B2-4AC, known as the discriminant: value of discriminant number of solutions kind of solutions positive 2 real zero 1 negative 2 real imaginary Your job is to write a program which will read the coefficients of a quadratic equation and, if the leading coefficient is non-zero, calculate and report the solutions. Since programming languages does not provide the imaginary type, you'll have to take appropriate steps to give imaginary results in the form shown. Just remember that every imaginary number is really determined by a pair of real numbers. Several sample runs appear on the next page; user input appears in bold type. The "*I" which appears in the output is simply written where necessary; the actual calculations involve only real results. You are not required to duplicate this output, but you should provide all information shown. Page 2 Your output, for running the program several times, may appear something like this. John Smith This program will provide solutions for an equation of the form A*x^2 + B*x + C = 0, where A, B and C are integers, and A is not equal to zero. Enter A, B and C 2 -5 -3 The two real solutions are and x = 3.0000E+00 x = -5.0000E-01 Press ENTER to terminate. John Smith This program will provide solutions for an equation of the form A*x^2 + B*x + C = 0, where A, B and C are integers, and A is not equal to zero. Enter A, B and C 2 -5 4 The two imaginary solutions are x = and x = 1.2500E+00 1.2500E+00 Press ENTER to terminate +(6.6144E-01) *I (6:6144E-01) *I John Smith - This program will provide solutions for an equation of the form A*x^2 + B*x + C = 0, where A, B and C are integers, and A is not equal to zero. Enter A, B and C 1 -8 16 The one real solution is Press ENTER to terminate John Smith x = 4.0000E+00 This program will provide solutions for an equation of the form A*x^2 + B*x + C = 0, where A, B and C are integers, and A is not equal to zero. Enter A, B and C 038 No solutions will be calculated for a leading coefficient of 0! Press ENTER to terminate.
Expert Answer:
Answer rating: 100% (QA)
Sure I can help you with that Heres a Python program that reads the coefficients of a quadratic equa... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
A company's average collection period is 30 days and its average payment period is 45 days. If its annual sales are $1,000,000, what is the company's net working capital?
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
What are the essential differences between victim and annex caches?
-
A cyclotron is sometimes used for carbon dating, as described in Chapter 44. Carbon-14 and carbon-12 ions are obtained from a sample of the material to be dated, and accelerated in the cyclotron. If...
-
What is a compound journal entry?
-
Retro Furniture Ltd suffered a severe drop in sales and profit performance for the year ended 30 June 2025. The income statement revealed that net sales were \($1\) 500 000 with a profit of \($310\)...
-
Some Internet retailers track whether its customers have recently visited popular price-comparison sites. Why might these retailers offer different prices to those who have and have not recently...
-
Based on the following memo, could you help me identify the key facts? Then could you help me with the assignment described at the end? TO: Associate FROM: I.M. Shirley Wright, Partner DATE: October...
-
Which series has the highest beta. BraveNewCoin Liquid Index for Bitcoin 1D BNC Trading Brave Ne Yellow Green Blue Orange
-
Triangle Ltd is an ASX listed company which aims to acquire 100% shares of an unlisted firm, Square Ltd, both of which operate in the same industry. Triangle capital structure comprises of 50% Debt...
-
Question: How does the saving rate of middle-career individuals compare with that of retirees? Please explain the economic reasoning.
-
Argentina : review the macro indicators and make a relevant forecast You are representing an international company that would like to invest in local real estate designated for rental for low income...
-
Define the three theoretical perspectives and sociological imagination on divorce which are Structural Functionalism, Symbolic Interactionism, and Conflict Perspective. Give three example of each as...
-
Rover plc's Income Statement for the year ended 31 December 2020 and the Statements of Financial Position as at 31 December 2019 and 2020 are as follows: Income Statement for the year ended 31st...
-
what ways do feminist theorists engage with the intersectionality of gender, race, class, sexuality, and other axes of identity to analyze and challenge systems of oppression and privilege?
-
19 of 34 Ruberion Network charges 9500 monthly cable connection fee plus P^(125) for each hour of pay -per -view (PPV ) event regardless of a full hour or fraction of an hour. What is the monthly...
-
For each equation, (a) Write it in slope-intercept form (b) Give the slope of the line (c) Give the y-intercept (d) Graph the line. 7x - 3y = 3
-
In 2012, Gale and Cathy Alexander hosted an exchange student, Axel Muller, for 9 months. Axel was part of International Student Exchange Programs (a qualified organization). Axel attended tenth grade...
-
Dr. George E. Beeper is a single taxpayer. He lives at 45 Mountain View Dr., Apt. 321, Spokane, WA 99210. Dr. Beeper's Social Security number is 775-88-9531. Dr. Beeper works for the Pine Medical...
-
Ann hires a nanny to watch her two children while she works at a local hospital. She pays the 19-year-old nanny $125 per week for 48 weeks during the current year. a. What is the employer's portion...
-
The NCAA is described as a cartel. In what way is it a cartel? What is the product being produced? How does the cartel stay together?
-
What is the cost to a firm in an oligopoly that fails to take rivals actions into account?
-
The cement industry is an example of an undifferentiated oligopoly. The automobile industry is a differentiated oligopoly. Which of these two is more likely to advertise? Why?
Study smarter with the SolutionInn App