Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed
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

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

Power Bi And Azure Integrating Cloud Analytics For Scalable Solutions

Authors: Kiet Huynh

1st Edition

B0CMHKB85L, 979-8868959943

More Books

Students also viewed these Databases questions

Question

What are the challenges associated with tunneling in urban areas?

Answered: 1 week ago

Question

What are the main differences between rigid and flexible pavements?

Answered: 1 week ago

Question

What is the purpose of a retaining wall, and how is it designed?

Answered: 1 week ago

Question

How do you determine the load-bearing capacity of a soil?

Answered: 1 week ago

Question

what is Edward Lemieux effect / Anomeric effect ?

Answered: 1 week ago