◆ Define a Student class and its child class HS_Student and MS_Student.
◆ Define a Student class and its child class HS_Student and MS_Student.
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...
Related questions
Question
Use C++
![Define a Student class and its child class HS_Student and MS_Student.
◆ HS_Student : name (string), grade (int), activity (string)
◆MS_Student: name (string), grade (int), mathScore (int), scienceScore (int)
◆ Create two dynamic arrays - one for HS_Student, the other for
MS_Student.
◆ Output
MS_Student: Average of math and science scores for each grade level
HS_Student: Number of students in the same activity in each grade](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fcdbdf4c8-5459-45de-99f8-cd8d71031beb%2Fa20c3f25-2a94-400d-a0e1-9cca2521c4c4%2Fja66gz_processed.png&w=3840&q=75)
Transcribed Image Text:Define a Student class and its child class HS_Student and MS_Student.
◆ HS_Student : name (string), grade (int), activity (string)
◆MS_Student: name (string), grade (int), mathScore (int), scienceScore (int)
◆ Create two dynamic arrays - one for HS_Student, the other for
MS_Student.
◆ Output
MS_Student: Average of math and science scores for each grade level
HS_Student: Number of students in the same activity in each grade
![Problem 2.
MS.txt
Paul 6 80 90
Oliver 7 82 79
Eugene 8 70 80
Tom 8 89 93
Sue 7 79 82
Harry 8 68 78
Tim 8 90 76
Eileen 7 83 79
Suzy 8 90 90
Erin 7 66 77
April 6 70 80
Jennifer 8 79 81
Eric 7 60 68
Brian 6 82 71
HS.txt
Alice 10 swimming
Paul 11 band
Cindy 10 soccer
Hailey 10 swimming
Ara 9 wrestling
Sally 9 band
Peter 9 polo
Jenny 11 band
Tammy 10 band
Robert 12 polo
Pam 11 soccer
Eve 10 polo
Jessica 9 soccer
David 9 swimming
Sandy 9 band
Olivia 9 band
Phoebe 10 soccer
Ken 10 soccer
Bill 11 band
Dolly 11 band
CS003 LAB18
High School Students
Grade 9
swimming 1
band 3
polo
1
wrestling 1
soccer 1
Grade 10
swimming : 2
band 1
polo 1
soccer 3
Grade 11
band 4
soccer 1
Grade 12
polo 1
Middle School Students
6th grade 77.33 80.33
74.00 77.00
81.00 83.00
7th grade :
8th grade
S](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fcdbdf4c8-5459-45de-99f8-cd8d71031beb%2Fa20c3f25-2a94-400d-a0e1-9cca2521c4c4%2Flhsdjzl_processed.png&w=3840&q=75)
Transcribed Image Text:Problem 2.
MS.txt
Paul 6 80 90
Oliver 7 82 79
Eugene 8 70 80
Tom 8 89 93
Sue 7 79 82
Harry 8 68 78
Tim 8 90 76
Eileen 7 83 79
Suzy 8 90 90
Erin 7 66 77
April 6 70 80
Jennifer 8 79 81
Eric 7 60 68
Brian 6 82 71
HS.txt
Alice 10 swimming
Paul 11 band
Cindy 10 soccer
Hailey 10 swimming
Ara 9 wrestling
Sally 9 band
Peter 9 polo
Jenny 11 band
Tammy 10 band
Robert 12 polo
Pam 11 soccer
Eve 10 polo
Jessica 9 soccer
David 9 swimming
Sandy 9 band
Olivia 9 band
Phoebe 10 soccer
Ken 10 soccer
Bill 11 band
Dolly 11 band
CS003 LAB18
High School Students
Grade 9
swimming 1
band 3
polo
1
wrestling 1
soccer 1
Grade 10
swimming : 2
band 1
polo 1
soccer 3
Grade 11
band 4
soccer 1
Grade 12
polo 1
Middle School Students
6th grade 77.33 80.33
74.00 77.00
81.00 83.00
7th grade :
8th grade
S
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 9 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
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)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
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)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
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](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY