0% found this document useful (0 votes)
39 views2 pages

C# Net Exercise

The document outlines two tasks involving C#. The first task is to read student information from two CSV files, merge them based on a unique value, and write the combined data to a single CSV file. The second task involves creating a class structure to manage college courses, minimum marks required, and available seats, allowing for queries based on course names and marks.

Uploaded by

Zak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views2 pages

C# Net Exercise

The document outlines two tasks involving C#. The first task is to read student information from two CSV files, merge them based on a unique value, and write the combined data to a single CSV file. The second task involves creating a class structure to manage college courses, minimum marks required, and available seats, allowing for queries based on course names and marks.

Uploaded by

Zak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1. Using C# read a student’s information from two different .

csv files and merch the file base


on the unique value and write in the single .csv file.

Example:

Input CSV file1:

RollNo Name Email MobileNo


15MCA01 Raja [email protected] 8529637410
15MCA02 Siva [email protected] 7894561230
15MCA03 Mani [email protected] 7410852963
[email protected]
15MCA04 Karthik m 3698521470
15MCA05 Sandy [email protected] 9875643210

Input CSV file2:

Father
RollNo Name Name City State
15MCA01 Raja Samy Tirupur Tamil nadu
15MCA02 Siva Palani Ramanathapuram Tamil nadu
15MCA03 Mani Muthu Salem Tamil nadu
15MCA04 Karthik Kamal Thanjavur Tamil nadu
15MCA05 Sandy Rajini bangalore Karnataka

Output:

Father
RollNo Name Email MobileNo Name City State
Tamil
15MCA01 Raja [email protected] 8529637410 Samy Tirupur nadu
Ramanathapura Tamil
15MCA02 Siva [email protected] 7894561230 Palani m nadu
Tamil
15MCA03 Mani [email protected] 7410852963 Muthu Salem nadu
Karthi [email protected] Tamil
15MCA04 k m 3698521470 Kamal Thanjavur nadu
Karnatak
15MCA05 Sandy [email protected] 9875643210 Rajini bangalore a
2. Using C# (OOPS) to perform the following
• Collect the list of colleges with the courses offered, the minimum marks required to
apply for each course and the number of seats available
• When the course name is given as input it shall output the list of colleges offering
that particular course, minimum marks required and the number of seats available
• When the mark is given as input it shall output the list of applicable colleges, the
applicable courses and the number of seats available

Your class structure shall be like

Minimum
College No.of.seats
Courses offered marks
Name available
required
Computer
80 10
science
Kalam Physics 75 8
Chemistry 75 7
Maths 90 11
Anna Tamil 80 5
English 75 2

You might also like