% pseudo_code_gg250_lab_04_1 % Get input parameters a, b, c % if a == 0 % return null set for roots; % stop % Compute argument under radical sign in quadratic equation % if radical argument > 0 % Solve quad. equation for two root % else if radical argument == 0 % Solve quad. equation for two root % else if radical argument < 0 % No roots - set roots to null set; % Find the number of roots, n % Set the y-values at the roots (y_roots) % Set reasonable domain for x % Calculate y over domain of x % Plot the curve and roots % Label and title plot % Return values of roots and n