http://nameless.cis.udel.edu/class_wiki/index.php?title=CISC220_F2021_Lab2&feed=atom&action=historyCISC220 F2021 Lab2 - Revision history2024-03-28T10:51:56ZRevision history for this page on the wikiMediaWiki 1.28.0http://nameless.cis.udel.edu/class_wiki/index.php?title=CISC220_F2021_Lab2&diff=1986&oldid=prevCer: /* 1. C++ programming exercises */2021-09-08T18:55:09Z<p><span dir="auto"><span class="autocomment">1. C++ programming exercises</span></span></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 18:55, 8 September 2021</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l11" >Line 11:</td>
<td colspan="2" class="diff-lineno">Line 11:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>===1. C++ programming exercises===</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>===1. C++ programming exercises===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* '''(3 points)''' Drozdek programming assignment 1.12.1: write a ''Fraction'' class with overloaded arithmetic and input/output operators.  You may look up pseudocode for how to reduce factors.  This class should be defined in <del class="diffchange diffchange-inline">main</del>.cpp in a ''fractions'' directory, and there should be test code in main() that shows all of its functionality.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* '''(3 points)''' Drozdek programming assignment 1.12.1: write a ''Fraction'' class with overloaded arithmetic and input/output operators.  You may look up pseudocode for how to reduce factors.  This class should be defined in <ins class="diffchange diffchange-inline">Fraction.hh and Fraction</ins>.cpp in a ''fractions'' directory, and there should be test code in main(<ins class="diffchange diffchange-inline">) (in main.cpp</ins>) that shows all of its functionality.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* '''(2 points)''' Download [http://nameless.cis.udel.edu/class_data/220_f2014/code/functemplate.tar functemplate.tar], untar it, and make it a subdirectory of <Your Name>_Lab2 .  Create a "templatized" function ''calculatesum()'' in main.cpp which has the same arguments and return type as findsmallest() in that file, but which ''adds'' every element of the array.  Call this in example2() and example3() instead of findsmallest().  Modify the IntCell class as necessary to make this work.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* '''(2 points)''' Download [http://nameless.cis.udel.edu/class_data/220_f2014/code/functemplate.tar functemplate.tar], untar it, and make it a subdirectory of <Your Name>_Lab2 .  Create a "templatized" function ''calculatesum()'' in main.cpp which has the same arguments and return type as findsmallest() in that file, but which ''adds'' every element of the array.  Call this in example2() and example3() instead of findsmallest().  Modify the IntCell class as necessary to make this work.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
</table>Cerhttp://nameless.cis.udel.edu/class_wiki/index.php?title=CISC220_F2021_Lab2&diff=1985&oldid=prevCer: /* Lab #2 */2021-09-08T17:47:05Z<p><span dir="auto"><span class="autocomment">Lab #2</span></span></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 17:47, 8 September 2021</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l9" >Line 9:</td>
<td colspan="2" class="diff-lineno">Line 9:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* '''(1.5 points)''' Problem set 4, questions 1, 3, 5, 6, 7, and 9 (the "Cow" class) from Google for Education [https://developers.google.com/edu/c++/quiz quiz on classes].  You are on your honor to not look up the linked answers or actually compile and run the code.  Take some time to ''look'' at the code and think about what it is doing.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* '''(1.5 points)''' Problem set 4, questions 1, 3, 5, 6, 7, and 9 (the "Cow" class) from Google for Education [https://developers.google.com/edu/c++/quiz quiz on classes].  You are on your honor to not look up the linked answers or actually compile and run the code.  Take some time to ''look'' at the code and think about what it is doing.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>--></div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>--></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>===1. C++ programming exercises===</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>===1. C++ programming exercises===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
</table>Cerhttp://nameless.cis.udel.edu/class_wiki/index.php?title=CISC220_F2021_Lab2&diff=1984&oldid=prevCer at 17:46, 8 September 20212021-09-08T17:46:56Z<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 17:46, 8 September 2021</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l3" >Line 3:</td>
<td colspan="2" class="diff-lineno">Line 3:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>The ''Drozdek'' references below are to the textbook.  It shouldn't matter whether you have the 3rd or 4th edition.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>The ''Drozdek'' references below are to the textbook.  It shouldn't matter whether you have the 3rd or 4th edition.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"><!--</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>===1. Written problems===</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>===1. Written problems===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* '''(0.5 points)''' Drozdek exercises 1.11.3 "Providing that the declaration..."</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* '''(0.5 points)''' Drozdek exercises 1.11.3 "Providing that the declaration..."</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* '''(1.5 points)''' Problem set 4, questions 1, 3, 5, 6, 7, and 9 (the "Cow" class) from Google for Education [https://developers.google.com/edu/c++/quiz quiz on classes].  You are on your honor to not look up the linked answers or actually compile and run the code.  Take some time to ''look'' at the code and think about what it is doing.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* '''(1.5 points)''' Problem set 4, questions 1, 3, 5, 6, 7, and 9 (the "Cow" class) from Google for Education [https://developers.google.com/edu/c++/quiz quiz on classes].  You are on your honor to not look up the linked answers or actually compile and run the code.  Take some time to ''look'' at the code and think about what it is doing.</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">--></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>===<del class="diffchange diffchange-inline">2</del>. C++ programming exercises===</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>===<ins class="diffchange diffchange-inline">1</ins>. C++ programming exercises===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* '''(<del class="diffchange diffchange-inline">2 </del>points)''' Drozdek programming assignment 1.12.1: write a ''Fraction'' class with overloaded arithmetic and input/output operators.  You may look up pseudocode for how to reduce factors.  This class should be defined in main.cpp in a ''fractions'' directory, and there should be test code in main() that shows all of its functionality.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* '''(<ins class="diffchange diffchange-inline">3 </ins>points)''' Drozdek programming assignment 1.12.1: write a ''Fraction'' class with overloaded arithmetic and input/output operators.  You may look up pseudocode for how to reduce factors.  This class should be defined in main.cpp in a ''fractions'' directory, and there should be test code in main() that shows all of its functionality.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* '''(<del class="diffchange diffchange-inline">1 point</del>)''' Download [http://nameless.cis.udel.edu/class_data/220_f2014/code/functemplate.tar functemplate.tar], untar it, and make it a subdirectory of <Your Name>_Lab2 .  Create a "templatized" function ''calculatesum()'' in main.cpp which has the same arguments and return type as findsmallest() in that file, but which ''adds'' every element of the array.  Call this in example2() and example3() instead of findsmallest().  Modify the IntCell class as necessary to make this work.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* '''(<ins class="diffchange diffchange-inline">2 points</ins>)''' Download [http://nameless.cis.udel.edu/class_data/220_f2014/code/functemplate.tar functemplate.tar], untar it, and make it a subdirectory of <Your Name>_Lab2 .  Create a "templatized" function ''calculatesum()'' in main.cpp which has the same arguments and return type as findsmallest() in that file, but which ''adds'' every element of the array.  Call this in example2() and example3() instead of findsmallest().  Modify the IntCell class as necessary to make this work.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>===<del class="diffchange diffchange-inline">3</del>. Submission===</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>===<ins class="diffchange diffchange-inline">2</ins>. Submission===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* Put a '''PDF file''' <Your Name>_README.pdf with your answers to the written exercises in <Your Name>_Lab2.  This file should also contain a copy of the output of your Fraction class test program and the modified functemplate program.  Credit your source for the reducing factors method and explain what changes you had to make to IntCell, if any.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* Put a '''PDF file''' <Your Name>_README.pdf with your answers to the written exercises in <Your Name>_Lab2.  This file should also contain a copy of the output of your Fraction class test program and the modified functemplate program.  Credit your source for the reducing factors method and explain what changes you had to make to IntCell, if any.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* Create a single tar/zip/rar file out of the top-level and all subdirectories.  This archive file should be named <Your Last Name>_Lab2.tar (or .zip or .rar, etc.).  </div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* Create a single tar/zip/rar file out of the top-level and all subdirectories.  This archive file should be named <Your Last Name>_Lab2.tar (or .zip or .rar, etc.).  </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* Submit it in Canvas by ''midnight at the end of Tuesday, September 14''</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* Submit it in Canvas by ''midnight at the end of Tuesday, September 14''</div></td></tr>
</table>Cerhttp://nameless.cis.udel.edu/class_wiki/index.php?title=CISC220_F2021_Lab2&diff=1951&oldid=prevCer at 15:44, 30 August 20212021-08-30T15:44:48Z<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 15:44, 30 August 2021</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l17" >Line 17:</td>
<td colspan="2" class="diff-lineno">Line 17:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* Put a '''PDF file''' <Your Name>_README.pdf with your answers to the written exercises in <Your Name>_Lab2.  This file should also contain a copy of the output of your Fraction class test program and the modified functemplate program.  Credit your source for the reducing factors method and explain what changes you had to make to IntCell, if any.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* Put a '''PDF file''' <Your Name>_README.pdf with your answers to the written exercises in <Your Name>_Lab2.  This file should also contain a copy of the output of your Fraction class test program and the modified functemplate program.  Credit your source for the reducing factors method and explain what changes you had to make to IntCell, if any.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* Create a single tar/zip/rar file out of the top-level and all subdirectories.  This archive file should be named <Your Last Name>_Lab2.tar (or .zip or .rar, etc.).  </div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* Create a single tar/zip/rar file out of the top-level and all subdirectories.  This archive file should be named <Your Last Name>_Lab2.tar (or .zip or .rar, etc.).  </div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* Submit it in Canvas by ''midnight at the end of <del class="diffchange diffchange-inline">Thursday</del>, September <del class="diffchange diffchange-inline">11</del>''</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* Submit it in Canvas by ''midnight at the end of <ins class="diffchange diffchange-inline">Tuesday</ins>, September <ins class="diffchange diffchange-inline">14</ins>''</div></td></tr>
</table>Cerhttp://nameless.cis.udel.edu/class_wiki/index.php?title=CISC220_F2021_Lab2&diff=1928&oldid=prevCer: Created page with "==Lab #2== The ''Drozdek'' references below are to the textbook. It shouldn't matter whether you have the 3rd or 4th edition. ===1. Written problems=== * '''(0.5 points)''..."2021-08-30T14:39:17Z<p>Created page with "==Lab #2== The ''Drozdek'' references below are to the textbook. It shouldn't matter whether you have the 3rd or 4th edition. ===1. Written problems=== * '''(0.5 points)''..."</p>
<p><b>New page</b></p><div>==Lab #2==<br />
<br />
The ''Drozdek'' references below are to the textbook. It shouldn't matter whether you have the 3rd or 4th edition.<br />
<br />
===1. Written problems===<br />
<br />
* '''(0.5 points)''' Drozdek exercises 1.11.3 "Providing that the declaration..."<br />
* '''(1.5 points)''' Problem set 4, questions 1, 3, 5, 6, 7, and 9 (the "Cow" class) from Google for Education [https://developers.google.com/edu/c++/quiz quiz on classes]. You are on your honor to not look up the linked answers or actually compile and run the code. Take some time to ''look'' at the code and think about what it is doing.<br />
<br />
===2. C++ programming exercises===<br />
<br />
* '''(2 points)''' Drozdek programming assignment 1.12.1: write a ''Fraction'' class with overloaded arithmetic and input/output operators. You may look up pseudocode for how to reduce factors. This class should be defined in main.cpp in a ''fractions'' directory, and there should be test code in main() that shows all of its functionality.<br />
* '''(1 point)''' Download [http://nameless.cis.udel.edu/class_data/220_f2014/code/functemplate.tar functemplate.tar], untar it, and make it a subdirectory of <Your Name>_Lab2 . Create a "templatized" function ''calculatesum()'' in main.cpp which has the same arguments and return type as findsmallest() in that file, but which ''adds'' every element of the array. Call this in example2() and example3() instead of findsmallest(). Modify the IntCell class as necessary to make this work.<br />
<br />
===3. Submission===<br />
<br />
* Put a '''PDF file''' <Your Name>_README.pdf with your answers to the written exercises in <Your Name>_Lab2. This file should also contain a copy of the output of your Fraction class test program and the modified functemplate program. Credit your source for the reducing factors method and explain what changes you had to make to IntCell, if any.<br />
* Create a single tar/zip/rar file out of the top-level and all subdirectories. This archive file should be named <Your Last Name>_Lab2.tar (or .zip or .rar, etc.). <br />
* Submit it in Canvas by ''midnight at the end of Thursday, September 11''</div>Cer