Jump to content

Programming Challenge: Simple Command-Line Budget Tracker (Jan 15, 2025)

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 146
  • Created
  • Last Reply

Create an account or sign in to comment

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.