Monday, October 20, 2014

Reflection 8

I.Exercise
1.Re-code again the example in the clip.
File C:Demo
2.Implement functions to solve problems in reflection array
a.Input an positive integer n that indicated the number of element of array
Input n elements of array
b. Display array has just been inputted

c.Calculate sum of all elements
d.Sum of odd element
e. Average of even elements
f.Average of element at odd index
g. Main
File C;array
III. Propose your own example to pass array as a parameter in a function
Check number division 5
File C:example
IV. Reflection
I have more knowledge about array. Now, I can creat array as a parameter  in function . It is convenient when i code.  I will code shorter, faster and find  mistake when have problem.






No comments:

Post a Comment