#include <iostream>
#include <iomanip>
using namespace std;
int main() {
double income, rent, utilities, groceries, transportation, entertainment;
double totalExpenses, savings;
// Input monthly expenses
cout << "Enter your monthly income: $";
cin >> income;
cout << "Enter your monthly rent or mortgage payment: $";
cin >> rent;
cout << "Enter your monthly utilities costs: $";
cin >> utilities;
cout << "Enter your monthly groceries expenses: $";
cin >> groceries;
cout << "Enter your monthly transportation expenses: $";
cin >> transportation;
cout << "Enter your monthly entertainment expenses: $";
cin >> entertainment;
// Calculate total expenses and savings
totalExpenses = rent + utilities + groceries + transportation + entertainment;
C++ 个人消费管理系统
最新推荐文章于 2023-06-24 17:22:58 发布
本文介绍了如何使用C++编程语言设计并实现一个个人消费管理系统。该系统能够记录用户的消费记录,进行分类统计,并提供预算管理功能,帮助用户有效控制和规划日常支出。
摘要由CSDN通过智能技术生成