Porker games
[Additional notes]1. You don't have to make a program.
Just use spreadsheet tools, such as the Excel...
2. you do not have to generate all possible cases.
Just derive some equations and calculate them with the Excel
Type your homework using the MS-Word.
Otherwise, you will get ZERO point when you submit your handwritten homework!!