Question 3. We want to implement a flex like system to carry information about students and the courses they are currently enrolled in. The input data will be present in two text files called student.txt and courses.txt. The structure of the student.txt file will be (rollnumber, name, date of birth , batch, major) as shown below: 18L-1112, Ali Maqsood, 02-feb-2000, 20, CV 19L-2113, Haider Saqib, 31-Mar-1999, 19, CS 20L-1111, Fatima Ahmed, 01-Jan-2000, 20, EE The structure of the courses.txt file will be (rollnumber, course code, coursename, credit hours) 18L-1112, CV314, Soil Mechanics, 3 19L-2113, CS210, Data Structures, 3 19L-2113, CS213, Databases, 3 LOL 2112 Csa17

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
Question 3.
We want to implement a flex like system to carry information about
students and the courses they are currently enrolled in. The input data will be present in two text
files called student.txt and courses.txt. The structure of the student.txt file will be (rollnumber, name,
date of birth , batch, major) as shown below:
18L-1112, Ali Maqsood, 02-feb-2000, 20, CV
19L-2113, Haider Saqib, 31-Mar-1999, 19, CS
20L-1111, Fatima Ahmed, 01-Jan-2000, 20, EE
The structure of the courses.txt file will be (rollnumber, course code, coursename, credit hours)
18L-1112, CV314, Soil Mechanics, 3
19L-2113, CS210, Data Structures, 3
19L-2113, CS213, Databases, 3
19L-2113, CS217, Analysis of Algorithms, 3
20L-1111, EE111, Circuit Analysis, 3
201-1111. CSL10. Introduction to Computing. 2
As shown above both the files will be sorted by the rollnumber and a student could be enrolled in
any number of courses. Your system should be able to cater for any number of students. You have
to
i.
Decide the structs needed to carry the above info (you might need a dynamic array of
courses within the student)
Read the information present in the files
ii.
iii.
Display the students data properly on console as e.g. below
Student Rollnumber: 18L-1112
Name: Ali Maqsood
DOB: 02-Feb-2000
Batch: 20
Department: CV
Enrolled in: Soil Mechanics CH3
Student Rollnumber: 19L-2113
Name: Haider Saqib
DOB: 31-Mar-1999
Batch: 19
Department: CS
Enrolled in: Data Structures CH 3
Databases CH3
Analysis of Algorithms CH 3
Student Rollnumber: 20L-1111
Name: Fatima Ahmed
DOB: 01-Jan-2000
2/3
Batch: 20
Department: EE
Enrolled in: Circuit Analysis CH 3
Introduction to Computing CH 2
Transcribed Image Text:Question 3. We want to implement a flex like system to carry information about students and the courses they are currently enrolled in. The input data will be present in two text files called student.txt and courses.txt. The structure of the student.txt file will be (rollnumber, name, date of birth , batch, major) as shown below: 18L-1112, Ali Maqsood, 02-feb-2000, 20, CV 19L-2113, Haider Saqib, 31-Mar-1999, 19, CS 20L-1111, Fatima Ahmed, 01-Jan-2000, 20, EE The structure of the courses.txt file will be (rollnumber, course code, coursename, credit hours) 18L-1112, CV314, Soil Mechanics, 3 19L-2113, CS210, Data Structures, 3 19L-2113, CS213, Databases, 3 19L-2113, CS217, Analysis of Algorithms, 3 20L-1111, EE111, Circuit Analysis, 3 201-1111. CSL10. Introduction to Computing. 2 As shown above both the files will be sorted by the rollnumber and a student could be enrolled in any number of courses. Your system should be able to cater for any number of students. You have to i. Decide the structs needed to carry the above info (you might need a dynamic array of courses within the student) Read the information present in the files ii. iii. Display the students data properly on console as e.g. below Student Rollnumber: 18L-1112 Name: Ali Maqsood DOB: 02-Feb-2000 Batch: 20 Department: CV Enrolled in: Soil Mechanics CH3 Student Rollnumber: 19L-2113 Name: Haider Saqib DOB: 31-Mar-1999 Batch: 19 Department: CS Enrolled in: Data Structures CH 3 Databases CH3 Analysis of Algorithms CH 3 Student Rollnumber: 20L-1111 Name: Fatima Ahmed DOB: 01-Jan-2000 2/3 Batch: 20 Department: EE Enrolled in: Circuit Analysis CH 3 Introduction to Computing CH 2
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

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