20. This python program doesn't work. You need to find and fix ERROR. (3 points) rewrite...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
20. This python program doesn't work. You need to find and fix ERROR. (3 points) rewrite wrong line(s) to fix this program # Solve the quadratic equation ax**2+bx+c=0 #import complex math module #import math - a float(input('Enter b-float(input('Enter c-float(input('Enter d=(b**2)-(4*a*c) a: ')) b: ')) c: ')) soll= (-b-cmath.sqrt(d))/(2*a) sol2=(-b+cmath.sqrt(d))/(2*a) print("The solution are (0) and {1}'.format(soll,sol2)) 20. This python program doesn't work. You need to find and fix ERROR. (3 points) rewrite wrong line(s) to fix this program # Solve the quadratic equation ax**2+bx+c=0 #import complex math module #import math - a float(input('Enter b-float(input('Enter c-float(input('Enter d=(b**2)-(4*a*c) a: ')) b: ')) c: ')) soll= (-b-cmath.sqrt(d))/(2*a) sol2=(-b+cmath.sqrt(d))/(2*a) print("The solution are (0) and {1}'.format(soll,sol2))
Expert Answer:
Answer rating: 100% (QA)
The image youve provided contains a Python program that aims to solve a quadratic equation of the fo... View the full answer
Related Book For
Discovering Advanced Algebra An Investigative Approach
ISBN: 978-1559539845
1st edition
Authors: Jerald Murdock, Ellen Kamischke, Eric Kamischke
Posted Date:
Students also viewed these programming questions
-
For this discussion, will reference your course textbook in addition to your results from the Self-Assessment: Which Benefits Are Important to You? Describe the benefits package at your organization...
-
1. Given the following system of linear equations: x-3x=-2 -3x+y+6=3 2x-2y+(a-4)=b-3 (a) Determine the conditions on a and b if (i) the system has no solutions (ii) the system has only one solution...
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Presented below is selected information related to the financial instruments of Dawson Company at December 31, 2020. This is Dawson Company?s first year of operations. Instructions a. Dawson elects...
-
How are different bond issues reported in the financial statements of a corporation?
-
A manufacturer of liquid soap produces a bottle with an advertised content of 310 milliliters (mL). Sixteen bottles are randomly selected and found to have the following contents, in mL. A normal...
-
Accepting major credit cards requires the seller to pay a service charge. What advantages does the seller obtain by accepting major credit cards? LO27
-
Chad Davis, vice president for operations at C&C Sports, is considering different strategies for managing the companys inventory. Earlier in the year, the company implemented a more systematic...
-
Madison Company issued an interest - bearing note payable with a face value of $ 7 , 2 0 0 and a stated interest rate of 8 % to Metropolitan Bank on August 1 , Year 1 . The note carried a one - year...
-
4 S Stephanie produces earrings. She sells each pair of earrings for $6. The table below shows how many pairs of earrings can be produced, depending on the number of workers Stephanie hires. Fill in...
-
The following frequency table summarizes the number of bicycles sold on Saturdays during a 3-month period. Estimate the mean of the data set summarized in the frequency table. Round your answer to...
-
As manager of Community Outreach Services, you oversee the youth outreach program. CCHC has just received funding for a new Aboriginal Outreach Worker (Job Description is below). You need to fill...
-
In a frustrated response to the conduct of religious fundamentalist TLM students, a group of social activist high school students calling themselves "National Organization for Students Against...
-
SecuriCorp operates a fleet of armored cars that make scheduled pickups and deliveries in the Los Angeles area. The company is implementing an activity - based costing system that has four activity...
-
A dairy operation processes raw milk into two main products: skim milk and cream. Both of these products are salable at the end of the joint process, worth $14,000 and $24,000, respectively. The skim...
-
To enhance the performance and the cost efficiency of its vessels, the firm makes additional investments in its fleet on a regular basis, typically every five years. Given the liquidation expected at...
-
Minden Company is a wholesale distributor of premium European chocolates. The company's balance sheet as of April 30 is given below: Minden Company Balance Sheet April 30 Assets Cash Accounts...
-
Explain the term "Equivalent Units". Why are they calculated in process costing? [4 Marks] [minimum 350 words]
-
Consider the line that passes through the points (- 5.2, 3.18) and (1.4, - 4.4), as shown. a. Find an equation of the line. b. Write an equation of the parallel line that is 2 units above this line....
-
In an isosceles triangle, one of the base angles measures 42. The length of each leg is 8.2 cm. a. Find the length of the base. b. Even though you are given one angle and two sides not including the...
-
This table shows the number of seats on various types of airplanes, the planes' cruising speed, and their operating cost per hour. a. How strongly is the number of seats related to operating cost?...
-
(Efficient frontier) This question relates to the data in the previous question. Calculate and graph the efficient frontier of the stock portfolios composed of stocks X and Y.
-
(Minimum variance portfolio) What will be the weights, the expected return, the variance, and the standard deviation of the minimum variance portfolio combining the stocks below? A B C 234567 X Y 3...
-
(Efficient frontier) This question relates to the data in the previous question. Calculate and graph the efficient frontier of the stock portfolios composed of stocks X and Y. A B C 1 RETURN...
Study smarter with the SolutionInn App