An instructor need a system that calculate student grad base on their Three score test 1, test 2 and final exam input file contain student ID and three score as show in the example below; A12315 67 45 60 A12326 80 35 90 A12337 67 75 73 Letter grad for each student grad is given average score G; 80-100 A 65-79 B 55-64 C 40-45 D 0-39 E Average score for student is computed Using this formula; =.20*test1 +0.30*test2+0.5*final. The program should save output into a file that consists of student ID, average A score and letter grad as show in sample below; A12315 56.9 C A12326 86.5 A A12337 72.4 B
What is value of each element alpha after the following code execute Int alpha [5]; Int j; Alpha [0]=5; For (j=1;j<5;j++) { If (j%2==0) Alpha [j] = alpha [j-1] +2; Else Alpha [s] = alpha [j-1] + 3;
Last one
Consider code below, what are the outputs after the following statement Execute; #include <oistream> Void print (int value [ ], int size) { For (int I = 0; I < size ; I++ ) Cout<<++value [i]<<” ”; Cout<<endl } Void main ( ) { Int score [5] = {1,2,3,4,5}, size TS =5; Print (score, size TS); For (int I = 0 ; I < size TS ; I++) Cout<<++score [i]<<” ” }