Guest User

Untitled

a guest
Oct 19th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. for(int i = 0; i <4; i++) {
  2.  
  3. System.out.print("Arbeidstimer: ");
  4. timer = tast.nextDouble();
  5.  
  6. System.out.print("Timelønn: ");
  7. timelonn = tast.nextDouble();
  8.  
  9. if (timer>40) {
  10. overtidstimer = timer - 40;
  11. overtidslonn += overtidstimer * timelonn *1.5;
  12. System.out.println(overtidslonn);
  13. System.out.println(overtidstimer);
  14. System.out.println(timelonn);
  15.  
  16. ukelonn = ukelonn + 40 * timelonn;
  17. }
  18. else {
  19. ukelonn = ukelonn + timer * timelonn;
  20. }
  21.  
  22.  
  23.  
  24. System.out.println(navn + " jobbet " + timer + " timer og tjente " + (ukelonn + overtidslonn) + "kr forrige uke" );
  25.  
  26.  
  27.  
  28. }
Add Comment
Please, Sign In to add comment