26 lines
508 B
C++
26 lines
508 B
C++
|
//
|
||
|
// Main module of the application.
|
||
|
//
|
||
|
|
||
|
#include "impl.h"
|
||
|
#include "user.h"
|
||
|
#include <iostream>
|
||
|
|
||
|
company ACME;
|
||
|
|
||
|
int main( void )
|
||
|
{
|
||
|
ACME.addManager ( "Bill", 40, 15 );
|
||
|
ACME.addProgrammer( "Bob", 25, 35 );
|
||
|
ACME.addProgrammer( "Julie", 30, 35 );
|
||
|
ACME.addOvertime( "Bob", 10 );
|
||
|
|
||
|
if( ACME.payRoll() == 4300 ) {
|
||
|
std::cout << "\nTest Successful." << std::endl;
|
||
|
return( 0 );
|
||
|
} else {
|
||
|
std::cout << "\nTest Failed." << std::endl;
|
||
|
return( 1 );
|
||
|
}
|
||
|
}
|