Question: Please do not use Classes or splits, also please use command line Write a program that implements array Follow all the Coding standards such as
Please do not use Classes or splits, also please use command line


Write a program that implements array Follow all the Coding standards such as commenting, indentation, defensive programming etc mentioned in Coding Standard Handout in moodle Your program name should be Student.java The program should use two arrays stuName and stuGpa of type String and double respectively In the main method, define the length or size of both arrays as SIZE ARR of 30 Read the student name and gpa from the input file using sentinel loop. You need to create two methods 1. public static int seqSearch(int numRecords, stringt stuName, double stuGpa, String nameKey, double gpaKey) // Write the sequential search that compares both name, and gpa. // Only when both are correct return that index otherwise return - /1 this index will be used to find out position of the key in the array in the main method. 2. public static void printData(int numRecords, String stuName, doublell stuGpa) II Write a loop that prints out all the record you read in. // Use the format shown in the sample output. Here the first method performs the sequential search to find a record and the second record prints the result. You need to pass two arrays in both methods as arguments In method 1, nameKey is the search key for the student and stuGpa is the search key for that student's GPA. If both the student name and gpa matches, then only it will return the index of array If not, it will return
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
