Current location: Hot Scripts Forums » Programming Languages » Everything Java » help me with this exercise


help me with this exercise

Reply
  #1 (permalink)  
Old 02-01-05, 05:57 AM
a_sad_me a_sad_me is offline
New Member
 
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb help me with this exercise

1. Alter the Account class to include a member variable for an account name and a get method for that member variable. Create a new constructor which will initialise the balance as before but will also initialise the account name from a parameter.

2. Produce an orchestrating class which will ask the user for a name and an opening balance. Create an object from this input data and output all the object instance variables.

3. Produce an orchestrating class which creates an array of Account objects of size 4. Ask the user for a names and an opening balances and set all object instance variables to the input data and output all the object instance variable data.

4. Produce a new class called Bank which contains the code from main()
in 3. above.

5. Produce an orchestrating class which creates a Bank object.
Reply With Quote
  #2 (permalink)  
Old 02-01-05, 12:35 PM
digioz's Avatar
digioz digioz is offline
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,171
Thanks: 3
Thanked 9 Times in 9 Posts
It seems like you keep requesting for users of this forum to do all your homework for you (instead of you doing them and learning from it).

Why do you bother going to class to learn Java, if you have no interest in doing the work yourself? If you have no interest in learning Java, maybe you should not be taking the class!
__________________
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with exercise alfbertil Script Requests 1 01-19-06 12:09 AM
For Loop exercise iidavidii Everything Java 2 10-23-04 04:49 PM


All times are GMT -5. The time now is 05:29 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.