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)
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)
PLS use C++ Given a student class to represent student information as follows: class Student{ string stuId; string name;
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am