Answer:
//algorithm for ATM money withdrawal
Algorithm: Algorithm for cash withdrawals from ATM.
Input: withdraw_amount
Output: amount+service_charges.
Algorithm:
step 1:
balance =account balance.
withdraw_amount = (Get input from user)
step 2:
if(withdraw_amount>400)
then, print "maximum limit exceeds"
step 3:
if(withdraw_amout<1)
then, print "enter a valid amount"
step 4:
if(withdraw_amount>balance)
then, print "insufficient balance.. withdraw money $30 as service charges "
step 5:
if(withdraw_amount<400 && withdraw_amount<balance)
if(withdraw_amount>200)
service_charge=withdraw_amount*(3/100)
print " Your cash is dispensed... total amount withdrawn +service_charges 30% (withdraw_amount +service_charge) "