#include #include #include using namespace std; int main() { double totalBudget = 0; double overBudget = 0; double expAmount = 0; int totalExp = 0; double expTotal = 0; int input; cout << "What is the amount of your monthly budget? "; cin >> totalBudget; cout << "Please enter the number of expenses you would like to add: "; cin >> input; vector expenses(input); for (int i = 0; i < input; ++i) { cout << "Enter amount for #" << (i + 1) << ": "; cin >> expenses[i]; expAmount += expenses[i]; } overBudget = totalBudget - expAmount; cout << fixed << setprecision(2); cout << "Your total expenses this month is: $" << expAmount << "\nYour over budget by: $" << overBudget << endl; return 0; }