Problem

Construct a solution algorithm for the following programming problems. To obtain your fi...

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.

Step-by-Step Solution

Request Professional Solution

Request Solution!

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.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 8
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT