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

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

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

Step by Step Solution

3.32 Rating (164 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

ModifyThis20cpp displays the highest and lowest numbers in an array Createdrevised by on include usi... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related An Introduction Programming Questions!