Suppose that one of the largest commercial bank branch in UAE has recently experienced a significant distress due to covid 19. A huge No. of account holders withdraws the payment from the bank. Now manager want to check the total number of accounts those have less than 1000$.
You are required perform the following task:
Write only Pseudocode to check the total number of accounts, who have less than 1000$ using array list
Start
Declare array accountsBalance
Declare variable totalAccounts
Declare variable totalAccountsLess1000
Get the total number of accounts
for i=0 to totalAccounts step 1
Get the balance of account
Set accountsBalance(i)=balance of account
end for
for i=0 to totalAccounts step 1
if accountsBalance(i)<1000 then
totalAccountsLess1000=totalAccountsLess1000+1
nd if
end for
Display the total number of accounts, who have less than 1000$
Stop
Comments
Dear TASK,
You're welcome. We are glad to be helpful.
If you liked our service please press like-button beside answer field. Thank you!
Thanks Sir
Leave a comment