CSCI 201 Fall 2000

Assignment 2

Program 1: Work assignment number 4.3 on page 148 of the text

Write a program called minimum.cpp to perform the task described in problem 4.3. The final version of the program should contain 3 functions: 2 functions named min, one with 2 parameters and the other with 3 parameters, and a function called main. The function main should prompt the user for 3 integer numbers and use those numbers to test the function min. The program minimum.cpp must be turned in by transferring it to your ftp directory for this class. Only the source code file should be turned in and it must be named minimum.cpp.

Program 2: Work assignment number 4.11 on page 151 of the text

Write a program called bigchill.cpp to perform the calculation described in problem 4.11. The program bigchill.cpp must be turned in by transferring it to your ftp directory for this class. Only the source code file should be turned in and it must be named bigchill.cpp.

Programming Style

Note that 10% of your program grade is based on the readability of your program. This includes things like style, comments, and the naming of variables and functions. Make sure you include a comment at the top of each program with your name, course and purpose of the program specified.

// Name: YOUR NAME HERE // // Course: CSCI 201 // // Purpose: purpose of program here //

Submitting Programs

As stated above, the programs written for this assignment must be turned in by transferring the C++ source code files to your ftp directory for this class. Only the source code files (i.e., minimum.cpp and bigchill.cpp) should be turned in. You were shown how to transfer files to your class ftp directory in lab01, here is a quick repeat.