Lab 3 Fraction addition (w/ classes)

 

Re-design lab2 using a C++ class. Use examples from the study notes on data modeling (w/ classes). Convert your data model from a structure to a C++ class. Convert your data model operations from using functions to class member functions. Re-design your main program using objects from your class definition to perform the same functionality as in lab2. Use the example(s) from the notes to assist you in the re-design.

 

Name your program with a C++ suffix extension (C or cpp) and compile your program using the GNU C++ compiler, g++, as follows:

 

jdoe@shaula % g++ -o lab3 lab3.C

(lab3 is the resultant program executable name, lab3.C is your C++ source code)

 

 

To execute your program:

 

jdoe@shaula % lab3