Advertisement
Guest User

Untitled

a guest
Sep 14th, 2010
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. Programming Assignment
  2. Develop a C++ program that will determine whether a department-store customer has
  3. exceeded the credit limit on a charge account. For each customer, the following facts are
  4. available:
  5. a) Account number (an integer)
  6. b) Balance at the beginning of each month
  7. c) Total of all items charged by this customer this month
  8. d) Total of all credits applied to this customer’s account this month
  9. e) Allowed credit limit
  10. The program should use a loop to input each of these sets of facts, calculate the new
  11. balance (=beginning balance + charges – credits) and determine whether the new balance
  12. exceeds the customer’s credit limit. For those customers whose credit limit is exceeded,
  13. the program should display the customer’s account number, credit limit, new balance and
  14. the message, “Credit Limit Exceeded.”
  15. How your code should run:
  16. Enter account number (or -1 to quit): 100
  17. Enter beginning balance: 5394.78
  18. Enter total charges: 1000.00
  19. Enter total credits: 500.00
  20. Enter credit limit: 5500.00
  21. New balance is 5894.78
  22. Account: 100
  23. Credit Limit: 5500.00
  24. Balance: 5894.78
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement