2014-02-24 + HW

posted Feb 22, 2014, 9:02 PM by Samuel Konstantinovich   [ updated Feb 24, 2014, 8:31 AM ]
Reminder: You are supposed to be done with the knight's tour by Wednesday (in class)


HW: You are submitting your recursion lab on the HW server
You must submit a zip or rar file on the homework server by tonight 2/24/2014 11:59pm  (The slot should be called recursion, pay attention to assignment names, and DO NOT submit things unless I explicitly say submit on the HW Server)

EDIT: HW server for those that forgot. Default password is your 4 digit ID.
http://bert.stuy.edu/skonstantinovich/spring2014/pages.py
If you are not on the list of students, Or you are in the wrong class, please email me. Include your 4digit +9 digit ID, so I can fix it faster.

1. Take the template, insert your code, and make sure it compiles. 
2. Zip or Rar the file, then upload the file to the homework server. 
    (The Zip or Rar file must contain a single java file:  recursion.java. There must be no extra directories just the java file. )
3. Verify that you have submitted the assignment by checking to see if the file was attached. 

Here is your template:

public class recursion{
    public String lastName(){
        /*change this! to your name*/
        return "LAST_NAME_HERE!!!!";
    }
    public String firstName(){
        /*change this! to your name*/
        return "FIRST_NAME_HERE!!!!";
    }
    public int hailLen(int n){
        /*put in your code here...*/
    }
    public int longestHail(int n){
        /*put in your code here...*/
    }
    public int fibItr(int n){
        /*put in your code here...*/
    }

    public recursion(){
        /*leave alone*/
    }
}


DO NOT SUBMIT THE NEXT FILE!!! IT IS FOR TESTING ONLY.
If you want to test your code the way I would test it, this program would print out 3 values from your 3 different functions. It should not print ANYTHING else. 
public class Driver{

    public static void main(String[]args){
        /*create an instance of what you are testing*/
        recursion a = new recursion();
        /*run calculations*/
        System.out.println(a.fibItr(5));
        System.out.println(a.hailLen(5));
        System.out.println(a.longestHail(5));
    }
}



Comments