Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this assignment, you will create a Java program which use a 2-dimensional array to store student records. Each student record contains a student ID
In this assignment, you will create a Java program which use a 2-dimensional array to store student records. Each student record contains a student ID and a score, both integers, I. General Requirements 1) The program first ask user to input 5 student records, 2) The program will then ask the user for a student ID. If the student ID is 0, the program will print "Goodbye!" and exit. 3) The program will compare the number with IDs in the table. If a match is found, the program will print, "Student XXXX scored yy", where xxxx is the input number and yy is the corresponding score. If no match is found, the program prints "Student ID XXXX not found.". 4) You can use linear search or binary search. 5) You may use any systems or tools to create and run your program. 6) You must follow the guidelines in the programming guideline document, 7) You can assume the input is in correct format, i.e., integer. 8) A sample run will look like this: Enter student's ID and score 1111 90 Enter student l's ID and score 2222 69 Enter student 2's ID and score 3333 92 Enter student 3's ID and score 4444 83 Enter student 4's ID and score 5555 77 Enter a student ID (enter 0 to quit): 2222 Student 2222 scored 69 Enter a student ID (enter 0 to quit): 9292 Student ID 9292 not found. Enter a student ID (enter 0 to quit): 4444 Student 4444 scored 83 Enter a student ID (enter 0 to quit): 0 Goodbye
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started