Answer:
#include <iostream>
using namespace std;
int main()
{
int courseGrades [ ] = {7, 9, 11, 10};
for(int i =0; i<4; i++){
cout<<courseGrades[i]<<" ";
}
for(int j = 3; j>=0; j--){
cout<<courseGrades[j]<<" ";
}
}
Explanation:
Using C++ programming language
Create the array vector and assign values with this statement int courseGrades [ ] = {7, 9, 11, 10};
The first for loop prints the values from 0-4 (Since four values are given and hard coded) for(int i =0; i<4; i++)
The second for loop prints from the last to the first element (i.e reversed) for(int j = 3; j>=0; j--)