I just need the flowchart and pseudocode.No need program.

Q1.Write a program to process a collection of savings account transactions (deposits or withdrawals). Your program should begin by reading in the previous account balance and then read and process each transaction. Enter a positive value for a deposit and a negative value for a withdrawal. For each transaction, print the message “Withdrawal” or “Deposit” and the new balance. Print an error message if a withdrawal would result in a negative balance and do not change the balance. Use a sentinel value of 0 to signal end of the transactions.

Respuesta :

The pseudocode algorithm for the given program is:

  1. PROCESS saving account transactions
  2. REQUEST for previous account balance
  3. FOR every deposit made, (+)
  4. FOR every withdrawal made (-)

What is a Pseudocode?

This refers to the use of plain language to describe the sequence of steps for solving a problem in human language.

Hence, we can see that the complete step is given below:

5. DISPLAY "Withdrawal" when (-) is used.

6. DISPLAY "Deposit" when (+) is used

7. ELSE

8. PRINT "Error"

#SPJ1

Read more about flowcharts and pseudocodes here:

https://brainly.com/question/24735155

Ver imagen jayilych4real
ACCESS MORE
EDU ACCESS