You are on page 1of 1

Problem Statement

Given list of students’ records. Write a program with signature as below:

Method Name: getStudentsWithMarksMoreThan()


Input: marks – Integer

Output: List of Students having marks more than input

Also add Unit Test case – both positive and negative.

You can do in choice of your language (Any high level language like – Java,
Python, PHP, C#, JavaScript)

For example JSON given below of 3 students for your reference.


{
"students":[
{
"roll_no":101,
"details":{
"name":"ajay",
"marks":42,
"age":20
}
},
{
"roll_no":102,
"details":{
"name":"amit",
"marks":45,
"age":21
}
},
{
"roll_no":111,
"details":{
"name":"ramesn",
"marks":31,
"age":21
} } ]}

You might also like