| |||||||||||
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:
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.
|
| ||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho |