Fundamentals of Computer Programming 2 Practice Problems – January 27, 2003

Instructor: Ravi Kant Ryerson 177 e-mail: ravikant@cs.uchicago.edu Office Hours : Wed, Fri : 1:00PM - 1:45PM

TA: Xiaofei He Eck 2-B e-mail: xiaofei@cs.uchicago.edu

Practice problems for today :

1. Try the homework problems for the other section ...

2. Write a function that takes an array (of size 10) of positive integers and outputs a horizontal bar graph made of asterices. e.g. if the array elements are 8,12,9,... the output should be :

******** ************ ********* ⋯

You can assume that all the integers in the array are less than 20.

3. (Challenge)Can you generate a vertical bar graph for the above data ?