2. Define a class called Praction to represent numerator and denominator of a fraction. The should have mult, and defuit
-
answerhappygod
- Site Admin
- Posts: 899604
- 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 /
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!