Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void setAanstellingspercentage(int perc) {
- if (perc < 0 ) {
- perc = 0;
- } else if (perc > 100){
- perc = 100;
- }
- if (this.salaris == 0.0 || this.aanstellingspercentage == 0) {
- this.aanstellingspercentage = perc;
- } else {
- double verhouding = (double)perc / this.aanstellingspercentage;
- this.salaris *= verhouding;
- this.aanstellingspercentage = perc;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement