CSC220 Project 1
Due: 11:59PM, Tuesday, November 3

Your task is to write a code for solving the following formula calculation problem.

Given some integers, called base integers, and another integer, called a target, decide whether it is possible to produce the target from the base integers by using each number exactly once and using only basic arithmetic operatons (+, -, *, and /) and, if so, compute a formula that produces the target.

For example, given base integers 3, 3, 2, and 5 and target 2, the answer to the decision problem is in the affirmative and the answer to the subsequent computational problem can be (3+3)/(5-2). On the other hand, for the same base numbers and for target 22, the answer to the decision problem is in the negative.

The decision problem can be solved using a recursive procedure (let's call it P for now) as follows: