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.
Answer:
Policy manual
Explanation:
A written document that is designed by the company to decide the rules and regulations for the employee to guide them about attendance and evaluation to achieve the desired goals is called Policy manual.
A handbook is provided to the employee at the time of joining of Job. All the policies related to employee such as dress code, attendance policy and evaluation policy. All the rules and regulations related to office are also present in this document.
The purpose of this document is to inform the new employees about guidelines of the company.
The answer is that it is to perform specific operations for various applications. These functions include writing reports, creating spreadsheets, manipulating images, keeping records and developing websites and calculating expenses.
Answer:
void ranges(int x[], int npts, int *max_ptr, int *min_ptr)
{
*max_ptr=*min_ptr=x[0];
for(int i=1;i<npts;i++)
{
if(x[i]>*max_ptr) //this will put max value in max_ptr
*max_ptr=x[i];
if(x[i]<*min_ptr) //this will put min value in min_ptr
*min_ptr=x[i];
}
}
Explanation:
The above function can be called like :
ranges(x,n,&max,&min);
where x is array and n is number of elements and max and min are address of variables where maximum and minimum values to be stored respectively.
Answer:
virtual reality glasses
In a VR setting, students can interact with what they see as if they were really there. In addition to providing students with immersive learning experiences, other benefits of virtual reality in education include the ability to inspire students' creativity and spark their imaginations.
Virtual reality headsets are being currently used as a means to train medical students for surgery. It allows them to perform essential procedures in a virtual, controlled environment. Students perform surgeries on virtual patients, which allows them to acquire the skills needed to perform surgeries on real patients.