Create a class “name” with two data members: one for the first name (String) and one for the surname (String). The last name must be a pointer to char, the first name construct it as you prefer. b-) Create a grade class to store a subject name (String) and a grade (floating). c-) Create a class "student" that inherits from the class "name" and by composition can store the student's grades (consider that the maximum possible grades will be 6). d-) Create a group class to store the data of several students (consider a maximum of 10 students)
In C++
build a program to read that data with the following prompts
a-) Create a class “name” with two data members: one for the first name (String) and one for the surname (String). The last name must be a pointer to char, the first name construct it as you prefer.
b-) Create a grade class to store a subject name (String) and a grade (floating).
c-) Create a class "student" that inherits from the class "name" and by composition can store the student's grades (consider that the maximum possible grades will be 6).
d-) Create a group class to store the data of several students (consider a maximum of 10 students)
e-) Develop a method that returns the average of the group of students.
f-) Develop a method that returns the average of a student given his name and surname.
g-) Develop a method that returns a list of students who have failed a subject (less than 6.0 points) given the name of the subject.
h-) Develop a method that returns the first and last name of the student with the lowest average.
i-) Create a new text file with the names of the students who failed at least one subject. The name of the text file to create must be passed as a parameter in the main function.
j-) Create in the group class an enumerated type with the following values: RATING_A (rating greater than or equal to 8.5), RATING_B (rating greater than or equal to 7 and less than 8.5), RATING_C (rating greater than or equal to 6.5 and less a 7), RATING_D (rating less than 6.5). Create a method that, given the name of a student and the name of a subject, returns their grade with this type listed.
9
Juan Gonzalez
3
Algebra 5.5
Calculation 5.2
Physics 7.8
Pedro Cuevas
4
I compute 5.5
Chemistry 6.2
Biology 7.8
Astronomy 8.8
Juan Soler
3
I compute 5.5
Chemistry 6.2
Biology 8.8
Ernesto sanchez
3
I compute 5.5
Astronomy 6.2
Biology 8.8
Pedro Cuevas
4
I compute 5.5
Chemistry 6.2
Biology 7.8
Astronomy 8.8
Alberto Gonzalez placeholder image
two
Algebra 5.5
Calculation 5.2
Pedro Fernandez
4
I compute 5.5
Chemistry 6.2
Biology 7.8
Astronomy 8.8
Domingo Suarez
3
I compute 5.5
Chemistry 6.2
Biology 8.8
Ernesto Martinez
3
I compute 5.5
Astronomy 6.2
Biology 8.8
Step by step
Solved in 2 steps