we are given a file that has the following data: 6.9 100 0.9 200 0.6 300 0.3 150
ID: 3610424 • Letter: W
Question
we are given a file that has the following data:6.9
100 0.9
200 0.6
300 0.3
150 0.2
the first number represents intensity level= i
the first column under 6.9 represent Area and the second columnrepresents a coefficient representing surface type..
so we need to use the prototype
double read_data(double *i, double *A) which needs to read an inputfile silimar to the data above
and needs to calculate the total area A (100+200+300+150=750)
Also calculate weighted average: formula is C=[0.9*(totalA/0.9)*100+ 0.6*(totalA/0.6)*100........]-return this value to themain function
in the main function calculate Q= CiA
PLEASE HELP..will give LIEFESAVOR POINTS!!!!