INTRODUCTION TO ARRAYS

CENG198

Lab Exercise #6

PART I.

Syntax of arrays: Write a program, and inside this program, define an integer array of size 5 and a character array of size 5, and fill those arrays with some values. Show your work to your instructor.

PART II.

Operations Using Arrays: Define an integer array of size 100. Assign random values to that array, and after that, calculate the average and standard deviation(*) of the values in that array. Show your work to your instructor.

How to calculate standard deviation:

Step 1. Calculate the arithmetic mean.

Step 2. Calculate the standard deviation.