This program is written in java.   2D arrays (matrices/grids) Write a program that takes 20 student objects and stores them in an array.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

This program is written in java.

 

2D arrays (matrices/grids)

Write a program that takes 20 student objects and stores them in an array. 

 

Each Student object should have a first name and a last name.

 

Sort the array by student’s last name. You can use any of the sorts you have.

 

Then put the names into a 2D array that has 5 rows and 4 columns.

 

Create and print 2 seating charts by printing the 2D array, formatted as shown below.



Student 17

Student 18

Student 19

Student 20

Student 13

Student 14

Student 15

Student 16

Student 9

Student 10

Student 11

Student 12

Student 5

Student 6

Student 7

Student 8

Student 1

Student 2

Student 3

Student 4

 

second chart should look randomized, like this.

 

Student 4

Student 8

Student 12

Student 16

Student 20

Student 3

Student 7

Student 11

Student 15

Student 19

Student 2

Student 6

Student 10

Student 14

Student 18

Student 1

Student 5

Student 9

Student 13

Student 17

 

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY