Algorithms for Bank Transactions and Calculating Average

   

Added on  2022-11-27

9 Pages898 Words63 Views
Computer Science Techniques
Algorithms
Student ID:
Algorithms for Bank Transactions and Calculating Average_1
1. A client arrives to the bank and he needs to make a transaction from his
account. The bank assistant will enter the code and the transaction will be
displayed.
Create an algorithm and a flowchart in which the bank assistant enters the
code D as deposit, W as withdrawal, C as balance consultation, T as
transfer to another account.
The code must be entered and the transaction must be displayed.
Solution:
Algorithms for Bank Transactions and Calculating Average_2
Flowchart:
Yes
No
Yes
No
Yes
No
Yes
No
Start
Read ‘n’
n=’D’?
n=’W’?
n=’C’?
n=’T’? Display ‘Transfer to another
account’
Display ‘Balance Consultation’
Display ‘Withdrawal’
Display ‘Deposit’
Display ‘Invalid’
Stop
Stop
Stop
Stop
Stop
Algorithms for Bank Transactions and Calculating Average_3

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
ITECH1000, Programming Assignment
|4
|171
|76

Fundamentals of Operating Systems and Java Programming
|14
|857
|463

Desklib - Online Library for Study Material
|11
|2075
|276

CLDA Loan Management Application: View, Request, Sort and Accept Loans
|14
|3975
|327

Object and Data Modelling
|15
|2870
|236

ALGORITHMS AND FLOWCHARTS (PDF)
|11
|1265
|81