Training, Open Source
computer languages


PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 

Search our site for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
java progrmming,please help!!!!

Posted by clarissebacc2 (clarissebacc2), 26 June 2003
I need a help please!!
Some to solve this problem!!!


Create a class named BankAccount for storing account
info.
The class will store the account number;the owner's
name and the balance of the account.
This class should have an accessor method for the
accountnumber;an accessor and an modifier method for
the name and the balance of the account.
The class should have one variable to store the total
number of object of type BankAccount class.

Write another program that will use the BankAccount
class for creating five bankaccounts.
You should store those accounts into an array.
Using a repetition structure,your program should be
able to do this:

1)Change the name of the owner of an account
2)execute operations on accounts(deposit withdrawals)
 In case of a withdrawal, the program should test if
there is sufficient amount to execute the
operation
3)Display the list of accounts in tabular format with
the account number,the name and the balance


Account N0 Name   Balance

   124543     1 John    12000$


4)The user should be able to quit the program if he wishes .
 
 MY REGARDS TO YOU ALL!!



Posted by admin (Graham Ellis), 26 June 2003
Hi - this looks very much like an exam or coursework question.   Sorry - but I'm not going to do your coursework for you as you'll not learn for yourself if I do.    Quoting a previous thread on this very board ....

Quote:
The site is really intended for folk who are looking to solve a specific problem in a "real life" application but which the books don't seem to obviously answer, and in the past I have objected to folks posting up coursework questions hoping someone will do their work for them.  


Please try to do the task yourself.   If you run across a specific problem that you can't solve on the way, you're very welcome to post, to discuss, etc.

By the way - posting up complete exam / practical questions often breaks copyright too.  Can you confirm that you have copyright authority to post what you did?  Many thanks.

Graham



This page is a thread posted to the opentalk forum at www.opentalk.org.uk and archived here for reference. To jump to the archive index please follow this link.


WELL HOUSE CONSULTANTS LTD.: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 0800 043 8225 or 01225 708225 • FAX: 0845 8382 405 or 01225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho