Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class main start
- //declarations
- char customerName
- char accountNumber
- num balanceDue
- num PAYMENT_PERCENTAGE = .10
- num month = 1
- //input
- input accountNumber
- while accountNumber != 0
- input customerName
- input balanceDue
- display(month, balanceDue)
- input accountNumber
- endwhile
- class main end
- class display start
- //output I
- output customerName
- output accountNumber
- //loopzy
- while month < 10
- output month, balanceDue
- balanceDue = balanceDue - (balanceDue * PAYMENT_PERCENTAGE)
- month++
- endwhile
- class display end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement