Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-24-2008, 02:03 PM
Member
 
Join Date: Apr 2008
Location: Ireland
Posts: 4
Sunshine is on a distinguished road
Java Question, i need to be answered
Hi all,

im a college student studying java bt im having a few problems with one questiong, just thought some1 out there might no what the best way to do it would be....

QUESTION

Write a bank account class that allows you to:
1.Open an account with an intital balance(contructor)
2.Deposit Money
3.Withdraw Money
4.Retrieve the balance of the amount

Write a class called InternetBearingAccount that inherits from the account class and that allows you to:
1.Open an account of this type(the contrctor)
2.Add monthly interest to you balance

Write a test class to open an interest account, to deposit money, and to wothdraw and add interest to the balance!!

Hope you guys can help me with this one!!

Thanks,
Sunshine
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-24-2008, 02:09 PM
sanjeevtarar's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Delhi(India)
Posts: 251
sanjeevtarar is on a distinguished road
Quote:
Originally Posted by Sunshine View Post
Add monthly interest to you balance
Hello Sunshine

It is not as easy as you are assuming there are lot of coding and lot of issues that need to be consider in banking application.

Well If you require basic idea of this then one can give you example of this.

So What have you done so far?
__________________
sanjeev,संजीव
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 04-24-2008, 02:13 PM
Member
 
Join Date: Apr 2008
Location: Ireland
Posts: 4
Sunshine is on a distinguished road
I havent even started it, this is an exam question that has come up a few times
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 04-24-2008, 02:35 PM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,376
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
As Snjeev says, first decide the way to working out this question. Break into steps and start on one by one. You have to do a lot here my friend.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 04-24-2008, 02:38 PM
Member
 
Join Date: Apr 2008
Location: Ireland
Posts: 4
Sunshine is on a distinguished road
ya, im worried ill get caught for time in the exam.
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 04-24-2008, 02:42 PM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,376
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Quote:
1.Open an account with an intital balance(contructor)
Code:
public class BankAccount { private double initialBalance; public BankAccount() { // constructor initialBalance = 500.0; } }
I just give a hint. Can you get what I wrote here?
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 04-24-2008, 04:58 PM
DonCash's Avatar
Moderator
 
Join Date: Aug 2007
Location: London, UK
Posts: 239
DonCash will become famous soon enoughDonCash will become famous soon enough
Hey Sunshine, welcome to the Java Forums.

How long is the exam?
__________________
Did this post help you? Please
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
me!

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #8 (permalink)  
Old 04-28-2008, 03:00 PM
Member
 
Join Date: Apr 2008
Location: Ireland
Posts: 4
Sunshine is on a distinguished road
the exam is 3 hours long, that is only one question tho, we ave three others to do in that time
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question mark colon operator question orchid Advanced Java 4 11-12-2008 10:08 AM
A core java Question chravikumar008 New To Java 2 04-21-2008 10:04 AM
If you have a question that was answered to your satisfaction, CaptainMorgan Java Announcements 0 03-29-2008 02:55 PM
New Comer, Java C# question lmei007 Advanced Java 0 02-04-2008 06:54 PM
Java Review Question toad New To Java 1 10-29-2007 08:13 AM


All times are GMT +3. The time now is 05:41 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org