1. A Program needs many variables to store and process data, How does an array solve this problem?– An array can group similar data with one array that contains many elements2. How does the programmer access an item in an array?– They use the name and the index to access it.3. Mary is using an array of doubles to store an employee’s wage amounts for each day of the week(Monday through Friday). Draw a picture of this array with sample items and references to each one.–
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Jan | ||||||
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | ||