write this C++ program using vector of objects as per the following instructions (
write this C++ program using vector of objects as per the following instructions (
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
Please write this C++ program using
Please explain how does vector work Any explanation and comment is very needed
please don't copy from any other sources .please write on your own or skip.
PLEASE ATTACH PICTURES w the written code and show the output too Thank you so much for your time and help

Transcribed Image Text:Q1) Filtering Files
Assume the information of all the TAs for the ECE department is stored in a file that is called TAs.txt.
In order to be eligible for the TA position, a student should be currently registered and can not be an
alumni. However, the file contains old data; it includes some records of TAs who have already graduated
and who are no longer allowed to TA. The format of each TA record in the file is as follows:
Student Id Working Hours Year Hired
Grad
• Ugrad
Alum
The first line of the file should show the total number of students records (max number of records is
100).
Note that the TAs can be classified as any of the following (even if they don't all appear in your example):
Initial Student File:
Part A)
You need to write a program that reads the file, removes any lines with invalid TAs (those who have
Alum as the value for classification) and updates the original file.
Work with a vector of TA objects.
Example 1
7
2728282
6104625
6332269
4080553
9796900
3120444
3540999
11
13
4
6104625
4080553
9796900
3120444
8
14
10
11
10
2020
2016
2017
2014
2021
2016
2020
13
14
10
11
Fady
Yu
Abdullah
Gunkeet
2016
2014
2021
2016
Alum
Grad
Initial Student File: After Correction:
Rémi
John
Elizaveta
UGrad
UGrad
Yu
Gunkeet
Rémi
John
Grad
Alum
UGrad
First Name
Alum
UGrad
UGrad
UGrad
Status
Expert Solution

Step 1: Given
We need to read the records from TAs.txt and store that into vector and then remove all the invalid records and update the TAs.txt(Same file as input).
Step by step
Solved in 3 steps with 1 images

Recommended textbooks for you

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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

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…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

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)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY