It's a dire time at the Gloo School of Advanced Computing. Our systems are down, and we're unable to answer questions about the student roster. We're going to need your help to ensure everything stays on track for the upcoming academic year.
Fortunately, we have the entire student roster saved to a json file, but it's too large to review by hand. We're going to need you to write some custom software in to help us answer the following questions:
-
The dean suspects that students are taking fewer classes than in previous years. What is the average number of classes each student is taking?
-
Alan Turinghas completely forgotten which courses he is teaching. Can you retrieve thecourseNumberof all of his classes? -
Grace Hopperneeds to know who is enrolled in herIntroduction to Functional Programmingclass. Can you retrieve a list of the studentids?
Feel free to use any tooling or documentation that you like. Also feel free to install any common dependencies you feel might be helpful.
Clone this repo to your local machine. Replace TODOs with code to solve the problems.
Install Java 11 or change the java version to your preferred version in pom.xml file under
<java.version>11</java.version> and run
$ ./mvnw clean package -DskipTestsThis exercise comes with automated unit tests to help you verify you arrived at the correct answer. To run the tests, use the command
$ ./mvnw test