
Lesson 8-3: Functions with Value Parameters
Functions | 187
Name __________________________________________ Date _______________________
Section _________________________________________
Use program BoxesWithFunction for Exercises 1 through 3.
Writing boxes on the screen is fun. Program BoxesWithFunction is the shell of a program that
prompts the user to enter an integer number. When completed, this number is read and passed to
function Print as parameter numSigns. The function prints a box of dollar signs on the screen
that is numSigns by (numSigns / 2) in dimension. For example, if numSigns is 10, the following
box is printed on the screen:
$$$$$$$$$$ ...