=A2*D2
The above formula will allow calculation of monthly cost of the first raw material.This is done by Multiplying the contents of cell A2 (Column A, Row 2) and cell D2 (Column D, Row 2). Here Cell A2 contains cost of the first raw material and Cell D2 contains number of units of the raw material produced each month. After finding the monthly cost of the first raw material in this way, the monthly cost of other raw materials can simply be calculated by dragging down the formula to apply to the rows below.
The answer is a i looked up the question and it says a
// 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;