Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions

Question

=+What can we learn about the PVA data from this decision tree?

Answered: 1 week ago