Question: In c++, #include using namespace std; int main() 1 const int SIZE=12; //12 students int sum_height=0; //variable for sum of heights int height [SIZE]; //array

In c++,

In c++, #include using namespace std; int main() 1 const int SIZE=12;

#include using namespace std; int main() 1 const int SIZE=12; //12 students int sum_height=0; //variable for sum of heights int height [SIZE]; //array to store height of 12 students int above average [SIZE]; //store all above average heights in this array double average; //variable for average of heights for(int i=0;i>height[i]:// read heights, one student at a time // compute sum of heights } // compute average of heights I/in a loop check if height is above average //copy to above average array if it is cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!