9 void calculate(float &p, float &q, float &r, float a[], float b[], float c[], int x, int y, int z) // void function th
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
9 void calculate(float &p, float &q, float &r, float a[], float b[], float c[], int x, int y, int z) // void function th
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 =
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!