(Solved):Objective: This assignment will allow you to practice with for input/output and solve a problem using primitive variables. Overview: You are going to write a program to calculate roots of quadratic… View Answer…

 

Question

Objective: This assignment will allow you to practice with for input/output and solve a problem using primitive variables.

Overview: You are going to write a program to calculate roots of quadratic equations in the form: {eq}ax^2+bx+c=0

{/eq}

For simplification, A, B, and C can be just integers. Formula to solve for a quadratic equation is:

{eq}displaystyle x=frac{-bpm sqrt{b^2-4ac}}{2a}

{/eq}

Specification: Your program will clearly ask users for their names, and politely acknowledge it. It will then

Scroll to top