Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

#include <iostream> using namespace std; int main() { double height[10]; int tal

ID: 3539274 • Letter: #

Question

#include <iostream>

using namespace std;

int main()

{

    double height[10];

    int tall=0;

    for(int x=0;x<10;x++)

    {

        height[x] = 0.0;

    }

    cout<<"Enter the height of 10 students."<<endl;

    for(int x=0; x<10; x++)

    {

        cout<< "Enter the height of the student: ";

        cin>>height[x];

    if(height[x]>60)

    {

        tall++;

    }

    }

    cout<<"Number of students taller than 60 inches: "<<tall<<endl;

}

Using the code above: In addition to count and show the number of students taller than 60 inches, also display the heights of these students (i.e. students who are taller than 60 inches). For example, suppose 3 students in this class are taller than 60%u201D and their heights are 62%u201D, 61%u201D and 64%u201D. Display the count (i.e. 3) and the heights 62, 61 and 64

Explanation / Answer

#include using namespace std; int main() { double height[10]; int a[10]; int tall=0; for(int x=0;x