Too Long; Didn't Read
A program in Java could take the input in variables 'a' and 'b' and then it will ask the user which formulae of expansion they want to perform. Currently, it has only 5 formulas because I am lazy to add more. This will work for Maths but in Java, you have to do a little bit more work. The program will run if the user enters choice 1, the program will calculate (a+b)² from the given values of **a** and **b**.