Fraction Calculator need help
Hey guys. I am working on a program that does simple calculations on fractions like add, subtract, etc...My program needs to be able to accept the fractions from scanner.nextLine() form and not individual numerator = scanner.nextInt() or anything like that. It can accept improper or proper fractions (ie. 1 1/3 or 4/3). The entire list of rules is here (Project 3).
My main problem is how do I accept the numbers from the scanner without asking for the individual numbers like numerator and then denominator and such. Then how do I mutate them into a improper fraction for calculations?
Any help is much appreciated!
Re: Fraction Calculator need help
Re-awakened zombie post deleted. thread locked.