Homework 1
1. You should modify the code from the factorial and combinations program to allow the user to input the overall set size = N subset size = K into textFields on a GUI form using a GridBag Layout. The program should then take these inputs and compute the factorial of N and display this result in another textField. It should also display the number of subsets of size K, which is the number of combinations in another textField.
2. You should modify the code for the Complex numbers so that you have a GUI using a GridBag Layout.
|