Hopefully though you weren't going to be finished with this right?
A little cleaning and possibly more user friendly controls would help a lot
here are some suggestions
1) All of the ifs should be a switch (case) structure
2) Put the data accept inside of a while statement to prevent incorrect data entry
(such as they enter P for 'plus' we have to ASSUME people are dumber than rocks)
3) Organize your instructions in the begining to create a clean appearance
4) Make your instructions verified ex : you said hold shift and enter a letter in caps but what if they have caps lock on and they enter a value while holding shift?
5) Regarding the caps only you can make the input data accept upper and lower case
6) I would probably use symbols for the operation identifier and present it to them
7) Create a more explanative output
ex :
=4
that works but you should restate everything
2 * 2 = 4
see . . . thats what the user wants to see
8) Prompt for another math function
ex:
2 * 2 = 4
would you like to perform another math operation?
9) possibly add more than those four math operations
Follow these and your program will be awesome beyond belief =P
Sorry if I seemed a little harsh
I am just trying to give you a hand in making the best program you can
~ Geo
~ You are unique, just like everyone else
|