I have to work on an assignment were I write a program where the user inputs a numerator and denominator value, and then the program spits out the corresponding fraction. Then the user inputs a second numerator and denominator, and then the program adds, subtracts, multiplies, and divides the second fraction by the first fraction. I am really confused on how to do this. Im not sure if I did the overload functions correctly. Im not sure where to proceed after the main() function. My teacher doesn't really do a good job of explaining this. Any help would be appreciated
I would suspect that you're expected to create two fraction objects and demonstrate that all the overloaded operators work. This is just a complete shot in the dark, though. >_>