◆ 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...
icon
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
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
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
steps

Step by step

Solved in 4 steps with 9 images

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