main Please enter the first integer sin x cout Please enter

main Please enter the first integer sin x: cout Please enter the second integer r addition (xay) r subtraction (xayU pause\") addition a, in b) int r: return r: aat, subtraction (int a, ant b) r a -b: return r directiona cost \"Hella endu. \"This Program asks the user integers, then printa the aum and for two difference zaid BriaEReaalk a, ans br result, string operation) cout a operation b result enda

Solution

3.2)prototype for each function :

int addition(int,int);

int subtraction(int,int);

void direction();

void printResult(int,int,int,string);

3.3)

arguments of     int addition(int,int); are x,y     /// called as addition(x,y)

arguments of    int subtraction(int,int); are x,y

arguments of    void printResult(int,int,int,string); are x,y,r,\"-\"

function direction() has no arguments

3.4)

parameters of     int addition(int,int); are a,b     /// called as addition(x,y)

parameters of    int subtraction(int,int); are a,b

parameters of    void printResult(int,int,int,string); are a,b,result,operation

function direction() has no parameters

 main Please enter the first integer sin x: cout Please enter the second integer r addition (xay) r subtraction (xayU pause\

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site