// making the class
class Counter {
int counter;
int limit;
// Constructor
Counter(int a, int b){
counter = a;
limit = b;
}
// static function to increment
static increment(){
if(counter<limit)
nCounter+=1;
}
// Decrement function
void decrement(){
if(counter>0)
nCounter-=1;
}
int getValue(){
return counter;
}
static int nCounter;
int getNCounters(){
return nCounter;
}
};
// Initializa the static
int Counter::nCounter = 0;
Answer:
Explanation:
One group of students did an experiment to study the movement of ocean water. The steps of the experiment are listed below.
Fill a rectangular baking glass dish with water.
Place a plastic bag with ice in the water near the left edge of the dish.
Place a lighted lamp near the left edge of the dish so that its light falls directly on the plastic bag.
Put a few drops of ink in the water.
The student did not observe any circulation of ink in the water as expected because the experiment had a flaw. Which of these statements best describes the flaw in the experiment? (2 points)
Not enough ink was added.
Not enough water was taken.
The dish was too small for the experiment.
The lamp and the ice bag were at the same place.
Console Port Method
Connecting a computer to a Cisco device through the console port requires a special console cable.
a.The primary purpose of JavaScript is to enable features such as validation of forms before they are submitted to the server.
<u>Explanation:</u>
On web pages before submitting the day, end user has to do client validations such as whether data enter is correct data type, so end user for client side validation been eiher by VBSCRIPT (visual basic script language) or (JavaScript java script). Internet explorer or Microsoft edge uses VBSCRIPT for web page validation.
For visual basic script languages end user should have enough knowledge on visual basic programming languages. Same away for java script end user have enough knowledge on c language.
Both Scripts are used for client side validation on success of validation end user will submit web page form for next action. JavaScript is used in most of the browser including Microsoft explorer or Microsoft edge.