anonymous
  • anonymous
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
Mathematics
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
schrodinger
  • schrodinger
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
You are still welcome to help......
anonymous
  • anonymous
So, what problems are you having? Do you need to build this with a GUI or is command line just fine?
anonymous
  • anonymous
console

Looking for something else?

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

More answers

anonymous
  • anonymous
just the command line
anonymous
  • anonymous
Anyone?
anonymous
  • anonymous
you know how to get user input and do computation right?
anonymous
  • anonymous
Here you go. https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=tutorial+console+java+calculator
anonymous
  • anonymous
That link should get you going
anonymous
  • anonymous
yeah for a starter.
anonymous
  • anonymous
Thanks bro
anonymous
  • anonymous
but I need more help when actually debugging my illiteracy in computing
anonymous
  • anonymous
;(
anonymous
  • anonymous
are you required to catch user input error?
anonymous
  • anonymous
yes
anonymous
  • anonymous
Any omnipotent superduper intellectuals willing to walk me along?
anonymous
  • anonymous
XD
anonymous
  • anonymous
then you have to #1: check if input is a float/int , #2: check its a not divide by 0
anonymous
  • anonymous
i dont do java but the concept is similar with other programming languages
anonymous
  • anonymous
Yeah that's true
anonymous
  • anonymous
try drawing a flowchart then think where might go wrong and where to do you need user input and types of input
anonymous
  • anonymous
Would be nice if openstudy had an edit feature....
anonymous
  • anonymous
then you have to think about how your users is going to choose his operations
anonymous
  • anonymous
I did it!
anonymous
  • anonymous
I improved the program from Nixy's link and it's working exactly as the requirements specify. XD Thanks all

Looking for something else?

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