Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
 
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
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.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2024: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho