Write a program that will use a two-dimensional arrays named : Record[50||4). Number, the grades Q1, Q2, PE and FE will be stored on the 2nd, 3rd , ath 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, column of the Record Array will store the Student 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 : STUDENT NO. Qi 02 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.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter10: Pointers
Section10.3: Pointer Arithmetic
Problem 4E
icon
Related questions
Topic Video
Question

Create a simple C++ Program

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
sth 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 :
STUDENT NO. ai a2 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.
Transcribed Image 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 sth 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 : STUDENT NO. ai a2 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.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,