Question: Need a C++ code for both the problems below. Kindly use the concept of classes. Task 1 Create a program for writing records of 10

Need a C++ code for both the problems below. Kindly use the concept of classes.

Need a C++ code for both the problems below. Kindly use the

Task 1 Create a program for writing records of 10 students in a text fie Students.txt. Store roll no, first name, last name, department and section of student. Output should be like this in the file. Student.txt 123 Asad Ali CS A. 321 Abbas Khan EE C. 342 Bilal Haider FSM A. Task 2 Design a program for reading two text files, fl.txt and f2.txt and identifying the difference between the lines of both text files, i.e. writing on the screen the lines that differ in both files, adding if it corresponds to f2.txt. You can consider getline function of istream class. Example input fl.txt This is a test line. Hello World. f2.txt This is a test line. Hello Guys. Output: Hello Guys

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!