Programming Guidelines
Download this zip file average.zip. It contains examples of the style of programs to be written for this class.
You can write you program in Python, Kotlin, Java, C, or C++. If you want to write in a language other than these five, let me know first.
Read the problem statement carefully, especially the description of the input/output format. Letter cases matter and no extraneous white spaces in the output are allowed. Make sure your program outputs exactly like described, up to the individual bytes.
Unless stated otherwise, all problems require that your program reads from standard input and writes to standard output. You may assume perfect input. Don’t write code to test for valid input, and don’t write code to prompt the user to type in their input. Also, don’t beautify your output by printing out explanatory comments. Simply print the information like described in the problem description.
When testing, do not hard-code your test data in the source file. Instead, predesign all your input test cases and put them in a file. Run your program from the command line and redirect your standard input so it comes from your pre-prepared input file. For example, to run your java source code named
Zipper.java
that solves a problem and tell it to take its input from your pre-prepared input filezipper.inp
, you should type$ javac Zipper.java $ java Zipper < zipper.inp
The $ character is your command line prompt; don’t type it in.
I am going to test your program using several pre-prepared input test cases. (This implies your program must read from standard input and write to standard output.) You should test your program as extensively as possible before submission.
Make sure to remove all debugging print statements from your source code before submission.
Make sure you program source file contains a header describing its author.
Include a README file with your submission. Your README file should state clearly the status of your program. If you know your program is not working correctly and you are submitting for partial credit, say so. If you discover any bugs, document them here. If you have received help or gotten the idea for your program from anyone else besides me, or from any source besides class material, acknowlege it here.
Submit the source file(s) and the README file only. You can use github for submission if you know how to use it. but make sure nobody else can see your files besides you and me. If you don’t use github, you can submit by emailing your files to .