Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

bartleby

Concept explainers

Question

ASAP Please

write this C++ program using vector of objects as per the following instructions ( read carefully ). Explain all your steps as if any beginner could understand like how many cpp files or text files should be there. Don't miss or copy from any other source

this task needs to be done with vector of TAs object. Please explain how does it work as I don't know anything about it. 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 te written code and show the output too Thank you so much for your time and help

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
expand button
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
Check Mark
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education