BDG Error on C++ program
I'm getting the following error:
Loaded 'C:\WINNT\system32\KERNEL32.DLL', Cannot find or open a required DBG file.
Every time this program does a calculation:
//Write a program that computes the weekly pay of managers, hourly
//employee's, commission employee's and piece workers.
#include <iostream>
#include <cstdlib>
#include <iomanip>
using namespace std;
int main()
{
int payroll;
float manager, hourly, commission, piecew;
double numhours, pieces;
cout<< "Enter a payroll code from below: \n";
cout<<"\n 1 for Managers: ";
cout<<"\n 2 for Hourly Employees: ";
cout<<"\n 3 for Commission Employees: ";
cout<<"\n 4 for Piece Workers: ";
cin>>payroll;
switch (payroll)
{
case 1:
cout<<"\nEnter the fixed weekly salary for managers: ";
cin>>manager;
cout<<"\nThe weekly salary for your managers is: "<<manager<<endl;
break;
case 2:
cout<<"\nEnter the fixed hourly wage: ";
cin>>hourly;
cout<<"\nEnter the number of hours worked: ";
cin>>numhours;
if (numhours<=40)
{
cout<<"\nThe weekly wage for your hourly employee's is: ";
cout<<(hourly*40)<<endl;
}
else
{
cout<<"\nThe weekly wage for your hourly employee's is: ";
cout<<((hourly*40)+((numhours-40)*(1.5*hourly)))<<endl;
}
break;
case 3:
{
cout<<"\nEnter the gross weekly sales for the commission employee's: ";
cin>>commission;
cout<<"\nThe weekly wage for your commission employee's is: ";
cout<<(250+(0.057*commission))<<endl;
}
break;
case 4:
{
cout<<"\nEnter the fixed salary per piece produced: ";
cin>>piecew;
cout<<"\nEnter the amount of pieces produced by the worker: ";
cin>>pieces;
cout<<"\nThe weekly wage for your piece workers is: ";
cout<<(piecew*pieces)<<endl;
}
break;
}
return 0;
}
|