Hello all,
How do I write a script to balance out the credit limit.
1. Balance at the beginning of the month
2. Total of all items charged for the month by the customer
3. Total of all credits/payments applied to this account for this month
4. Allowed credit limit
calculate new balance (=beg balance + charges - credits), display the new balance and determine whether the new balance exceeds the customers credit limit. For those customers exceeding their credit limit, the program should output a message that tells the user they have exceeded their credit limit.
Any help would be greatly appreciated. Thanks
How do I write a script to balance out the credit limit.
1. Balance at the beginning of the month
2. Total of all items charged for the month by the customer
3. Total of all credits/payments applied to this account for this month
4. Allowed credit limit
calculate new balance (=beg balance + charges - credits), display the new balance and determine whether the new balance exceeds the customers credit limit. For those customers exceeding their credit limit, the program should output a message that tells the user they have exceeded their credit limit.
Any help would be greatly appreciated. Thanks
Comment