Which of the following functions does a browser perform?
A. Links you to the web.
A. Links you to the web, is your answer, this is because some browsers are, Firefox, google chrome. What do these sites do? They link you to the web to find what ever your looking for, from information to buying something. So this is why your answer is A. Links you to the web.
Hope I helped ya!! xD
To debug a code, means that we locate and fix the errors in a code.
The issue with your code is that:
<em>You did not convert num_owls_A and num_owls_B to integers, when adding them together.</em>
The fix to this is that:
<em>You need to convert num_owls_A and num_owls_B to integers, when adding them together.</em>
The fix is as follows:
<em>total_owls = int(num_owls_A) + int(num_owls_B)</em>
The updated code is as follows:
<em>total_owls = 0
</em>
<em>num_owls_A = input()
</em>
<em>num_owls_B = input()
</em>
<em>total_owls = int(num_owls_A) + int(num_owls_B)
</em>
<em>print('Number of owls:', total_owls)</em>
<em />
<em>The above code will perform addition operations for all inputs</em>
Read more about Python programs at:
brainly.com/question/13246781
Answer:
(b) int **arr = new int*[10];
Explanation:
An <em>array of pointers</em> is simply an array containing pointer variables. These pointer variables may be Strings, integers, doubles e.t.c
To declare such arrays of pointers, for example, of integers, in C++, we write;
int **arr = new int*[10];
The left hand side of the above code snippet i.e int ** arr, suggests that arr is a pointer that points to a pointer to integer variables.
The right hand side i.e new int* [10], creates a new array of 10 integer pointer variables.
Now, put together, int **arr = new int*[10] will create/declare an array of pointers of integers having a size of 10.
Answer:
Replace /* Your solution goes here */ with the following lines of code
for(i = 0;i<SCORES_SIZE-1;i++)
{
bonusScores[i]+=bonusScores[i+1];
}
Explanation:
The above iteration starts from the index element (element at 0) and stops at the second to the last element (last - 1).
Using an iterative variable, i
It adds the current element (element at i) with the next element; element at i + 1.
The full code becomes
#include<iostream>
using namespace std;
int main(void) {
const int SCORES_SIZE = 4;
int bonusScores[SCORES_SIZE];
int i = 0;
bonusScores[0] = 10;
bonusScores[1] = 20;
bonusScores[2] = 30;
bonusScores[3] = 40;
for(i = 0;i<SCORES_SIZE-1;i++)
{
bonusScores[i]+=bonusScores[i+1];
}
/* Your solution goes here */
for (i = 0; i < SCORES_SIZE; ++i) {
printf("%d ", bonusScores[i]);
}
printf("\n");
return 0;
}
See attachment for .cpp file