Programmer-defined functions, area

This assignment tests your ability to create your own functions.

Begin by studying our note on achieving program modularity by defining your own functions.

Write a function that has two single-precision arguments, height and width, and returns the single-precision area of a rectangle. Use it in an area program. When it is working, print a screen shot showing the area of a 112 by 207 rectangle and a listing of all your code.


Disclaimer: The views and opinions expressed on unofficial pages of California State University, Dominguez Hills faculty, staff or students are strictly those of the page authors. The content of these pages has not been reviewed or approved by California State University, Dominguez Hills.