Confidential - Acme Engineering

             Resource Standard Metrics™ for C, C++, C# and Java
                   Version 7.75 - mSquaredTechnologies.com

  License Type: Shareware Evaluation License
  Licensed To : Shareware End User - Distribute Freely
  License No. : SW1380                          License Date: Dec 05, 1998
  Build Date  : Aug 16 2009                         Run Date: Aug 16, 2009 
  ©1996-2009 M Squared Technologies LLC™  
  ________________________________________________________________________

  License File: C:\Program Files\MSquared\M2 RSM\rsm.lic
  Config. File: C:\Program Files\MSquared\M2 RSM\rsm.cfg
  Command Line: -H -Oworkfile_wD_baseline2.htm -wD -wd -wcreate . -wFile d
                at baseline_2.dat ball.cpp ball.h lotto.h 
  Creating Work File: baseline_2.dat

  File: ball.h
  Line #  Type Differential Code      Source Code Line
  ------------------------------------------------------------------------
       1 |  C  225.884067552548200  | //-----------------------------------------------------------------------------
       2 |  C  186.588095238095240  | // ball.h
       3 |  C  70.500000000000000   | //
       4 |  C  376.290800684160730  | // Specification for the Ball object for the lotto machine
       5 |  C  70.500000000000000   | //
       6 |  C  202.539682539682560  | // Midterm
       7 |  C  238.501409701409700  | // Robert Mudge
       8 |  C  150.208405483405500  | // 10/10/1999
       9 |  C  70.500000000000000   | //
      10 |  C  225.884067552548200  | //-----------------------------------------------------------------------------
      12 |  L  243.841203241203260  | #ifndef BALL_H
      13 |  L  241.365012765012750  | #define BALL_H
      15 |  L  281.815234765234720  | #include 
      17 |  L  340.876671939171900  | namespace MIDTERM
      18 |  N  123.000000000000000  | {
      20 |  L  287.440476190476200  |   class Ball
      21 |  N  123.000000000000000  |   {
      22 |  L  275.952380952380910  |     public:
      24 |  C  222.352895266779030  |       //-----------------------------------------------------------------------
      25 |  C  244.036113886113870  |       // Constructor
      26 |  G  263.855272505272520  |       Ball(int n = 0);
      28 |  C  222.352895266779030  |       //-----------------------------------------------------------------------
      29 |  C  233.851623376623390  |       // Destructor
      30 |  G  259.832142857142860  |       ~Ball();
      32 |  C  222.352895266779030  |       //-----------------------------------------------------------------------
      33 |  G  385.723949128786610  |       void show(void) const;
      35 |  C  222.352895266779030  |       //-----------------------------------------------------------------------
      36 |  G  392.483026454969260  |       void set_number(int n);
      38 |  C  222.352895266779030  |       //-----------------------------------------------------------------------
      39 |  G  400.246694939906940  |       int get_number(void) const;
      41 |  C  222.352895266779030  |       //-----------------------------------------------------------------------
      42 |  C  372.652967925856730  |       // If not picked, set picked, return true else return false
      43 |  G  334.557423132423140  |       bool pick(void);
      45 |  C  222.352895266779030  |       //-----------------------------------------------------------------------
      46 |  G  360.693679931180040  |       void reset(void);
      48 |  L  293.911904761904790  |     private:
      49 |  G  312.925000000000010  |       int number;
      50 |  G  311.503715728715750  |       bool picked;
      51 |  G  356.950067089773030  |       std::string color;
      52 |  N  154.500000000000000  |   };
      54 |  N  125.000000000000000  | }
      56 |  L  185.166666666666660  | #endif
      58 |  C  222.061688311688330  | // eof ball.h

  File: lotto.h
  Line #  Type Differential Code      Source Code Line
  ------------------------------------------------------------------------
       1 |  C  225.884067552548200  | //-----------------------------------------------------------------------------
       2 |  C  270.390290265290280  | // lottomachine.h
       3 |  C  70.500000000000000   | //
       4 |  C  337.104269046881310  | // Specification for the lotto machine
       5 |  C  70.500000000000000   | //
       6 |  C  202.539682539682560  | // Midterm
       7 |  C  238.501409701409700  | // Robert Mudge
       8 |  C  150.208405483405500  | // 10/10/1999
       9 |  C  70.500000000000000   | //
      10 |  C  225.884067552548200  | //-----------------------------------------------------------------------------
      12 |  L  281.272438741169420  | #ifndef LOTTOMACHINE_H
      13 |  L  278.796248264978940  | #define LOTTOMACHINE_H
      15 |  L  251.639821289821270  | #ifdef STDVECTOR
      16 |  L  281.152514152514190  |   #include 
      17 |  L  185.166666666666660  | #endif
      19 |  L  268.975080475080460  | #include "ball.h"
      21 |  L  340.876671939171900  | namespace MIDTERM
      22 |  N  123.000000000000000  | {
      24 |  L  354.039497593909400  |   class LottoMachine
      25 |  N  123.000000000000000  |   {
      27 |  L  275.952380952380910  |     public:
      29 |  C  222.352895266779030  |       //-----------------------------------------------------------------------
      30 |  G  397.016188328480550  |       LottoMachine(int number_of_ball = 0);
      32 |  C  222.352895266779030  |       //-----------------------------------------------------------------------
      33 |  G  351.984328171828170  |       ~LottoMachine();
      35 |  C  222.352895266779030  |       //-----------------------------------------------------------------------
      36 |  G  385.723949128786610  |       void show(void) const;
      38 |  C  222.352895266779030  |       //-----------------------------------------------------------------------
      39 |  G  363.990962932836000  |       const Ball& pick(void);
      41 |  C  222.352895266779030  |       //-----------------------------------------------------------------------
      42 |  G  360.693679931180040  |       void reset(void);
      44 |  C  222.352895266779030  |       //-----------------------------------------------------------------------
      45 |  G  421.033471245666140  |       int get_balls_picked(void) const;
      47 |  L  293.911904761904790  |     private:
      49 |  C  396.959582933248730  |       // Example using either a dynmically sized array of type std::vector
      50 |  C  355.857508287135320  |       // or using a normal array of ball objects
      51 |  L  251.639821289821270  |       #ifdef STDVECTOR
      52 |  G  385.045518977664640  |         std::vector machine;
      53 |  L  170.449999999999990  |       #else
      54 |  G  411.454852144141170  |         enum MachineSize{ NUMBER_OF_BALLS = 49 };
      55 |  G  348.557959010511130  |         Ball machine[NUMBER_OF_BALLS];
      56 |  L  185.166666666666660  |       #endif
      58 |  g  465.048561361352820  |       int number_of_balls;  // number of balls in the machine
      60 |  g  470.720510925669540  |       int balls_picked;  // keep track of the number of balls picked.
      62 |  N  154.500000000000000  |   };
      64 |  N  125.000000000000000  | }
      65 |  L  185.166666666666660  | #endif
      67 |  C  280.514921752653950  | // eof - lottomachine.h

  File: ball.cpp
  Line #  Type Differential Code      Source Code Line
  ------------------------------------------------------------------------
       1 |  C  206.346593166000620  |   //-------------------------------------------------
       2 |  L  233.500000000000000  |   void 
       3 |  L  326.079555497821730  |   Ball::set_number(int n)
       4 |  N  123.000000000000000  |   {
       5 |  C  312.824764599155460  |     // set the number of the ball
       6 |  G  297.553174603174570  |     number = n;
       7 |  N  125.000000000000000  |   }
       9 |  C  206.346593166000620  |   //-------------------------------------------------
      10 |  L  233.500000000000000  |   void
      11 |  L  297.101205820323460  |   Ball::reset(void)
      12 |  N  123.000000000000000  |   {
      13 |  C  367.136757305344870  |     // return the picked state of the ball to false
      14 |  G  327.568403818403850  |     picked = false;
      15 |  N  125.000000000000000  |   }
      17 |  C  206.346593166000620  |   //-------------------------------------------------
      18 |  L  233.500000000000000  |   void
      19 |  L  335.556562650530510  |   Ball::some_newfunc(void)
      20 |  N  123.000000000000000  |   {
      22 |  L  217.500000000000000  |   bool
      23 |  C  367.136757305344870  |     // return the picked state of the ball to false
      24 |  G  327.568403818403850  |     picked = false;
      25 |  N  125.000000000000000  |   }
      27 |  C  206.346593166000620  |   //-------------------------------------------------
      28 |  L  217.500000000000000  |   bool
      29 |  L  288.328991841491810  |   Ball::pick(void)
      30 |  N  123.000000000000000  |   {
      31 |  C  341.693615091348080  |     // If the ball is not picked, set pick to true
      32 |  C  366.420253276745200  |     // and return true else return false as the ball
      33 |  C  285.265474467912550  |     // could not be picked. 
      34 |  G  390.765691789826230  |     bool pick_state = (bool)FALSE;
      36 |  L  269.950685425685440  |     if (!picked)
      37 |  N  123.000000000000000  |     {
      38 |  G  322.796103896103940  |       picked = true;
      39 |  G  356.861312298812380  |       pick_state = true;
      40 |  N  125.000000000000000  |     }
      42 |  G  374.647643979687360  |     return (pick_state);     
      43 |  N  125.000000000000000  |   }

  ------------------------------------------------------------------------

                     ~~ Total Metrics For 3 Files ~~

  ------------------------------------------------------------------------

                             ~~ File Summary ~~

  C Source Files *.c ....:          0  C/C++ Include Files *.h:          2
  C++ Source Files *.c* .:          1  C++ Include Files *.h* :          0
  C# Source Files *.cs ..:          0  Java Source File *.jav*:          0
  Other Source Files ....:          0
  Total File Count ......:          3


          Shareware evaluation licenses process only 20 files.
          Paid licenses enable processing for an unlimited number of files.

  ________________________________________________________________________

          Confidential - Acme Engineering