This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: CS1102S Data Structures and Algorithms Assignment 02: Lists and Iteration For this assignment, use the following submission procedure: • Solve your assignment. • Copy the files MySchemeList.java SchemeListUtil.java MyLinkedList.java Generator.java to your account on sunfire to a folder (let’s say cs1102s/assignment2 ). • Go to that folder and execute the submit program: % cd cs1102s/assignment2 % ls *.java MySchemeList.java SchemeListUtil.java MyLinkedList.java Generator.java % /home/course/cs1102s/bin/submit You will get a message that tells you whether the file has been submitted successfully. The script submit can be run several times, and you can remove submitted files later. For details on how to use the submit script, type /home/course/cs1102s/bin/submit -h Please note all file names are case sensitive and have to conform to the assign- ment questions. Submission is activated 5 days before the submission deadline, which is on 9/2, 6:00PM and will be de-activated at that time. 1. (5 marks) Download the assignment project from http://www.comp.nus.edu.sg/ ∼ cs1102s/java/assignment 02.zip . 1 Extact the zip file and create a Java project in Eclipse, as usual. Look at the package playingWithLists. The interface SchemeList contains functions that should remind you of what can be done to lists in Scheme. You are given a class MySchemeList that implements SchemeList. Complete this class (body of many methods is missing), and test it using MySchemeListTest.java....
View Full Document