Important alert: (current site time 5/25/2015 10:50:58 AM EDT)

winzip icon

A Basic Calculator Application III

Submitted on: 1/2/2013 2:29:59 PM
By: Ronald Holland  
Level: Beginner
User Rating: By 6 Users
Compatibility: Java (JDK 1.2), Java (JDK 1.3), Java (JDK 1.4)
Views: 33471
(About the author)
     Documentation Updated 12/18/12. Updated 3/14/09 to fix a bug in the Pow calculation. This is a very nice calculator. This code allows the user to enter multiple operations before hitting the =s button. This an advanced version of the basic Calculator using Swing II example and it has a tutorial and the src is included. The function provided are: 1. Multiplication 2. Division 3. Subtraction 4. Addition 5. Plus/Minus 6. Equals 7. Power - nx 8. 1/x 9. Square Root 10. CE - Clear Entry 11. CA - Clear All 12. M + 13. M - 14. n! - n factorial 15. Log 16. Cos 17. Sin 18. Tan 19. ALog 20. ACos 21. ASin 22. ATan



Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
//HTML for :A Basic Calculator Application III
1- BasicCalc_Tut_III - a tutorial on how to build the
2- BasicCalc_III_help_doc - a help file
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net

Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

Other 24 submission(s) by this author


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)

Other User Comments

12/23/2008 6:57:27 AMbaskaran

plz downlode the source
(If this comment was disrespectful, please report it.)

12/23/2008 11:16:42 PMbaskaran

very useful and intresting concepts....
(If this comment was disrespectful, please report it.)

12/24/2008 3:26:42 PMRonald Holland

You can download the source/code from the same page you entered your comments...

Thanx for your comments...
(If this comment was disrespectful, please report it.)

4/26/2009 1:59:22 PMNguyen Huy Hoang

I'm a beginner in Java.I would like to refer more source from which I can learn more to improve my programming skills in Java.
(If this comment was disrespectful, please report it.)

5/15/2015 10:00:43 PMSteve Trout

Keep up the good work!
(If this comment was disrespectful, please report it.)


Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)

To post feedback, first please login.