Answer:
Following are the code
for(var k = 0; k< rectangleArray.length; k++) // iterting the loop
{
updateRectangle(rectangleArray[k]); // update the rectangle color
}
Explanation:
- In the given answer we have iterate over the loop will iterated until the length of rectangle array size-1
- In every value of k, we have called the update rectangle function which changes the color of the rectangle of a rectangle class
<span>#include
#include
using namespace std;
int main() {
const int SCORES_SIZE = 4;
vector bonusScores(SCORES_SIZE);
int i = 0;
bonusScores.at(0) = 10;
bonusScores.at(1) = 20;
bonusScores.at(2) = 30;
bonusScores.at(3) = 40;
for (i = 0; i < SCORES_SIZE; ++i) {
cout << bonusScores.at(i) << " ";
}
cout << endl;
return 0;
}</span>
The first example is an IPv4 address. Because IPv4 is only 32 bits long there are only about 4 billion addresses available. To expand the address space IPv6 came into existence and your second example is an IPv6 address.
The screenshot required is not visible