CSC403: Homework [2/4] | ![]() ![]() ![]() |
Class Tools
Install the tools for class. Instructions. If you've used IntelliJ IDEA before, make sure you update it and that you are using OpenJDK 21.
Optional: After you've installed IntelliJ IDEA Community Edition, you can go to the Help menu and choose "Learn IDE Features" for some built-in tutorials on how to use IDEA.
See Features Trainer for more information.
Don't bother doing the "Git" tutorial, as we won't be using git in this class.
Optional: Look over IntelliJ IDEA: Getting Started. You can skim most of the content, but you might want to read through the following sections carefully (especially if you have not used IntelliJ IDEA before).
Programming Homework:
Find MyIntSET.java
in IntelliJ IDEA. It will be under the algs32
package.
Implement the functions printLeftI
and size
.
Be sure to read all comments and follow the rules stated in the instructions provided in the source file. I will take points off if you violate the restrictions stated in the comments!
You must not remove or edit the name of the class or the name or signature of any function, constructor, etc. given in the file.
Your code must compile with NO errors. Code with compilation errors earns 0 points.
NB: I use an autograder program that assumes the presence of external code as given in the original source code archive, so if you add anything outside of
MyIntSET.java
and reference it (e.g. with animport
statement) or change the contract (class name, constructor or method names or signatures), your code may not compile when I attempt to grade it.These rules about not changing the "contract" of the original source files and not referencing outside code that wasn't in the original course code archive will be true for every programming homework assigment in this course! I will drop your file into the autograder environment and if it doesn't compile, you didn't follow directions, and you get a zero.
After you have completed the assignment, upload your
completed .java
file to the hw1 - MyIntSET.java - printLeftI and size
submission folder in d2l(see next slide).
Do not submit anything else. I will give zero credit
for .class
files. I will also give zero
credit for any .txt/.zip/.rar/.jar
files. Hand in a single,
uncompressed .java
source code file.
There will be no credit for code that has compilation errors (red marks/ "squiggly lines" in IntelliJ IDEA).
Reading Assignments:
Skim Algorithms 3.1, 3.5
Read Algorithms 3.2
Check out the booksite. Read the summary of section 3.1 online before you read the textbook.
Check out the authors' coursesite for COS226 at Princeton. Find their lecture notes, homework assignments and old exams.