This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
2013: J Paul Gibson TSP: Object Oriented Development CSC7322/Introduction.1
QUESTION:Write a « hello world » program (or programs) that illustrate your understanding of 1 or more key object oriented concepts.
Present the program and the concept(s) to the class
2013: J Paul Gibson TSP: Object Oriented Development CSC7322/Introduction.19
Some PBL
You are to write some Java code that can represent a finite sequence of natural numbers eg:
• 2,3,4,5• 1,2,3• 6,7,8,9,10,11
You are to be able to: create a new sequence as the overlap of 2 other sequences overlap 2,3,4,5 and 1,2,3 = 2,3 create a new sequence as the interior of 2 other sequences interior 1,2,3 and 6,7,8,9,10,11 = 4,5,6 test if 2 sequences are equal output a sequence to the terminal/screen