Question: Please help!!!!! can't figure out. Overview Write a program that solves quadratic equations. Description Write a program that solves for x in a quadratic equation
Please help!!!!! can't figure out. 

Overview Write a program that solves quadratic equations. Description Write a program that solves for x in a quadratic equation of the form az+bx+c=0 This is done by plugging in the values of a, b, and c into the Quadratic Formulas: -b + b2 - 4ac -b- b2 - 4ac - and 12 = 2a Notice that there are two formulas. This will calculate two different x values. Hint 1: You can perform a square root operation by raising to the 0.5 power. For instance: (10*x) **0.5 Will multiply x by 10 and take the square root of the result. Hint 2: If you are getting incorrect numbers, check to make sure you are using parentheses correctly! Note: Do not enter 0 as a value for a, since division by 0 is illegal and the quadratic formula is only defined when a is not 0. Objective The objective of this lab is to practice writing complex formulas using Python. Ex: If the input is: Enter a: 5 Enter b: 6 Enter c: 1 Then the output is: x1: -0.2 x2: -1.0 LAB ACTIVITY 16.5.1: LAB 4A: Expressions: Quadratic Formula 0/200 main.py Load default template... 1 a = int(input("Enter a: ")) 2 b = int(input("Enter b: ") 3 c = int(input("Enter c: ")) x1 = None #Replace None with your calculation of x1 6 x2 = None #Replace None with your calculation of x1 8 print("x1:",x1) 9 print("x2:",x2)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
