Question: please rewrite this program 1. Implement a program that stores the expenses incurred during a month, with a one- dimensional numeric array. 2. Add a
1. Implement a program that stores the expenses incurred during a month, with a one- dimensional numeric array.
2. Add a two- dimensional array of type character where you store the description of each of the expenses incurred in the month. Use the concept of parallel arrays.
3. Calculate the highest and lowest of the expenses, and print the description.
4. Define variables of type pointer pointing to the problem variables
5. Define a variable of type pointer that stores the first address of the numerical arrangement of expenses.
6. Do not use pointers in the two- dimensional array of descriptions.
7. Implement pointer notation in array element accesses numeric.
8. Do not implement functions
using nanospace std; Eint main() int budget, expense; int sun of expense =; cout ce "Enter the anount you have budgoted for the month: "; cin > budget; cin budget; while (1) cout "please enter your expense, enter to exit: "; cin expense; if (expense = ) brealt; else sum_of_expense = sun_of_expense + expense; if (sun_of_expense > budget) cout "You are overbudget by anount: " \& sum_of_expense - budget; 1 else } cout s "You are underbudget by anount; " \& budget-sum_of_oxpense; 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
