Consider the equation Ax 2 + B = 0. If B/A < 0, this equation has

Question:

Consider the equation Ax2 + B = 0.

● If B/A < 0, this equation has two solutions. 

The solutions are:

(1) X1 = Sqrt(–B/A)

(2) X2 = −Sqrt(–B/A)

● If B/A = 0, this equation has one solution which is X = 0

● If B/A > 0, this equation has no real number solutions

Write a program to have the user input any numbers for the coefficients, A and B, for this equation. If A = 0, terminate the program. Otherwise, solve the equation.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Prelude To Programming

ISBN: 9780133741636

6th Edition

Authors: Stewart Venit, Elizabeth Drake

Question Posted: