Question: programming language c++ ders Details 1. You program should have 3 files: a driver file to test the operations, a beader file for the des
ders Details 1. You program should have 3 files: a driver file to test the operations, a beader file for the des definition and any operator overloads you need, and an implementation file with the di finitions of the items in the header file. 2. The class should read and display all rational mumber results in the form alb, 2 except when bis 1, then it should just display a b. or when bis 0, then it should display drvo c. all results should be reduced to lowest terms 1 (1.e., 2/4 should be displayed a 12) 3. The operations that should be implemented for the rational numbers are Operator Addition Subtraction Multiplication Division Less than Less than or equal to Greater Than Greater than or equal Equal to Example 3/8 + 1/6 3/8-1/6 3/8" 1/6 3/8/1/6 1/63/8 1/6 3/8 1/6 > 3/8 1/6 3/8 3/89/24 Result 13/24 5/24 1/16 9/4 True True False False True 4. All the operators must be overloaded to work with the class 5. The class must have a. At least 2 private member variables, numerator and denominator b. At least 4 public member functions i. getNum , getDen), setNum(value), setDen(value) 6. You must have internal documentation: See the bandout on Documentation Standards ders Details 1. You program should have 3 files: a driver file to test the operations, a beader file for the des definition and any operator overloads you need, and an implementation file with the di finitions of the items in the header file. 2. The class should read and display all rational mumber results in the form alb, 2 except when bis 1, then it should just display a b. or when bis 0, then it should display drvo c. all results should be reduced to lowest terms 1 (1.e., 2/4 should be displayed a 12) 3. The operations that should be implemented for the rational numbers are Operator Addition Subtraction Multiplication Division Less than Less than or equal to Greater Than Greater than or equal Equal to Example 3/8 + 1/6 3/8-1/6 3/8" 1/6 3/8/1/6 1/63/8 1/6 3/8 1/6 > 3/8 1/6 3/8 3/89/24 Result 13/24 5/24 1/16 9/4 True True False False True 4. All the operators must be overloaded to work with the class 5. The class must have a. At least 2 private member variables, numerator and denominator b. At least 4 public member functions i. getNum , getDen), setNum(value), setDen(value) 6. You must have internal documentation: See the bandout on Documentation Standards
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
