0

Create a class called Classroom which contains the main method. This class creates an array of 5 students and calls the setName and setAverage methods. Using the console, send in a name and average for every student.
Create two integer variables called a and b. a gets a random value from 0 – 2 and b gets a random value from 3 – 5.
Then, using the student array you created earlier, use a and b as indexes and create a student array of 2 elements. Assign the students object[a] and [b] to the two element student array. Create a Teacher object. Call the initializeStudents method and send the student object with the two elements. Do this twice.
Then call the showStudents method.

3
Contributors
2
Replies
20
Views
3 Years
Discussion Span
Last Post by stultuske
0

You just copy/pasted your assignment without even a moment taken to explain what help you need. That's highly disrepestectful to the many people who give their time to help others here.

There are lots of people here who will freely give their time to help you become the best Java programmer you can be. There's nobody here who is interested in helping you cheat or doing your homework for you.

DaniWeb Member Rules (which you agreed to when you signed up) include:
"Do provide evidence of having done some work yourself if posting questions from school or work assignments"
http://www.daniweb.com/community/rules

0

and using that profile picture if you can't figure out how to do that task, is really ... less than appropriate.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.