Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int id[10];
  8. double gross[10];
  9. int hours;
  10.  
  11. for (int i=0;i<10;i++) {
  12. cout << "ID # ";
  13. cin >> id[i];
  14. cout << "Hours? ";
  15. cin >> hours;
  16. gross[i]=hours*7.25;
  17. }
  18.  
  19. for (int i=0;i<10;i++) {
  20. cout << "\n------------------------------------------\n";
  21. cout << "ID # " << id[i] << "\n";
  22. cout << "Gross pay: " << gross[i] << "\n";
  23. cout << "------------------------------------------\n";
  24. }
  25.  
  26.  
  27.  
  28. return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement