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)

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

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


Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY