https://github.com/404wolf/csds233-assignment-5
CWRU CSDS233 Assignment 5
https://github.com/404wolf/csds233-assignment-5
Last synced: 3 months ago
JSON representation
CWRU CSDS233 Assignment 5
- Host: GitHub
- URL: https://github.com/404wolf/csds233-assignment-5
- Owner: 404Wolf
- License: mit
- Created: 2023-11-26T20:36:06.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-26T20:39:07.000Z (over 1 year ago)
- Last Synced: 2025-02-12T08:17:47.060Z (5 months ago)
- Language: Java
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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.