7.12
Develop a script that will determine whether adepartment-store customer has exceeded the credit limit on a chargeaccount. For each customer, the following facts areavailable:
a) Account number
b) Balance at the beginning of the month
c) Total of all items charged by this customer this month
d) Total of all credits applied to this customer’s account thismonth
e) Allowed credit limit
The script should input each of these facts froma prompt dialog as an integer, calculate the new balance(= beginning balance + charges – credits),display the new balance and determine whether the new balanceexceeds the customer’s credit limit. For customers whose creditlimit is exceeded, the script should output
PayPal Gateway not configured
PayPal Gateway not configured