A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

anonymous

  • one year ago

I need to a java program that simulates a simple calculator. The calculator has the ability to have two real numbers inputted and then: multiply the two numbers divide the first number by the second number (be sure to check for division by 0 and provide an error message if this occurs) add the two numbers together subtract the second number from the first number

  • This Question is Closed
  1. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    You are still welcome to help......

  2. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    So, what problems are you having? Do you need to build this with a GUI or is command line just fine?

  3. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    console

  4. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    just the command line

  5. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Anyone?

  6. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    you know how to get user input and do computation right?

  7. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Here you go. https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=tutorial+console+java+calculator

  8. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    That link should get you going

  9. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    yeah for a starter.

  10. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Thanks bro

  11. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    but I need more help when actually debugging my illiteracy in computing

  12. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    ;(

  13. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    are you required to catch user input error?

  14. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    yes

  15. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Any omnipotent superduper intellectuals willing to walk me along?

  16. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    XD

  17. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    then you have to #1: check if input is a float/int , #2: check its a not divide by 0

  18. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    i dont do java but the concept is similar with other programming languages

  19. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Yeah that's true

  20. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    try drawing a flowchart then think where might go wrong and where to do you need user input and types of input

  21. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Would be nice if openstudy had an edit feature....

  22. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    then you have to think about how your users is going to choose his operations

  23. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I did it!

  24. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I improved the program from Nixy's link and it's working exactly as the requirements specify. XD Thanks all

  25. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.