Question: 1. Create a program named student1.java that will use arrays to store student names and grades assume each student has a student id that directly
1. Create a program named student1.java that will use arrays to store student names and grades assume each student has a student id that directly indexes a storage slot in a set of parallel arrays. One of the arrays should be named "stu namel)" The other "stu grade[]" Make room for 100 students. 2. Your program should prompt the user to input a student id, name and grade. Let the user continue to enter grades using a sentinel value of -1 for the id to indicate that the input is complete. 3. Once input is complete the program should call the following display() and classavg() methods. 4. Then prompt the user for a student id and use the findid() method below to find and display the students name and grade associated with the id. Write a method named display that will display back the list of students. 2 Write a method named cassavg() that will calculate the class average and display the result. * Write a method named findid that will find a student based on the id and display the students name and grade. 5. Add a comment to the end of your code file with the following: What is the 00) of the display() and classavg() methods. What is the OC) of the findid() method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
