Question: Write a pythonprogram that will calculate and output roots ofa quadratic equation. The formula will be written on the board in class. Values fora, b

Write a pythonprogram that will calculate and output roots ofa quadratic equation.

The formula will be written on the board in class.

Values fora, b and c should be input into threefloating pointvariables.

Your program should first display:

Hello

Thisprogram will ask you to enter 3numbers

(a, b and c) that will be used in the quadratic formula to

calculate the roots of an equation.

Enter a value for a

Enter a value for b

Enter a value for c

Validate your data(make sureais not zero andb.b>4.a.c)

Your program should display:

***************************************

* Root 1 isthe value of root1*

* Root 2 isthe value of root2*

***************************************

Use format to print root1 & root2 in a field of 7 positions with one digit after decimal point

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!