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
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