Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(int i = 0; i <4; i++) {
- System.out.print("Arbeidstimer: ");
- timer = tast.nextDouble();
- System.out.print("Timelønn: ");
- timelonn = tast.nextDouble();
- if (timer>40) {
- overtidstimer = timer - 40;
- overtidslonn += overtidstimer * timelonn *1.5;
- System.out.println(overtidslonn);
- System.out.println(overtidstimer);
- System.out.println(timelonn);
- ukelonn = ukelonn + 40 * timelonn;
- }
- else {
- ukelonn = ukelonn + timer * timelonn;
- }
- System.out.println(navn + " jobbet " + timer + " timer og tjente " + (ukelonn + overtidslonn) + "kr forrige uke" );
- }
Add Comment
Please, Sign In to add comment