Question: Write a program that helps users manage daily expenses. Functionalities of this system include: a . Enable users to input the transaction information, such as
Write a program that helps users manage daily expenses. Functionalities of this system include:
a Enable users to input the transaction information, such as name of the transaction, the amount, the date, the category of the transaction, etc. Assign each transaction a unique transaction ID Store the information in a file.
Note: when users run the function again, the new transaction should be stored in the file together with the transaction they entered previously. In other words, the transactions they entered previously should not be cleared.
b Enable users to view transactions filtered by both a time period date range and a specific type eg only food transactions within a certain date range
c Enable users to modify an existing transaction. To modify a transaction, users must specify both the transaction type and the date of the transaction they want to update. The program will then display all transactions matching that type and date, allowing users to select by transaction ID and make changes.
d Display the statistics for each type of expense. For example, for food transactions, the program can display the average spent per meal type eg average spent on lunchAdditionally provide general statistics for all transactions over a specified period, such as total spending and daily average.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
