Computing: Free Pascal Programming

Programming Home   Home   Contact

Quadratic equations in one variable (eququad).


Description: The program solves quadratic equations in one variable (equations of the form ax^2 + bx + c = 0) by calculating the discriminant. The user may choose to display or not the complex roots (in the case, where the discriminent is less than 0) as well as the number of fractional digits to be displayed. After entering the equation coefficients a, b and c, the roots are calculated and displayed. Use the ESC key to terminate the program; any other key continuing with the next equation.

Free Pascal features: Number input with numeric-checking and default value, formatted output of real numbers, decision making on keyboard key pressed.

Screenshot:

Solving quadratic equations in 1 variable