Question: In JAVA, I don't need the scientist information, I will do that Program Description February is Black History Month in the United States, and
In JAVA,

\

I don't need the scientist information, I will do that
Program Description February is Black History Month in the United States, and so we're providing an extra credit opportunity for you to research contributions made by Black scientists and incorporate what you find into a simulated database program using course topics like 2D arrays and methods. Find five prominent Black scientists and record the following for them: - name - birth year - main research field(s) such as computer science, physics, biology, etc., up to three per scientist, separated by commas - main contribution summarized in your own words in 200-500 characters A true relational database would use SQL to add and query data (or another database language for non-relational databases). This is not what we are creating in this assignment. Rather, you will use a 2D array String [ ] [ ] scientists to simulate a single database table and a method findScientist to query this table to find matching records. Hardcode the n4 array scientists in the main method of a class BlackScientistDatabase to store the information you collected about them, where n is the number of scientists. Write a method String[][] findScientist(String[][] scientists, String name, String byear, String field) that returns the scientists records satisfying the given criteria. Input parameters: - String[][] scientists: The 2D array containing all the data - String name: Name of a scientist, which should match regardless of letter cases - String byear: Minimum birth year of the scientist - String field: Main research field, which should be contained in that scientist's field(s) string, ignoring case, but need not exactly match the entire string In the main method, prompt the user to enter the name, byear, and field. The user can skip any or all of the inputs by simply pressing the return key without providing any input. An empty string argument given to findScientist indicates that this will not be used to filter. You do not need to implement a looping menu system. You don't need to allow the user to filter by text in the scientist's contributions, but this should nonetheless be the fourth column of each record. When displaying the results of a query, each scientist's record matching the query should have this format. Underlined words should be replaced with the relevant information. Contributions: contribution Note that the field criteria need not search by exact match like name and byear, but rather a check for existence of a substring. To illustrate this with an example, suppose a scientist was involved in particle physics, computer science, and microbiology. Their record would be returned by a field filter criteria of "physics", "particle physics", "biology", "computer", or even something trivial like "e". In our simple simulated database, filtering by a set of multiple conjoined terms for one criteria filter isn't possible. It's easy to see why it wouldn't work if a user wanted to see all scientists born in the 1990s and entered "1990-1999" or "19901991 1992..." or something else (unless we specifically made our program to be able to do this). For field, if a user wanted to search for all those researching physics or biology, entering "physics biology" would not work, either, since it would check for the existence of exactly "physics biology" anywhere. Deliverables \& Reminders The bolded are unique requirements for this extra credit assignment: Solutions not submitted before the due date will not be accepted for any reason. There is no late submission window for this assignment. Additionally, submissions that do not include at least five Black scientists or would not receive more than 50% of the points from the rubric will receive no points. The other usual reminders apply. Compress and submit your project folder to Canvas before the deadline. Ensure your submission contains the necessary file(s) and is the correct version of your code that you want graded. This is your warning. You will not be allowed to resubmit this assignment after the due date if you submit the wrong file. Remember that this is graded on accuracy and you are not allowed to collaborate on your solutions with others. Plagiarism or cheating will be dealt with seriously. Sample program output and behavior Underlined parts represent either where values would be entered by the user or signify some noted program behavior, as appropriate. They should not appear literally in your program. Welcome to the database of Black scientists! Please enter text for the following filter criteria, or press Enter to skip filtering by that criteria. Name: Birth Year: Research field: RESULTS: name, (b. byear) -.- Field(s) of research: field --- Contributions: contribution name, (b. byear) .-. Field(s) of research: field --- Contributions: contribution so on, with a record for each matching scientist... name, (b. byear) ..-- Field(s) of research: field --- Contributions: contribution
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
