ASSIGNMENT 1 PART 2: BUDGET MANAGEMENT APPLICATION (DART CLI) import ‘dart:io’; void main() { List> incomeList = []; List> expenseList = []; bool isRunning = true; print(“=== Budget Management Application ===”); while (isRunning) { print(“an option:”); print(“1. Add Income”); print(“2. Add Expense”); print(“3. View Summary”); print(“4. Exit”); String? choice = stdin.readLineSync(); if (choice == "1") { print("Enter income description:"); String description = stdin.readLineSync()!; print("Enter income amount:"); double? amount = double.tryParse(stdin.readLineSync()!); if (amount != null && amount > 0) { incomeList.add({description: amount}); print("Income added successfully!"); } else { print("Invalid amount. Please enter a positive number."); } } else if (choice == "2") { print("Enter expense description:"); String description = stdin.readLineSync()!; print("Enter expense amount:"); double? amount = double.tryParse(stdin.readLineSync()!); if (amount != null && amount > 0) { expenseList.add({description: amount}); print("Expense added successfully!"); } else { print("Invalid amount. Please enter a positive number."); } } else if (choice == "3") { double totalIncome = 0; double totalExpense = 0; for (var income in incomeList) { totalIncome += income.values.first; } for (var expense in expenseList) { totalExpense += expense.values.first; } double net = totalIncome - totalExpense; print("\n=== Monthly Summary ==="); print("Total Income: \$${totalIncome.toStringAsFixed(2)}"); print("Total Expenses: \$${totalExpense.toStringAsFixed(2)}"); if (net > 0) { print("Your net profit is \$${net.toStringAsFixed(2)}"); double tax = net > 0 ? net * 0.15 : 0; print("Tax to be paid (15%): \$${tax.toStringAsFixed(2)}"); } else if (net < 0) { print("Your net loss is \$${net.abs().toStringAsFixed(2)}"); } else { print("You broke even this month."); } } else if (choice == "4") { print("Exiting Budget Application..."); isRunning = false; } else { print("Invalid option. Try again."); } } }