This is the link to the program i wrote for the assignment simple calculator.
It does not pass the last 2 test cases, can you please help me figure out what is wrong with this program.
Wrong test case "simple calculator"
But mam if i initialize d an int then the code only passes test cases 0 and 1, whereas when I initialize d as a double, the code passes all test cases till 3.