An assignment | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

An assignment

Write a java program for a Bank system. Employees and bank customers access the system. Each customer have one or more ATM cards. Bank system class: keep track of all customers (Array List), add new customer, get information about all customers of this bank. Employee class: has name, salary, id and any functions to access/change his information. Customer class: has name, id, balance, currency, cards owned (Array List of cards), methods to check/ change the customers information, add card, make a transfer,   withdraw and deposit ATM class: card number, pin number ALL Classes has toString() method/ suitable constructors Write the drive class(class of main method) to test the code by:  Create an object of bank system.  Create 2 customers and add them to the bank system. Add a new card for each  customer. Make a deposit for each 10000EGP. Make a transfer from first customer to the second one by a 5000EGP. Show the information of all customers in the bank system 

7th May 2022, 12:41 AM
Ebrahim Lotfy
Ebrahim Lotfy - avatar
2 Answers
7th May 2022, 1:44 AM
JaScript
JaScript - avatar
7th May 2022, 6:58 AM
Thineshan Panchalingam
Thineshan Panchalingam - avatar