Computer Programming (I)

Programming Assignment 3.5 (1D)

Nov. 21, 2006

 

本次作業驗收時間為11/28, 6:30pm11/29freefall上公佈答案,未驗收同學12/5上課時間考筆試。

1.         The sequence a(i) is defined below, write a recursive program to compute a(i).

2.         The sequence b(i) is defined below, write a recursive program to compute b(i).

3.         The sequence c(i) is defined below, write a recursive program to compute c(i).

4.         Fill in an array of size 100 with random integers. Compute the sum of these integers recursively.

5.         Fill in an array of size 100 with random integers. Find the maximum of these integers recursively.

6.         Fill in an array of size 100 with random integers. Count the number of even integers in the array recursively.

7.         Modify writeVertical to display digits of a number in reverse order.