Question: JAVA Write a program that meets the following requirements: Create a class for students. The class must contain each students name, (String), ID (int) and

JAVA

Write a program that meets the following requirements: Create a class for students. The class must contain each students name, (String), ID (int) and status (int.) The status indicates the students class standing: 1 for freshman, 2 for sophomore, 3 for junior and 4 for senior. Create 20 students whose names are Name1, Name2 and so on, to Name20, and whos IDs and status are assigned randomly. Print out the array of student objects. Find all juniors and print their names and IDs. NOTE: Use the Math.random() method to create student ID and status.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!