#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int count_emp, number_emp;
float rate,pay,total_pay=0.0,hours;
cout<<"Enter Number Og Employees> ";
cin>>number_emp;
for(count_emp=0;count_emp < number_emp; count_emp+=1){
cout<<"hours> ";
cin>>hours;
cout<<"Rate> $ ";
cin>>rate;
pay= hours*rate;
cout<<"pay is= $ "<<pay<<endl;
total_pay=total_pay+pay;
}
cout<<"All Employes processed"<<endl;
cout<<"Total Payroll is "<<total_pay<<endl;
system("PAUSE");
return EXIT_SUCCESS;
}
c++ :
0 komentar:
Posting Komentar