Construct a solution algorithm for the following programming problems. To obtain your final solution, you should:
• define the problem
• group the activities into modules
• construct a hierarchy chart
• establish the logic of the mainline using pseudocode
• develop the pseudocode for each successive module in the hierarchy chart
• desk check the solution algorithm.
Design an algorithm that will prompt for and receive your current cheque book balance, followed by a number of financial transactions. Each transaction consists of a transaction code and a transaction amount. The transaction code can be a deposit (‘D’) or a cheque (‘C’). Your program is to add each deposit transaction amount to the balance and subtract each cheque transaction amount. After each transaction is processed, a new running balance is to be displayed on the screen, with a warning message if the balance becomes negative. When there are no more transactions, a ‘Q’ is to be entered for transaction code to signify the end of the data. Your algorithm is then to display the initial and final balances, along with a count of the number of cheques and deposits processed.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.