CPTR-142 Homework #4 - Due Friday 4/11/14


Write a program to do what is defined in problem 2 from chapter 3 (page 138) in the text. We will call this program 4a. A static array will be used in this program.

Then modify program 4a to produce program 4b. This will be the same program except modified to use a dynamically created array. Delete the array before ending the program.

Bring a printout of your main.cpp file to class. Email the main.cpp files to me but as you do that change the name to: name_program4a.cpp or name_program4b.cpp where name represents your last name. And between name and program4 is an underscore. I appreciate not having spaces in your file names.


Larry Aamodt PhD, PE
Professor of Engineering and Computer Science
Walla Walla University
Contact:
via email: AamoLa (at) wallawalla.edu
via phone: x2058