Implementation and Header files AND Vectors

The purpose of this lab is to use separate files and vectors. You are encouraged to work together on this.


Using the Rational code linked here
  1. split the code into two files (.h and .cpp)
    Use ifndef
  2. Create a main in a 3rd file and verify that you can create rational numbers
  3. Test it
  4. Create 3 rational numbers (1/2, 3/4, and 5/8)
  5. Multiply them together and print the product
  6. Create a vector of rational numbers
  7. push back your 3 rational numbers into the vector
  8. Change the vector element that contains 1/2 to be 9/10
  9. Write a loop to multiply the 3 elements of the vector
A partial solution is available