Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/404wolf/csds233-assignment-5

CWRU CSDS233 Assignment 5
https://github.com/404wolf/csds233-assignment-5

Last synced: 7 days ago
JSON representation

CWRU CSDS233 Assignment 5

Awesome Lists containing this project

README

        

# CSDS 233 Assignment 5
## Wolf Mermelstein

# Design Notes
* I changed `runSimulation` to be a static method that automatically instantiates the `CaseCashSystem`. This ensures that upon each simulation a fresh instance of `CaseCashSystem` is used for the simulation.
* I've decided to make `Student` a public subclass of `CaseCashSystem`, but with a private constructor. It is proper practice to not expose instances of private classes outside of those classes, so making the entire `Student` class private is unideal. By making its constructor private you must use the `CaseCashSystem` superclass to create instances of `Student`s.
* I created a separate `org.sort` package and tests where I implemented quicksort and mergesort. Both quicksort and mergesort implement a sort interface I made, which is a class with a single static public method that sorts `List`s in-place.