Severity: Warning
Message: fopen(/tmp/ci_sessionigo0dnu5li41fvpt0k5qo5str4782sjj): failed to open stream: No space left on device
Filename: drivers/Session_files_driver.php
Line Number: 176
Backtrace:
File: /var/www/html/application/controllers/Project.php
Line: 10
Function: __construct
File: /var/www/html/index.php
Line: 311
Function: require_once
Severity: Warning
Message: session_start(): Failed to read session data: user (path: /tmp)
Filename: Session/Session.php
Line Number: 143
Backtrace:
File: /var/www/html/application/controllers/Project.php
Line: 10
Function: __construct
File: /var/www/html/index.php
Line: 311
Function: require_once
This code is designed to fulfill the basic needs of any Bank like checking balance, depositing the amount, withdrawal amount, and transaction history.
BankApplication using Java:- It is coded to provide readymade code for basic banking operations like Withdraw Amount, Deposit Amount, Check Balance and see the previous transaction.
BankApplication.java file is attached with this document which contains another inner class BankAccount in which four methods are defined namely, deposit(),withdraw(),getPreviousTransaction() and showMenu(). With these four methods, one constructor taking two String inputs namely customerName and customerId are defined.
The code is successfully compiled and had passed all the test cases.
Output :-


Submitted by Jaswinder Singh (Jaswinder)
Download packets of source code on Coders Packet
Comments