Page 1 of 1

PLS use C++ Given a student class to represent student information as follows: class Student{ string stuId; string name;

Posted: Mon Jun 06, 2022 12:35 pm
by answerhappygod
PLS use C++
Given a student class to represent student information as
follows: class Student{ string stuId; string name; double
mathScore; double chineseScore; double englishScore; }; Write a
program to achieve the following tasks: 1. Use an array to save
student information. The length of the array should be defined by a
constant using “const”. (1 mark) 2. Student information is inputted
from the keyboard. (1 mark) 3. Print out the student ID and average
mark of three courses for each student in a descending sequence.(1
mark) 4. Print out student ID whose average mark is smaller than
the average mark of all students.(1 mark) 5. Compile and run
correctly. (2 marks)
Pls Use C Given A Student Class To Represent Student Information As Follows Class Student String Stuid String Name 1
Pls Use C Given A Student Class To Represent Student Information As Follows Class Student String Stuid String Name 1 (148.82 KiB) Viewed 34 times
Problem 2 (5 marks) Given a student class to represent student information as follows: class Student{ string stuld; string name; double mathScore; double chineseScore; double englishScore; }; Write a program to achieve the following tasks: 1. Use an array to save student information. The length of the array should be defined by a constant using "const". (1 mark) 2. Student information is inputted from the keyboard. (1 mark) 3. Print out the student ID and average mark of three courses for each student in a descending sequence.(1 mark) 4. Print out student ID whose average mark is smaller than the average mark of all students. (1 mark) 5. Compile and run correctly. (2 marks)