You just have to parse the string. It's a useful skill :) Iterate through each character and do something different depending on if its a plus or minus sign, and the likes. Also, my advice would be to take your fractions and convert them to decimals so you can easily perform operations with them.