Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 1 Lnai 9284

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Carlos Soares ,Joao Gama ,Alipio Jorge

1st Edition

3319235273, 978-3319235271

More Books

Students also viewed these Databases questions

Question

Choosing Your Topic Researching the Topic

Answered: 1 week ago

Question

The Power of Public Speaking Clarifying the

Answered: 1 week ago