CSCI 201 Fall 1999 Assignment 2

Program 1: Work assignment number 3.3 on page 96 of the text

Write a program called knots2mph.cpp to perform the conversion described in problem 3.3. The program knots2mph.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 knots2mph.cpp.

Program 2: Work assignment number 3.5 on page 96 of the text

Write a program called bottles.cpp to print the song as described in problem 3.5. The program must consist of at least 2 functions: main() and BottleVerse(); you may use more functions if you would like. Follow the instructions in Problem 3.5 carefully. The program must print 3 verses of the song each time it is called; the text in the first panel labeled OUTPUT near the top of page 96 constitutes one verse. The program bottles.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 bottles.cpp.