Previous: References:
Up: 15 Engineering Programming Examples
Previous Page: References:

15.5 Problems

  1. Write a menu driven program that allows the user to specify a matrix operation: add, subtract, multiply.

  2. Write a simple calculator program that performs complex number arithmetic. The input should be an operand, followed by an operator, followed by an operand. The output should be the result of applying the operator to operands.

  3. Repeat 2, but allow the user to continue entering operators and operands in sequence. The user may also request that a value should be saved for later use.

  4. Evaluate a polynomial with specified coefficients for a complex value of the variable. The highest degree of the polynomial is 10. The user must enter coefficient and exponent pairs for the polynomial, and specify the value of the variable for which the polynomial is to be evaluated.

  5. Consider a rational function of a variable : where and are polynomials in a variable, , with real coefficients. Evaluate the function for a value of . Evaluate the function for different values of . Plot the magnitude and angle of the values.

tep@wiliki.eng.hawaii.edu
Sat Sep 3 07:27:41 HST 1994