Problem Set 0 is a collection of introductory big data problem in Computer Science world. Most of the problems mentioned here can be solved using simple Shell Scripting. We highly recommend usage of script instead of programming to solve these problems.
- Knowledge of CSV files used in data representation.
A college is producing results to it's students. Results for each student contains a line having comma-separated values for each subjects (Number of subjects: 5). Your job is to find marks for a particular subject for a particular student.
Input will begin with number of students N
Each line looks like this: Name, Roll, Marks1, Marks2, ... , Marks5
Then there will be one integer Q denoting the number of query
Each query will hold two integers: Roll, Subject
0 < N, Q, Marks <= 100
Input
4
John, 1, 80, 90, 85, 68, 92
Jack, 2, 72, 85, 62, 80, 89
Bruce, 3, 89, 86, 84, 83, 82
Antony, 4, 95, 75, 79, 93, 86
2
1, 2
3, 4
Output
John, 90
Bruce, 83
Roll no 1 belongs to John who've scored 90 on his 2nd subject.
Roll no 3 belongs to Bruce who've scored 83 in his 4th subject.