C++: im having trouble with this. i need help! 1. Write the class of a class cal
ID: 3779713 • Letter: C
Question
C++: im having trouble with this. i need help!
1. Write the class of a class called Fraction using the UML given below. The name of the class must be called Fraction.h Fraction numerator int denominator int +Fraction +Fraction (int, int) Numerator (num int) void. +set +set Denominator (num int) void +getNumerator int const +get Denominator int const +print void Remember to use #ifndef Macro to guard against multiple inclusion. Refer to the powerpoint in how to define the macro 2. Write the definition of constructors and functions for the Fraction class in a file called Fraction. cpp Note for the print function, print the numerator and denominator separated by a slash Remember that you must have a statement for include "Fraction. h" in the Fractions .cpp file For the print function print the numerator and denominator separated by a slash Write your test program (with the main function) with a name of your choice to make use of the Fraction class Remember that you must have a statement for #include Fraction.h" in this file 5. In your main function write code to declare two Rectangle objects called f1 and f2