Tonight I was studying the credit card codes, all of these was copied from my book,"C++ ——how to program".This are the program demand:1)Account number(an integer);2)Balance at the begining of the month;3)Total all items charged by this customer this month;4)Total of all items applied to this customer's account this month;5)Allowed credit limit.The program should input each of these facts, calculate the new balance(=begining balance+charges-credits) and determine if the new balance exceeds the customer credit limit. For those customers whose credit limit is exceeded, the program should display the customer's account number,credit limit,new balance and the message "Credit limit exceeded".
input -1 and the program will be ended.
Powered by: C++博客 Copyright © hoshelly