0

I need help coding this (Please read the description)

The exercise goes like this: Create a program that will carry out the arithmetic operations addition, subtraction, multiplication and division between two integer values entered by the user from the keyboard. Analytically: 1. Construct the void calcNumbersV1(char symbol) function which will includes the local variables a b and s. The function should assign from keyboard values in variables a and b and will put the result of the operation (depending on the value of the symbol parameter) in the variable s. Finally the function will display on the screen the result (the content of s). 2. Construct void calcNumbersV2(int a, int b, char symbol) which will include the parameters a, b and symbol. The function will place the the result of the operation of parameters a and b (depending on the value of the symbol parameter) in the local variable s. Finally the function will display in the screen the result (the content of s). 3. Construct the function int calcNumbersV3(int a, int b, char symbol) which will includes the parameters a, b and symbol. Beware of her return type a function (which is not void) that is int. the function will place the result the operation of parameters a and b (depending on the value of the symbol parameter) in the local variable s. Finally the function (will not show on the screen) will return the result (the content of s). I already tried but my code didn't run. The code is currently public. All help is welcome.

25th Dec 2021, 6:23 PM
Eveft03
Eveft03 - avatar
4 Respuestas
+ 7
Eveft03 , to get useful help from the community,  we need to see your attempt first. without having seen your code, it is difficult to find out where the issue is. => please put your code in playground and link it here thanks!
25th Dec 2021, 6:50 PM
Lothar
Lothar - avatar
+ 3
Link your code inside the question (using + button), and explain the difficulties you have
25th Dec 2021, 6:50 PM
Emerson Prado
Emerson Prado - avatar
+ 2
Well, the functions are simply missing...
26th Dec 2021, 5:12 AM
Emerson Prado
Emerson Prado - avatar
25th Dec 2021, 7:28 PM
Eveft03
Eveft03 - avatar