Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void getEmployeeInfo()
- {
- long empId[7];
- empId[0] = 5658845;
- empId[1] = 4520125;
- empId[2] = 7895122;f
- empId[3] = 8777541;
- empId[4] = 8451277;
- empId[5] = 1302850;
- empId[6] = 7580489;
- cout << " The Employer Id's are: \n";
- for (int i = 0; i < 7; i++)
- {
- //Display EmpId names
- cout << empId[i] << endl;
- }
- }
- int main()
- {
- void getEmployeeInfo();
- long hours[7];
- hours[0] = 0;
- hours[1] = 0;
- hours[2] = 0;
- hours[3] = 0;
- hours[4] = 0;
- hours[5] = 0;
- hours[6] = 0;
- for (int h = 0; h < 7; h++)
- {
- //let user enter hours
- cout << " Enter the hours you've worked.\n";
- cin >> hours[h];
- cout << " The hours entered are: \n" << hours[h] << endl;
- }
- double payRate[7];
- payRate[0] = 0.0;
- payRate[1] = 0.0;
- payRate[2] = 0.0;
- payRate[3] = 0.0;
- payRate[4] = 0.0;
- payRate[5] = 0.0;
- payRate[6] = 0.0;
- for (int p = 0; p < 7; p++)
- {
- cout << "Enter your Pay rate: \n";
- }
- double wages[7];
- wages[0] = 0.0;
- wages[1] = 0.0;
- wages[2] = 0.0;
- wages[3] = 0.0;
- wages[4] = 0.0;
- wages[5] = 0.0;
- wages[6] = 0.0;
- for (int w = 0; w < 7; w++)
- {
- cout << " Enter your wages: \n";
- cin >> wages[w];
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement