Answer:
the answer would be C, function
=if(c5≥h18,(c5),(k5))
we will use if function to check the validity of function
we will first write the condition and then we will write the value if condition goes true otherwise if condition does not go true we will write false and function will return value in k5 cell which we have provided in the formula.
Answer:
double* maximum(double *a, int size) {
if(size == 0)
return NULL;
int i;
double max = 0.0;
double *mp;
for(i = 0; i < size; i++){
if(a[i] > max){
max = a[i];
mp = &a[i];
}
}
return mp;
}
Explanation:
You iterate through the vector and find the maximum value. You go updating the pointer throughout the loop. I am going to write a C function
double* maximum(double *a, int size) {
if(size == 0)
return NULL;
int i;
double max = 0.0;
double *mp;
for(i = 0; i < size; i++){
if(a[i] > max){
max = a[i];
mp = &a[i];
}
}
return mp;
}
1)Is it available?
2) Is the cost justifiable?
3) Is it compatible?