In this exercise, you modify the highest number program from the chapter. If necessary, create a new

Question:

In this exercise, you modify the highest number program from the chapter. If necessary, create a new project named ModifyThis20 Project and save it in the Cpp8\Chap11 folder. Enter the C++ instructions shown earlier in Figure 11-27 into a new source file named ModifyThis20.cpp. Change the filename in the first comment to ModifyThis20.cpp. Modify the program to also display the lowest number in the array. Use a value-returning function named getLowest. Save and then run the program. Test the program appropriately.

1 //Highest.cpp - displays the highest number in an array 2 //Created/revised by  on  4 #include  5 using namespace std; 7 //function prototype 8 int getHighest(int numArray[], int numElements); 10 int main() 11 { int numbers [4] = {13, 2, 40, 25}; 12 13 cout

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: