Description
Create a directory called “PG4” at the top level of your CS122-01-12F folder. Put all the files
pertaining to this assignment in PG4. Place a file called “DONE” in this folder when you have
completed this project.
A weighted Pascal Triangle is a Pascal’s Triangle each of whose values is a times the number
above and to the left plus b times the number above and to the right.
For example, if a is 1 and b is 2, your triangle should look like:
1
2 1
4 4 1
8 12 6 1
Your program should ask the user for the two weights, a and b, and for the row and column
number (assuming that row and column numbers begin at 0).
Your program should then print out the number that appears at that row and at that column.
Your program should NOT print out the whole triangle! For example, if a is 1 and b is 2, as
above, the number at row 3 column 1 is 12.
Call this program “Pascal.java”.