{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

09-21-09 - quadratic equation User will also be prompted to...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Iteration, Repetition Circle Computations Description This program computes the real roots of the quadratic equation. It illustrates these new concepts: 1. while loops controlled by user input 2. using string data as input and in boolean expressions 3. using the break statement to exit/end a loop 4. the if-then-else conditional statement Input User will supply 3 numbers, one at a time when prompted. These are the coefficients A, B, and C of the
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: quadratic equation. User will also be prompted to type a string to indicate if the program should end or continue. Output The program will print to the screen the real roots, or a message indicating there are no real roots. Termination The program will end when the user indicates it should via text input....
View Full Document

{[ snackBarMessage ]}