Appearance
Case
You're tasked with developing a financial management tool—a virtual financial assistant—designed to streamline personal finance tracking. This program, crafted in C, C++, or Java, presents users with a menu-driven interface offering options to record incomes, expenses, review financial transactions, and exit the program. The challenge lies in creating an intuitive system that accurately captures user inputs, maintains organized records of incomes and expenses, ensures input validation, and delivers informative financial summaries.
Develop a financial management program that presents users with the following main menu options:
- Record Income
- Record Expense
- View Income and Expenses
- Exit
Ensure that the input lies between 1 and 4 inclusive. If the input is invalid, re-display the menu until a valid input is made.
Upon choosing
Option 1
Prompt the user to input their income amount and store it in an array named 'incomes'. Return to the main menu afterward.
Option 2
Prompt the user to input their expense amount and store it in an array named 'expenses'. Return to the main menu afterward.
Option 3
Display all recorded incomes from the 'incomes' array, followed by their total. Then display all recorded expenses from the 'expenses' array, followed by their total. Finally, present the cashflow result (income - expense) as the final output.
- For example:
txt
Incomes: Rp10000, Rp40000, Rp50000
Total Income: Rp100000
Expenses: Rp5000, Rp15000, Rp10000
Total Expenses: Rp30000
Cashflow: Rp70000Return to the main menu afterward.
Option 4
isplay the message "Thank you for using this service" and terminate the program.
Construct a robust solution in C, C++, or Java ensuring accurate input handling, array management for income and expense records, clear output formatting, and a seamless user experience. The assessment will focus on functionality, validation, output clarity, and overall program reliability.
The things that you need to create:
- Algorithm in written description
- Algorithm in pseudocode
- Algorithm in flowchart
- Code
Note
For number 1-3, please put it in a word file. For number 4 submit the code file (.c/.cpp/.java). Then submit it to the teacher.