Question: Write a program that: - Sets itself up to read user input from the keyboard. - Asks the user to input the a, b, and

Write a program that: - Sets itself up to read user input from the keyboard. - Asks the user to input the "a", "b", and "c" for the equation they want to solve. - Calculates the two solutions using the quadratic formula (if the solutions are real). Note that your code does not need to work for imaginary solutions!. - Prints out the solutions to the console as follows: For ax2+bx+c=0, the two solutions are x=N and x=M assuming N and M are your solutions. Tips: - a,b,c and other variables should all be type double in this Lab. - You can't take the square root of a number, but we 're not going to bother with detecting this
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
