//@Author Damien Bell
#include <iostream>
#include <cmath>
using namespace std;
int main(){
    int choice=0;
    double x=0, y=0;
    
    
    cout <<"Press 1 for Addition" << endl << "Press 2 for Subtraction" <<endl << "Press 3 for multiplication" <<endl;
    cout <<"Press 4 for  division" << endl << "Press 5 for raising a number to a power" <<endl <<"Press 6 to find the remainder of a number";
    cout <<"\nEnter your selection now: ";
    cin >> choice;
    
    cout <<"\nEnter the first value to use: ";
    cin >>x;
    cout <<"\nEnter the second value to use: ";
    cin >>y;    
    
    switch(choice){
        case 1:{
           cout << "\nThe sum of " <<x << " + " << y << " = " << x+y;
           break;
        }
        case 2:{
           cout << "\nThe difference of " <<x << " - " << y << " = " << x-y;
           break;
        }
        case 3:{
           cout << "\nThe product of " <<x << " * " << y << " = " << x*y;
           break;
        }        
        case 4:{
           cout << "\nThe quotient of " <<x << " / " << y << " = " << x/y;
           break;
        }         
        case 5:{
           cout << "\nThe exponential value of " <<x << " ^ " << y << " = " << pow(x,y);
           break;
        }          
        case 6:{
           cout << "\nThe remainder of " <<x << " / " << y << " = " << (int (x)%int (y));
           break;
        }          
        default:{
            cout << "\nWhoops, something went wrong";
            break;
        }
    }//End switch
    
    
 return 0;
}