![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 21.01.2021 23:10 shreyasvrangan
For C++ ONLY please,
Write a for loop to print all NUM_VALS elements of vector courseGrades, following each element with a space (including the last). Print forwards, then backwards. End with a newline. Ex: If courseGrades = {7, 9, 11, 10}, print:
7 9 11 10
10 11 9 7
Hint: Use two for loops. Second loop starts with i-courseGrades. size() - 1 (Notes)
Note: These activities may test code with different test values. This activity will perform two tests, both with a 4-element vector (vector int> courseGrades(4)). See "How to Use zyBooks".
Also note: If the submitted code tries to access an invalid vector element, such as courseGrades at(9) for a 4-element vector, the test may generate strange results. Or the test may crash and report "Program end never reached', in which case the system doesn't print the test case that caused the reported message.
1 #include
2 #include
3 using namespace std; DIIDII
4
5 int maino {
6 const int NUM_VALS - 4;
7 vector int> courseGrades (NUM_VALS);
8 int i;
9
10 for (i = 0; i < courseGrades. size(): ++) {
11 cin >> courseGrades. at(i); /*
12 }
13
14 Your solution goes here */
15
16 return ;
17 }
![ansver](/tpl/images/cats/User.png)
Answers: 2
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 18:30
Technician a says that a shop towel should never be used to clean around the flange area before replacing an automatic transmission filter. technician b says that a dimpled transmission fluid pan can be repaired. who is right
Answers: 3
![question](/tpl/images/cats/informatica.png)
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 17:30
Write pseudocode to represent the logic of a program that allows the user to enter a value. the program multiplies the value by 10 and outputs the result.
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 19:30
Of the following pieces of information in a document, for which would you most likely insert a mail merge field?
Answers: 3
You know the right answer?
For C++ ONLY please,
Write a for loop to print all NUM_VALS elements of vector courseGrades, follow...
Questions
![question](/tpl/images/cats/mat.png)
Mathematics, 18.11.2020 23:40
![question](/tpl/images/cats/mat.png)
Mathematics, 18.11.2020 23:40
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mkx.png)
![question](/tpl/images/cats/geografiya.png)
Geography, 18.11.2020 23:40
![question](/tpl/images/cats/mat.png)
Mathematics, 18.11.2020 23:40
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/istoriya.png)
History, 18.11.2020 23:40
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/himiya.png)
Chemistry, 18.11.2020 23:40
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/en.png)
English, 18.11.2020 23:40
![question](/tpl/images/cats/mat.png)
Mathematics, 18.11.2020 23:40
![question](/tpl/images/cats/istoriya.png)
History, 18.11.2020 23:40
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 18.11.2020 23:40
![question](/tpl/images/cats/geografiya.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/geografiya.png)
![question](/tpl/images/cats/fizika.png)
Physics, 18.11.2020 23:40