Homework #4
This is to simulate activities between customers and ATMs in a bank.
Basic scenario:
A customer chooses an ATM.
An ATM interacts with a customer by asking for the customer's ID and
transaction types such as balance inquiry, deposit, and withdraw.
Assumptions:
There are 2 ATMs and 3 customers.
Typical customer data includes ID and balance.
ATMs keep track of current balance, total deposits and withdraws made.
The bank prints out details before it opens and after it closes.
Basic considerations:
Switch statement is good for menu setting.
Use loop but no array.
Customer accounts are to be passed by reference.
Bonus: automate your program testing by generating test data randomly.
--
If You Can See Tomorrow ,
What Of Your Plan ? ........
--
※ 發信站: 批踢踢實業坊(ptt.twbbs.org)
◆ From: olf.m7.ntu.edu.tw