Write a flowchart that will compute customer’s payment.
Customers’ payment can have
discounts or interest based on the mode of payments. The following are the mode of
payments:
Mode of Payment Discount/Interest
1 10% discount (Cash)
2 5% discount (Two Installment)
3 5% Interest (Three-Installment)
None of the above Invalid Input
Input: mode, amt
Process:
mode==1
o pay = amt - (amt *.10)
mode==2
o payt = amt - (amt *.05)
mode==3
o pay = amt + (amt *.05)
Output: pay
Start
amt=1000 mode=2
mode ,
amt,pay
Get amt, mode
True False
mode
==1
pay=amt-(amt*.10) True False
mode
==2
pay=amt-(amt*.05) True False
mode
==3
Invalid Input
pay=amt+(amt*.05)
Stop
pay