Advertisement
Guest User

Untitled

a guest
Sep 17th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.52 KB | None | 0 0
  1. package Rechnung;
  2.  
  3. public class rechnung {
  4.  
  5. private int mwst;
  6. private int vk;
  7. private int gesamt;
  8.  
  9. public void setvariablen(int a, int b){
  10.     mwst = a;
  11.     vk = b;
  12. }
  13. public int getMwst() {
  14.     return mwst;
  15. }
  16. public void setMwst(int mwst) {
  17.     this.mwst = mwst;
  18. }
  19. public int getVk() {
  20.     return vk;
  21. }
  22. public void setVk(int vk) {
  23.     this.vk = vk;
  24. }
  25. public int getGesamt() {
  26.     return gesamt;
  27. }
  28.  
  29. public void setGesamt(int gesamt) {
  30.     this.gesamt = gesamt;
  31. }
  32.  
  33. void berechnung(){
  34.    
  35.     gesamt = vk * mwst / 100;
  36.    
  37. }
  38.        
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement