LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-26-2004, 10:14 AM   #1
TriggerJ
LQ Newbie
 
Registered: Sep 2003
Location: Texas
Posts: 14

Rep: Reputation: 0
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;
}
 
Old 01-26-2004, 10:47 AM   #2
Mohsen
Member
 
Registered: Feb 2003
Location: Iran
Distribution: Solaris 10
Posts: 201

Rep: Reputation: 30
I have no problem running this program.
are you using VC++ 6?
 
Old 01-26-2004, 10:54 AM   #3
TriggerJ
LQ Newbie
 
Registered: Sep 2003
Location: Texas
Posts: 14

Original Poster
Rep: Reputation: 0
It's the 2002 Visual C++.NET
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in program dludenar Fedora 1 10-07-2005 03:20 AM
Program error mdkusr Linux - General 2 03-12-2005 01:19 PM
Looking for a program that will copy BDG CDs Tux_Phoenix Linux - Software 0 02-03-2005 10:51 PM
C Program Error? linux_GNUbie Programming 5 12-01-2003 03:18 AM
Shell program error, can anyone see it? hamster Programming 2 04-16-2003 03:10 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration