Write a complete C++ program for a Class Record System. Create 6 one-dimensional arrays, namely : SN[50] for Student Number, Q1[50], Q2[50], PE[50], FE[50] , and AVE[50]. The elements of arrays SN, Q1, Q2, PE and FE are to be entered from the keyboard. The elements of array AVE are to be computed as follows: AVE = (Q1 + Q2 + 2PE + 2FE)/6 After data entry, print the contents of the 6 arrays in tabulated format. Print first the header for the Table as: “SN Q1 Q2 PE FE AVE”. Print the student number data (SN array) on the 1st column, and the AVE data(AVE array) on the last column of the Table. Print also the average of all the
Write a complete C++ program for a Class Record System. Create 6
one-dimensional arrays, namely : SN[50] for Student Number,
Q1[50], Q2[50], PE[50], FE[50] , and AVE[50]. The elements of
arrays SN, Q1, Q2, PE and FE are to be entered from the
keyboard. The elements of array AVE are to be computed as
follows: AVE = (Q1 + Q2 + 2PE + 2FE)/6
After data entry, print the contents of the 6 arrays in tabulated
format. Print first the header for the Table as:
“SN Q1 Q2 PE FE AVE”. Print the student number data
(SN array) on the 1st column, and the AVE data(AVE array) on
the last column of the Table. Print also the average of all the
average grades and the median of the average grades below the
Table. Print a 2nd Table below the 1st Table with the AVE data
sorted in descending order using Selection Sort Method.
Step by step
Solved in 4 steps with 3 images