Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question 17 (10 points) Code a function prototype with the name displayValue. It

ID: 3736557 • Letter: Q

Question

Question 17 (10 points) Code a function prototype with the name displayValue. It accepts one argument with an integer data type and returns no value. Note: You do not need to write a whole program. You only need to write the code that it takes to create the correct output. Please remember to use correct syntax when writing your code, points will be taken off for incorrect syntax. Save Question 18 (10 points) Given the following: void showSum(int num1, int num2, int num3); Code the statement that calls the showsum function and passes the values 2, 100 and 33 to it. Note: You do not need to write a whole program. You only need to write the code that it takes to create the correct output. Please remember to use correct syntax when writing your code, points will be taken off for incorrect syntax.

Explanation / Answer

Question 17 :
The below is a function prototype :
void displayValue(int value);

Explanation : The function prototype for displayValue that takes
an integer type value and returns nothing,void.

Question 18 :
Calling method showSum with three integer values 2,100 and 33
as following

showSum(2,100,33);

Explanation :
The function definition of showSum is as follows
void showSum(int num1, int num2, int num3);

So calling with function name showSum with actual arguments
num1=2, num2=100 and num3=33 is showSum(2,100,33);

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote