Dana Vrajitoru
C101 Computer Programming

Lab 9

Date: Thursday, March 25, 2004.

Ex. 1. Download the program seen in class from the following web address:

lab9.cpp

a. Modify the function fortune_tell to add a few more choices.

b. Modify the main function so that the fortune tell function call happens inside a do loop that asks the user if they want to run the program again, and continue while the user answers 'y' or 'Y' (use a character variable). Note that the call of the function srand should not be inside the loop (we should call this function only once).