Answer:
The code to this question can be given as:
Code:
int lastVector = newScores.size() -1; //define variable lastVector that holds updated size of newScores.
newScores = oldScores; //holds value.
for (i = 0; i < SCORES_SIZE - 1; i++) //define loop.
{
newScores.at(i) = newScores.at(i+1); //holds value in newScores.
}
newScores.at(lastVector) = oldScores.at(0); //moving first element in last.
Explanation:
- In the given C++ program there are two vector array is defined that are "oldScores and newScores". The oldScores array holds elements that are "10, 20, 30, 40".
- In the above code, we remove the array element at first position and add it to the last position. To this process, an integer variable "lastVector" is defined.
- This variable holds the size of the newScores variable and uses and assigns all vector array elements from oldScores to newScores. In the loop, we use the at function the removes element form first position and add in the last position.
- Then we use another for loop for print newScores array elements.
I’d also say B, which is 2
Important printer characteristics include resolution, speed, color, and cache memory.
B.Interact more with people from different backgrounds. this is correct because that would help people get to know each other better.
Hope this helps:)
Answer:
1) We can get various types of information, knowledge.
2) We can communicate with each other no matter where they are if they have internet connection.
3) It can be used as a source of entertainment.
4) Through internet, we can work from home especially in this quarantine time.
5) Through internet, we can show our talent and skills.
Hope it helps :)
If you liked it, please mark this answer as the brainliest one.