// Pedram Soheil // DigiOz Multimedia // Creation Date: 5/20/03 // // The purpose of this program is to generate a table of multiplication // given a specific denominator of a fraction. // // This program has been constructed through multiple files. In // other words, there is a seperate file for the class definition, // one for the members functions, and another for the driver of it. // // // Table of Variables: // ------------------- // num = Numerator of the fraction (a) or (c) or result // denom = Denominator of the fraction (b) or (d) or result // dummychar = Dummy Character that contains the fraction symbol // fract1 = First Fraction Object for column header printing // fract2 = Second Fraction Object for column header printing // fract3 = Relult Fraction Object for column header printing // fract4 = FirstFraction Object for row header printing // fract5 = Second Fraction Object for row header printing // fract6 = Result Fraction Object for row header printing // fract7 = First Fraction Object for table body printing // fract8 = Second Fraction Object for table body printing // fract9 = Result Fraction Object for table body printing // response = Contains a Y or N depending if the user wants to // continue calculating another set of fractions // i = Counter Variable for rows // j = Counter Variable for columns // n = Denominator entered by user for table generation // #include using namespace std; #include "pr8_cd.h" int main() { char response; int i; int j; int n; cout << " Fraction Multiplication Table Generator Program\n"; cout << " -----------------------------------------------\n\n"; while (response != 'N') { cout << "Please Enter an integer denominator for the fraction\n"; cin >> n; cout << "\n"; cout << " "; for(i=0; i> response; cout << "\n\n"; } return 0; }