Q1) Start out with a new project (you can add code to it from your previous projects)
Create a class called [Calcs]. This class has two functions: [Add2] and [Multiply2]. Each function takes two parameters and returns the value of the calculation (either adds the two parameter values, or multiplies them).
Create an input file that contains data such as the following
A 2 3
M 5 7
A 6 11
A 2 22
M 79 62
Create a main function that opens the input file, reads each line, and based on the first character in the input line, calls the [A]dd function or the [M]ultiply function.
Once you have calculated the result (one line at a time), write the result to an output file.