Write a program that will use a two-dimensional arrays named : Record[50][4]. The 1St column of the Record Array will store the Student Number, the grades Q1, Q2, PE and FE will be stored on the 2nd...


Write a program that will use a two-dimensional arrays named : Record[50][4]. The 1St column of the Record Array will store the Student Number, the grades Q1, Q2, PE<br>and FE will be stored on the 2nd 3rd 4th and<br>5th column of the Record array, and the last column will store the average grade of 50 students. The data for Student Number, Q1, Q2, PE, and FE are to be entered from the<br>keyboard while the average grade is to be computed using the equation :<br>AVE = (Q1 + Q2 + 2 *PE + 2 * FE)/ 6<br>Print the content of Record Array in tabulated form with the header :<br>Q2<br>STUDENT NO. Q1<br>PE<br>FE<br>AVE<br>Make another print out of the Record Array, but this time the ave column of the Record array (that is, the las t column) must be sorted in descending order, with the same<br>header as before. Create a function named PrintArray for printing its content both when the average grade is not yet sorted and when the average grade had been sorted.<br>

Extracted text: Write a program that will use a two-dimensional arrays named : Record[50][4]. The 1St column of the Record Array will store the Student Number, the grades Q1, Q2, PE and FE will be stored on the 2nd 3rd 4th and 5th column of the Record array, and the last column will store the average grade of 50 students. The data for Student Number, Q1, Q2, PE, and FE are to be entered from the keyboard while the average grade is to be computed using the equation : AVE = (Q1 + Q2 + 2 *PE + 2 * FE)/ 6 Print the content of Record Array in tabulated form with the header : Q2 STUDENT NO. Q1 PE FE AVE Make another print out of the Record Array, but this time the ave column of the Record array (that is, the las t column) must be sorted in descending order, with the same header as before. Create a function named PrintArray for printing its content both when the average grade is not yet sorted and when the average grade had been sorted.

Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here