Thread: i need answers java eclipse

  1. #1
    Registered User
    Join Date
    Nov 2014
    Posts
    4

    i need answers java eclipse

    hello i have question i need to answer it in eclipse java


    ((Programming problem) Create a class SavingAccount. Use a static variable annunalInterstRate to store the annual interest rate for all account holders. Each object of the class contains a private instance variable savingsBalance indicating the amount the saver currently has no deposit. Provide method calculateMonthlyInterest to calculate the monthly interest by multiplying the savingsBalance by variable annunalInterstRate divided by 12 – this interest should be added to savingsBalance. Provide a static method modifyInterestRate that sets the annualInerestRate to a new value. Write a program to test class SavingsAccount. Instantiate two savingsAccount objects, saver1 and saver 2, with balances $ 2000.00 and $ 3000.00, respectively. Set annualInterestRate to 4%, then calculate the monthly interest for each of 12 months and print the new balances for both savers.)


    thank you
    Last edited by Salem; 11-24-2014 at 03:08 PM. Reason: font and colour abuse

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    *Moved to Tech Board*

    You might be better off asking for help in a forum community that has a focus on Java. In any case, you need to show some effort, e.g., post your current code and tell us how does it not work.

    By the way, by "Eclipse" you are probably referring to the IDE. This IDE is a tool separate from the programming language known as Java. Effectively, you're making a similiar mistake as people who think that Internet Explorer is the Internet.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Nov 2014
    Posts
    4
    will thank you for reply to me i have the code and this is it i found it the same question in Help In main with Saving Account Class

    but when i but it to try in eclipse he didn't give me a output for that so what can i do ?
    Last edited by queeneman; 11-24-2014 at 01:01 PM.

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    That code (once you fix the link) is C++ code, not Java.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    Registered User
    Join Date
    Nov 2014
    Posts
    4
    will can you help me how can i make the code with eclipse ?

  6. #6
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Err... perhaps you should start by showing us a "Hello world" program in Java. At this point I'm not certain that you have any clue as to what is Java.

    Seriously, there's no need to mention Eclipse. Eclipse is largely irrelevant. It is only relevant when you have some kind of IDE installation/configuration problem such that you actually need help with Eclipse. If not, your focus should be on Java, not Eclipse.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  7. #7
    Registered User
    Join Date
    Nov 2014
    Posts
    4
    جب ياحمار

  8. #8
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    Quote Originally Posted by queeneman View Post
    جب ياحمار
    There's no reason to be insulting, simply because you're too damn lazy to do your own work. Nobody on this forum is going to enable your incompetence and laziness. You must show real effort, and attempt to solve your own problems, and then ask specific questions about things when you get stuck. Nobody will do your work for you.
    What can this strange device be?
    When I touch it, it gives forth a sound
    It's got wires that vibrate and give music
    What can this thing be that I found?

  9. #9
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Dunno, the insult does not even make sense when I try to get it translated. Anyway, my answer to any further requests for help from queeneman is a resounding NO.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  10. #10
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    The word that translates to "ya hmar" is an insult, translated as "you're a donkey." Dude basically called you an ass, and apparently that's supposed to be incredibly insulting in middle eastern culture.
    What can this strange device be?
    When I touch it, it gives forth a sound
    It's got wires that vibrate and give music
    What can this thing be that I found?

  11. #11
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Ah. queeneman must have been totally enraptured by my... assets.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Mats, the java answers
    By Jaqui in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 04-22-2008, 02:12 AM
  2. Answers plz!!!
    By tipp2007 in forum C Programming
    Replies: 7
    Last Post: 12-14-2007, 02:03 AM
  3. Multiple Java files for one Java project
    By doubleanti in forum Windows Programming
    Replies: 2
    Last Post: 11-22-2004, 02:06 AM
  4. Im A C++ Newb Looking For Answers
    By gimmpy224 in forum C++ Programming
    Replies: 6
    Last Post: 05-03-2004, 03:53 PM
  5. Google answers
    By SMurf in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 02-28-2003, 12:40 AM

Tags for this Thread