Jump to content

Featured Replies

Posted

Build a command-line budget tracker that helps users manage their income and expenses.

Basic Requirements:

  1. Allow users to add income and record expenses.

  2. Track the current balance based on income and expenses.

  3. Provide a summary of all transactions (income and expenses) at any time.

Bonus Features:

  • Allow users to categorize transactions (e.g., "Rent", "Groceries", "Utilities").

  • Add a search function to filter transactions by category or amount.

  • Save the transaction history to a file and load it when the program starts.

Example Output:

Welcome to the Budget Tracker!
1. Add Income
2. Record Expense
3. View Summary
4. Exit

Enter your choice: 1
Enter income amount: 2000
Income recorded.

Enter your choice: 2
Enter expense description: Rent
Enter expense amount: 800
Expense recorded.

Enter your choice: 3
Summary:
Income: $2000
Expenses: $800
Balance: $1200
  • Views 63
  • Created
  • Last Reply

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Important Information

Terms of Use Privacy Policy Guidelines We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.