this program is supposed to take in sales figures in dollars, convert them into a salary for the salesmen, and then display the number of salaries that fall within certain ranges (200-299 ect.)
However i keep getting incorrect results
no matter what i enter i keep getting 11 for the range 200-299 and 40 for the range over 1000
i would appreciate help finding the problem
here is the code for the 3 files
sales.h
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// Class automatically generated by Dev-C++ New Class wizard
#ifndef SALESREPORT_H
#define SALESREPORT_H
// No description
class SalesReport
{
public:
// class constructor
SalesReport( int [] );
int Salary( int );
void DisplaySalary();
private:
int sales[50]; // sales
};
#endif // SALESREPORT_H