Not Yet Answered # is this right?

Salem 5,138 Discussion Starter awoc Majestics 84 Discussion Starter awoc Need some help with this Array. I am trying to get the sum of the even numbers and the sum of the odd numbers using a for each loop. I know the answers to what I am trying to achive are sum of even = 84 and the sum of ...

0

"readAccuracy returns" implies that readAccuracy is a function.

"call readLimits" also implies readLimits is a function.

Plus your pseudo code makes no mention of something named calcArea

So, no, I don't think you're quite there.

0

sorry. this should simplify things. I called readLimits but how to I call printInputs and printArea?

```
#include <stdio.h>
#include <math.h>
// Constants
const int GOOD = 1;
const int BAD = 0;
// Function prototypes.
void clearInput ();
int readAccuracy (int *accuracy);
void readLimits (double *x1, double *x2);
void printInputs (int accuracy, double x1, double x2);
double calcArea (int count, double x1, double x2);
void printArea (int accuracy, double x1, double x2);
int main (void) {
int accuracy;
int* ptr;
ptr = &accuracy;
double x1, x2;
readAccuracy(ptr);
readLimits(&x1, &x2);
/*
while readAccuracy returns a 1 {
call readLimits
call printInputs
call printArea
}
*/
printf(" ******* Area Under The Curce Calculator *******\n\n");
while (readAccuracy(ptr) == 1){
readLimits(&x1, &x2);
}
return (0);
}
```

0

For calling print input and print area you need one int and two double .

Syntax will be like this

`printarea(i,j,k); //Where i is taken as int j and k are taken as double`

0

so they both become?

printInputs(accuracy, x1, x2);

printArea(accuracy, x1 ,x2);

This article has been dead for over six months. Start a new discussion instead.

Recommended Articles

When I execute this progammatically, I get a table with row heights much larger than when I do this manually.

Note : Sel is the Word.Selection object and the Clipboard contains an Excel Table.

```
public void AddClipboard()
{
Sel.PasteExcelTable(false,false, false);
var t = Sel.Tables[Sel.Tables.Count];
t.AutoFitBehavior(Word.WdAutoFitBehavior.wdAutoFitContent);
}
```

the function that I created to find the ...