CSC212 Homework 2 2014
--D. Thiebaut (talk) 07:54, 18 September 2014 (EDT)
Contents
This assignment is due Thursday, Sept. 25, at 11:55 p.m.
Python-Like List
Your Assignment
- Take the Python-Like list from Lab #4. Call your program PythonList.java
- Make all of its member variables private.
- Create accessors, mutators, and other methods that you see fit to add for the purpose of this assignment.
- Test your class thoroughly.
- Create another class called PascalList.java, which, instead of using an array to compute the 8th row of Pascal's triangle, will your an object instantiated from PythonList. In other words, your PascalList program will declare
PythonList A = new PythonList( 10 );
- and will compute the 8th row of Pascal's triangle using A.
Submission to Moodle
- The Moodle test will be provided at a later time... Please stay tuned!
Python-Like List of Strings
- Create a new version of PythonList.java called PythonList2.java.
- Modify it so that the list can now hold strings.
- Test it thoroughly!