Question: Write a C++ program A1.B_Files-Streams-2DArrays-Strings Compatibility Mode Saved to this PC A Seif Eldeen Abbas -0 File Home nert Design Layout References Mailings Review View

Write a C++ program

Write a C++ program A1.B_Files-Streams-2DArrays-Strings Compatibility Mode Saved to this PC A

A1.B_Files-Streams-2DArrays-Strings Compatibility Mode Saved to this PC A Seif Eldeen Abbas -0 File Home nert Design Layout References Mailings Review View Help Tell me what you want to do Share Comments Assuming you have a text, file named "students.txf" that is filled with students info as shown below CS 112 Ahmed Mohammed Salem 3.7 CS 110 Sara Omar Ahmed 3.66 SC 97 Tasneem Ahmed Ramy,2.77 SC 100 Mahmoud Yousef Ahmed 3.0 IS 114 Kareem Abdallah Mohsen 3.8 You should declare a 2D array to represent students GPA). Each row represents a student, the maximum number of students is 30. The 2D array should have 4 columns representing the info. n (Major, ID, Full Name and You should write a program that reads the students info from the file "students.txf" and output them on the console. - lease adhere to the following format when ** Each line contains Major, ID, First Name, Initial letter of the middle name, last name and GPA, all separated by a single space. the t to the console File The program should then take an input from the user (Major) and output the names of the students with that major and update the file to contain only these students. You can assume the user will enter an existing major tudents.txt Before) CS 112 Abmed Mohammed Salem 3 Initial Output CS 112 Ahmed M Salem 3.7 CS 110 Sara O Ahmed 3.66 SC 97 Tasneem A Ba 2.77 SC 100 Mahmoud YAhmed 3.0 IS 114 Kareem AMoksen 3.8 CS1O1 Reem S Ychva 3.0 CS 112 Ahmed M Salem 3. CS 110 Sara O Ahmed 3.66 SC 97 Tasneem A Bamy 2.77 SC 100 Mahmoud Y Ahmed 3.0 IS 114 Kareem AMoksen 3.8 Input CS Output CS 112 Ahmed MSalem 3.7 CS 110 Sara O Ahmed 3.66 CS 110 Sara Omar Ahmed 3.66 CS 101 Reem S Xehua 10 SC 97 Tasneem Ahmed Ramy 2.7 tudents.txt (After CS 112 Ahmed MSalem 3.7 CS 110 Sara O Ahmed 3.66 CS 101 Reem S chva 30 SC 100 Mahmoud Yousef Ahmed 3.0 IS 114 Kareem Abdallah Mohsen 3.8 CS 101 Reem Samir Yeha 3.0 ISIS 3.8 114 Kareem A Mohsen CS 112 Ahmed Mohanmed Salem 3.7IS 114Kareem AMohsen 3.8 CS 110 Sara Omar Ahmed 3.66 SC 97 Tasneem Ahmed amy 2.77 SC 100 Mahmoud Youvef Ahmed 3.0 IS 114 Kareem Abdallah Mohsen 3.8 CS 101 Reem Samir Yeha 3.0 CS 101 Reem S Ychva 30 Page 1 012 523 words @ English (United States + 100% 44 PM O Type here to search A ENG 2/17/2019

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!