so do i need to rewrite the whole program ?
Type: Posts; User: jack0
so do i need to rewrite the whole program ?
The Qs are below, and as u can c ive started both Qs but dunno how to finish them ..any help would appreciated thanks
1) C programme for iinverse of cos-rule
where cosA = (b^2+c^2-a^2)/2bc
basically it says "error to few arguments to function 'void filter5pt(.....)"
this error is around line 9
basically this is a moving average programme and im not sure what the errors are, expecially for the first part
#include <time.h>
#include <math.h>
#define DATASIZE 50
void Filter5pt(...
no basically it only sums up the values inside the loop but not the first value entered before the loop was made..
#include <stdio.h>
#include <time.h>
#include <math.h>
int main()
{
float n;
float sum=0.0;
printf(" enter a value\n");
2)
#include <stdio.h>
int main()
{
float n;
printf(" enter a value\n");
scanf("%f\n", &n);
1) ohh ok i understand now .. because value(n)=remainder of n/m .. data[n]= would go from 0 to 5 then start again .. thanks alot i get this one now ..
2) for this one am i supposed to use an if...
data[0]=value[0]
data[1]=value[1]
data[2]=value[2]
....
data[9]=value[9]
data[10]=0
lol
it means right out its output, from wot i gather its something like ;
data[10]=0 but like repeated bcoz its a loop ?
Hi, i sort of know the answer to these questions but im not sure exactly .. any help wud be appreciated ..
1)Reproduce layout of following programe
#include <stdio.h>
#define NMAX 10
int main()...