rendered paste body#include <iostream>#include <stdlib.h>#include <ctype.h>using namespace std;float doMath(float X, float Y);int Function, X, Y;int main(){ cout << "What function do you want?\n1 for Addition\n2 for Subtraction\n3 for Multiplication\n4 for Division\n$ "; cin >> Function; cout << "Enter the first number\n$ "; cin >> X; cout << "Enter the second number\n$ "; cin >> Y; cout << "The Answer is " << doMath(X,Y) << endl; system("Pause"); return 0;}float doMath (float X, float Y){ switch(Function) { case 1: return X+Y; break; case 2: return X-Y; break; case 3: return X*Y; break; case 4: return X/Y; break; default: cout << "Unknown"; break; }}