Exercise 1 Solution
Declare a two-dimensional array which can be used to store a yearly budget. Each row of the array corresponds to a particular budgeted item like rent, electric, etc. There are at most 15 items to be budgeted. Each column of the array corresponds to a month, January, February, etc. Of course there are 12 columns corresponding to the 12 months of the year. All the data to be placed in the array consists of real numbers.
const int BUDGET_ITEMS = 15;
const int MONTHS = 12;
int budget[BUDGET_ITEMS][MONTHS];
Topic revision: r1 - 2018-02-21
- JimSkon