Alternate Assignment - User-Defined Functions

w/Call by Reference Parameters

Due:  8AM, Dec 11th, 2009

40 Points

Programming Projects (pages 297-298)

  1. Problem 1 -- Note this program requires three different functions. The function prototypes are up to you, but they should be similar to the following:
                            void getInput(int &hours, int &minutes);
                            void convertTime(int inHours, int &outHours, char &amORpm);
                            void printOutput(int theHours, int theMinutes, char amORpm);

  2. Problem 4 -- In this program you will write at least three different functions (or five if you provide a separate fucntions for input and output as you did in Problem 1). Those three functions could be called: stats(), average(), and standardDeviation(). The function stats() will call the other two functions to compute the average and standard deviation of the given four scores. Please note, I have not given you the complete prototype for the three functions referenced here, i.e., I've only given you the names of the functions, not their parameters or return types.

  3. Problem 5

  4. Problem 6

To turn in the assignment, submit the functions and give your instructor a printed copy of each at the beginning of class (as you have for other assignments).