Question: Problem 1 You work at a school and want to be able to search for students with certain criteria quickly. To do this, you decide

 Problem 1 You work at a school and want to beable to search for students with certain criteria quickly. To do this,

Problem 1 You work at a school and want to be able to search for students with certain criteria quickly. To do this, you decide to build a program that can automatically do this for you. Your task is to build a program (C\#, Java, C++, Python) that accomplishes this. Assume that a student object can have the following properties: - string: firstName - string: lastName - int: year (1 - freshman, 2 - sophomore, 3 - junior, 4 - senior) - string: major Your program will consist of one public method that we will test, and as many private methods as needed. The public method should be static, return a list of students who match the specifications in the query, be named "QueryStudents", and should take 5 parameters: - List: students (all students in the school) - string: firstName - string: lastName - int: year - string: major We do not always want our query to include all student properties (i.e., first and last names, year, and major). Hence, your program should include an additional check where if one of the strings is empty or the year is 0 , it is assumed that we do not care about that parameter in the query. For example, say we called the method in this way: List query = QueryStudents(students, "John", ", , 2, ""); This is the same way as saying we want to get a list of all students who's first name is John and are in their sophomore year regardless of their major and first name. Please use the starter file located in the Canvas assignment to write your code

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!