Question

For this assignment you are going to write code for the following ONE class called Product_n_numbers.

Here are the specifications for the class:

The class has only one method:

name: compute

arguments: one int

returns: a String

What it does:

1. if its argument is 0 the method returns 1.

2. else the method returns **AS A STRING** the product of all integer numbers from 1 to the value of the argument.

For example:

compute(0) returns “1”

compute(1) returns “1”

compute(2) returns