Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate 3.0 | XML

Tutorial Categories: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML


 

Java Tutorials


 

 

Struts Tutorials

Struts Resources

Visit Forum! Post Questions!
Jobs At RoseIndia.net!

Bank Account Simulation Source Code In Java, Jdbc Index

User Comments
Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl
  Blink   Furl   Simpy   Y! MyWeb 

;
 
Java Examples for Beginners
Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

1 comments so far (post your own) View All Comments Latest 10 Comments:

I have to submit assignment on bank account simulation. details as below.

1. Account Class : This is an abstract class. It contains following information,
- Customer Account number an integer number,
This is automatically generated starting from 101.
- Customer type which is of character type and can have
only 2 values C or S. C for Curr-acct and S for Savings account
- Customer Name.
- Customer Address of String type.
This class has following methods,
- Constructor method to initialize all 4 variables given above
- One method that displays all above information in required
output format.
- One abstract method defined as,
float calculateBalance( ) ;
This method is overridden in the two subclasses.
2. Curr-accnt class : This is one subclass of above defined Account class and stores
following information,
- Balance in Account.
- Interest Rate.
- Penalty.
This class contains following methods,
- Constructor.
- Overridden method calculate Balance to calculate the
balance in account.
- Accept deposit from customer and update the balance.
- Compute and deposit interest.
- Withdraw and update interest.
- Check for minimum balance, impose penalty if necessary
and update the balance.
- Method that displays the data in this class and super
class in the required output format.
3. Savings-accnt class This is one subclass of above defined Account class and
stores following information,
- Balance in Account.
- Interest Rate.
This class contains following methods,
- Constructor.
- Overridden method calculate Balance to calculate the
balance in account.
- Accept deposit from customer and update the balance.
- Compute and deposit interest.
- Withdraw and update interest.
- Method that displays the data in this class and super
class in the required output format.
At the end, this program should ask the user to enter the customer account number
and should find out whether the particular account number is valid or not. If the customer is
present then the all the information about the concerned account should be displayed .
Similarly, the customer is asked whether the customer wants to deposit or withdraw the
amount and accordingly proper methods are invoked.
If the customer account number is not valid then proper error message should be displayed.

Kindly provide me source code of that as I am fade up with this programm

Posted by Prasshant kadam on Sunday, 03.15.09 @ 07:08am | #85859

Ask programming questions?

 

 

Back to Tutorial
  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification

Tell A Friend
Your Friend Name

 

 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright 2007. All rights reserved.