Students in School


This program represents a silly model of the students at Duke University, where students work too hard, eat poorly, and eventually die. However, the interesting part about the program is that we can use the same method to simulate a variety of different students even though each type of student is a different class: generic Student, Duke student, and Cosmic student. The School class models the school all students attend and actually runs the simulation.

Make the following modifications to the main method of the program:

  1. Read student names from a file and use those names to create a Student object that represents each and store each in a list.
     
  2. Write a loop simulate all of the students in your collection by calling the un-modified method goUntilDead.