This is a template for students who are writing the ICS3U contests on MCPT's online judge. It allow them to get input in a similar manner to how it it taught in class via HSA Console by creating a wrapper class that emulates its core features.
- In
README.md
(this file) you can find an introduction to this project, a basic usage guide, and the software license. - In
DOCUMENTATION.md
you can find a more in-depth explanation of all the functions emulated by the attached software. - In
Template.java
you can find the actual wrapper class, as well as a class that initializes an instance of the console to use as a base for your problem submissions. - In
TemplateCompact.java
you can find the actual wrapper class, with most of the whitespace removed, as well as a class that initializes an instance of the console to use as a base for your problem submissions. - In
TriangleArea.java
you can find an example solution to a problem on MCPT's online judge making use of the Template and the Console classes. .ICS3U In-Class Contest Template
just exists to set the name of this gist to something other thanREADME.md
.
To use the full functionality of the console class simply paste it in under your current class if you have one already. Alternatively, if you haven't started programming yet, you can copy the entire file and write your code in place of /****** Your Code Here ******/
. Note: you can change the name of the Template class to whatever you'd like provided you rename the file accordingly.
MIT License
Copyright (c) 2019 Theodore Preduta
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.