Actually ,I am just a beginner and it is my schoolwork.
I tried my best to complete the part of check the input is a valid number with do..while loop and cin.fail .
And i get stuck in the calculation.
I don't know how to make it pick the number from the array which i set to answer my input.
And i don't know how to make it show which number it picked.
Also i cant work division well.