Monthly Household Expenses – Create arrays (maximum size 15) that will hold the
following information: category and amount. Allow the user to enter the category (ex.
Water bill) and the corresponding amount spent on it every month. After the data entry,
display the household categories and its corresponding amount in descending order
(highest amount first) and the total amount spent in a month. Please validate the data:
categories must not be blank and amount should not be less than 0. Entries may be less
than 15 but not less than 0.
tyia maraming salamat po
following information: category and amount. Allow the user to enter the category (ex.
Water bill) and the corresponding amount spent on it every month. After the data entry,
display the household categories and its corresponding amount in descending order
(highest amount first) and the total amount spent in a month. Please validate the data:
categories must not be blank and amount should not be less than 0. Entries may be less
than 15 but not less than 0.
tyia maraming salamat po
Last edited: