<< “] are out of order.” << endl;
15. a. double heights[10] = {5.2, 6.3, 5.8, 4.9, 5.2, 5.7, 6.7, 7.1, 5.10, 6.0};
b. int weights[7] = {120, 125, 137, 140, 150, 180, 210};
or
d. string seasons[4] = {“fall“, “winter“, “spring“, “summer“};
16. a. Valid. The size of list is 4.
b. Valid. The size of x is 10.
17. alpha[0] = 3, alpha [1] = 12, alpha [2] = -25, alpha [3] = 72,
18. a. for (int i = 0; i < 6; i++)
20. alpha: 1 3 5 7 9 -1 2 5 8 11
21. a. Correct.
22. a. Valid.