I'm suppose to write a calculator program with functions. The Program runs ask for the Operator and the second number but for some minor mistake it doesn't add or subtract. and ask for second number twice before giving the result. And when Press 'C' it clears and doesn't ask for operator.
I gave you a whole lot advice in the other thread, - if you have more questions, continue the original thread don't start a new one. Especially when you haven't taken on board all the advice given.
It's annoying from osgwsy's point of view because he spent some time to give some advice, only to find lots of the same advice has been given elsewhere on the same topic.
To add on, I go through your code, I find some of the lines are a bit weird.
For example, Line 42 and Line 58, if((Num1 >= 0) || (Num1 <= 0)) . I find this condition a bit redundant? What do you mean by the number is either less or equal zero or more than or equal zero?
In addition, Line 74, you added a if else condition before the switch. For the if else condition, you state no 'c'/'C' or 'x'/'X', however, you add two cases in the switch for 'c'/'C' and 'x'/'X', which does not make sense to me. You might want to check this part too.
About asking the second number twice, the reason is due to Line 111. In Line 111, it ask for getNum2(), then Line 30 ask for the second number again.
I think you mean want to draft what are the functions you might need, and organize your codes?