Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A maintained expense management system is made up of the following items: Customer code (sorting key) Expense list List of uncredited payments. Each item
A maintained expense management system is made up of the following items: Customer code (sorting key) Expense list List of uncredited payments. Each item on the expense list has Date Description of the concept Amount Status: Paid / Not Paid . Each item of uncredited payments has Date Amount A) Develop an abstract procedure, ACCREDITATION OF PAYMENTS, which given the structure described and the code of a client, accumulate the payments indicated in the file of each client and with that total amount, register by putting in the "paid" status all the vouchers in the list that can be canceled with that total. The process returns the balance of payments that will remain unapplied and the balance of unpaid expenses. The expenses are paid in full or not paid at all, therefore, it may be that both balances remain positives. (For example, if there is a total payment of $100 and an expense of $150 remaining.) B) Define and show the exception errors that you deem convenient, such as that the client code does not exist. Note: The search and/or update and/or insertion procedures must be done recursively. They must bear in mind that in ordered structures there is no must be traversed further if searching for the key. Note: You must deliver the resolution of Theory and Practice on separate sheets
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started