Difference: LabKenyon (7 vs. 8)

Revision 82016-10-20 - JimSkon

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Line: 6 to 6
 

Lab 6 - Tallying

Due: Oct 25, 11:55pm

Changed:
<
<
Moodle Link
N001_0690_002.jpg
>
>
Moodle Link
N001_0690_002.jpg
 

Instructions

  • Turn in the code (a cpp file or ideone.com link), and the run outputs as requested below.
Line: 15 to 14
 
  • You will need to do a sort for this problem. You may use the sort function given in class, or write your own!

Grading Table

Requirement Grading Comments Points Score
Changed:
<
<
Good clean, easy to understand input and output operations (All sort code included)   10  
Program handles input error conditions appropriately   10  
Complete source code with good formatting and organization, variables names, and comments   10  
>
>
Easy to use user interface   10  
C++ code includes comments, with project information at top, pre and post conditions for each functions and other cmments as needed.   10  
The C++ code has good formatting, indentation, and organization.   10  
Good variable and function names, appropriate use of constants rather then literal numbers.   10  
 
Functions: Logic divided up into cohesive functions with a single purpose   20  
Changed:
<
<
Runs: Run examples from trials with correct output on required trial data   50  
>
>
Runs: Run examples from trials with correct output   40  
Total   100  
 

Problem

Line: 42 to 43
 
  1. Don't try to code this program until you work out an algorithm on paper, and can manually step through it on paper!
  2. It is MUCH easier to count the number of occurances if you sort the numbers first, then do the counting.
  3. Use additional arrays to store the unique numbers found, and the matching counts for each of those unique numbers.
Added:
>
>
  1. You will need to break this up into functions. Do no attempt to do it all in a single program. Some likely functions:
    • Sort array of integers (given array)
    • Display solution table (given arrays)
    • Tally numbers in an array
 

Turn In

Runs of the following:

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback