Professional Documents
Culture Documents
CS20 B Java Data Structure Assignemt1 Spring 2009
CS20 B Java Data Structure Assignemt1 Spring 2009
CS20 B Java Data Structure Assignemt1 Spring 2009
Component 1:
Write a program to generate addition and multiplication tables for single digit numbers that
elementary school students are accustomed to seeing.
Algorithm:
Input: None
Output looks like below if you use JTable object:
Component 2:
Write a command line driven software component that determines all pairs of positive integers,
(a, b), such that a<b<1000 and (a2 + b2 + 1)/(ab) is an integer. [Hint: if x/y is an integer then x%y
will be zero].