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](https://dsd5zvtm8ll6.cloudfront.net/si.question.images/images/question_images/1599/6/2/7/7555f5861ebb68351599627753773.jpg)
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
ModifyThis20cpp displays the highest and lowest numbers in an array Createdrevised by on include usi... View full answer
Get step-by-step solutions from verified subject matter experts
