- 2 Define A Class Called Praction To Represent Numerator And Denominator Of A Fraction The Should Have Mult And Defuit 1 (10.42 KiB) Viewed 25 times
2. Define a class called Praction to represent numerator and denominator of a fraction. The should have mult, and defuit
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
2. Define a class called Praction to represent numerator and denominator of a fraction. The should have mult, and defuit
2. Define a class called Praction to represent numerator and denominator of a fraction. The should have mult, and defuit con functions. Also include the member function definitions listed below. (40p) A public member function called print that takes no parameters. The member function must print data slots in the form of a fraction A public member function called validate with no parameters. The member function check the denominator is not rero. The member function should return true if the denominator is a zero, otherwise, it should return . /*PASTE CODE HERE- The content of the implementation file only /