Question: Use java create following program user will not input duplicate student IDs. To ensure the uniqueness of student ID, the program can reject a student
Use java create following program
user will not input duplicate student IDs. To ensure the uniqueness of student ID, the program can reject a student ID if it already exists.

A sample run with this feature may look like this: How many students do you have(1-10): 3 Student 1 name: Winnie the Pooh Student 1 ID: 1001 Student 1 GPA:3.2 Student 2 name:Tiger Kong Student 2 ID: 1001 Student ID 1001 already exist! Please retry! Student 2 ID: 1003 Student 2 GPA: 2.1 Student 3 name:Purple Fun Student 3 ID: 1003 Student ID 1003 already exist! Please retry! Student 3 ID: 1001 Student ID 1001 already exist! Please retry! Student 3 ID:1005 Student 3 GPA:4.3 Enter a student ID (enter to quit): 1001 Student name: Winnie the Pooh Student ID: 1001 Student GPA: 3.2 Enter a student ID (enter to quit): 1002 Student ID 1002 not found. Enter a student ID (enter to quit): 1003 Student name:Tiger Kong Student ID: 1003 Student GPA:2.1 Enter a student ID (enter to quit): 1005 Student name: Purple Fun Student ID:1005 Student GPA:4.3 Enter a student ID (enter o to quit): 0 Goodbye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
