Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a C++ program and algorithm to create a class of fraction having variables

ID: 3724406 • Letter: W

Question

Write a C++ program and algorithm to create a class of fraction having variables

numerator and denominator, and member functions setting and getting values of the fractions.

Also create a static member variable of the class having fraction value tolerance of 0.1.

Instantiate 10 fraction objects and find out how many of them are below and above tolerance

level. Decrement the tolerance to 0.01 by a static member function and find out how many of

them are now above and below the new tolerance level

Explanation / Answer

#include <iostream>

}while(n=='y' or n=='Y');

return 0;

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote