Homework Assignment 2

Due : 9.30 am, February 22, 2000.


Problems from Chapters 6 and 7 of Austin and Chancogne.

  1. Solve problem 7.8 in Austin/Chancogne.

  2. Repeat problem 7.8 in Austin/Chancogne, but this time design the program architecture so that the cube root calculation is contained within a function cubeRoot(). A suitable function declaration would be:
        double cubeRoot( double );
    

  3. Solve problem 6.3 in Austin/Chancogne. This problem is not as difficult as it first seems -- the equation of equilibrium is simply a cubic equation that always has one real root in the desired range. Note. Students from the Business School should see Mark Austin if they need a little bit of help to find the equation of equilibrium.

For each program, hand in a copy of the program source code, and samples of the program input and output.


Developed in February 2000 by Mark Austin
Copyright © 2000, Departments of Civil and Mechanical Engineering, University of Maryland