Final answer:
The task requires creating function prototypes and definitions for findSum, findMin, and findMax to work with the provided main function. These functions will output the sum, minimum, and maximum of three entered numbers.
Step-by-step explanation:
Defining findSum, findMin, and findMax Functions
To assist the student, we will define three functions that operate on the input numbers: findSum, findMin, and findMax. First, function prototypes have to be declared before the main function. Then, the functions themselves need to be defined after the main function.
The findSum function will calculate the sum of the three numbers, findMin will determine the smallest number, and findMax will identify the largest number. As the main function cannot be changed according to the exercise rules, we make sure the functions conform to the main function's calls.
// Function prototypes
void findSum(int a, int b, int c);
void findMin(int a, int b, int c);
void findMax(int a, int b, int c);
// Function definitions
void findSum(int a, int b, int c) {
int sum = a + b + c;
cout << "Sum = " << sum << endl;
}
void findMin(int a, int b, int c) {
int min = (a < b) ? (a < c ? a : c) : (b < c ? b : c);
cout << "Minimum Number = " << min << endl;
}
void findMax(int a, int b, int c) {
int max = (a > b) ? (a > c ? a : c) : (b > c ? b : c);
cout << "Maximum Number = " << max << endl;
}