//------------------------------------------------------------------ // // A program that illustrates some things about arrays // // Simon Parsons // April 22nd 2007. // //------------------------------------------------------------------ //------------------------------------------------------------------ // // Link the necessary libraries #include using namespace std; //------------------------------------------------------------------ // // The main method int main() { // Initialisation int age[8] = {5, 10, 15, 20, 25}; double number[5] = {5.0, 10.1, 20.2, 30.3}; char sentence[30] = {'H', 'e', 'l', 'l', 'o', ' ', 'm', 'a', 't', 'e'}; int counter; int sum = 203; int count = 20; double average; // Show what initialisation does. cout << "Here are the arrays" << endl; for(counter = 0; counter < 8; counter++) { cout << age[counter] << " "; } cout <