Hello,
It might help to know what type of calculator program you are looking for. You might want to structure it so that the user has to input a function...
Welcome to the Calculator Program.
Would you like to Add, Subtract, Divide, or Multiply (A,S,D,M)?
You chose to _
Please enter in your 1st Number: __
Please enter in your 2nd Number: __
Your answer is: ____
Would you like to calculate another?
Now, keep these things in mind:
* DO NOT ALLOW YOUR COMPUTER TO DIVIDE BY ZERO. That could crash out the computer, and give the user a nasty message. Put a check in there to ensure that b <> 0
* Be careful with the imaginary numbers. Review how they work.
* If you have to add trig functions, then make sure they follow the rules too.
* How are you going to handle exponents?
Some enhancement ideas:
* Implement a memory function that can store a value to be compared with later.
* Implement a small array, say 25 numbers, that you can average together or sort out (kinda like an adding machine thing).
Christian