Page 1 of 1

9 void calculate(float &p, float &q, float &r, float a[], float b[], float c[], int x, int y, int z) // void function th

Posted: Sun May 15, 2022 12:00 pm
by answerhappygod
9 Void Calculate Float P Float Q Float R Float A Float B Float C Int X Int Y Int Z Void Function Th 1
9 Void Calculate Float P Float Q Float R Float A Float B Float C Int X Int Y Int Z Void Function Th 1 (36.9 KiB) Viewed 32 times
9 void calculate(float &p, float &q, float &r, float a[], float b[], float c[], int x, int y, int z) // void function that calculates overall grade 10 ~{ 11 int st1=0, st2=0, st3=0; 12 for(int i=0; i<x; i++) 13 st1 += a; 14 for(int i=0; i<y; i++) 15 st2 += b; 16 for(int i=0; i<z; i++) 17 st3 += c; 18 p = ((float)st1/(x*20))*100.0; 20 9 = ((float)st2/(y*10))*100.0; 21 ((float)st3/(x*20))*100.©; 22 } 19 r =