Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6.  
  7. package seminar4.pkg2;
  8.  
  9. import java.util.Scanner;
  10.  
  11. /**
  12. *
  13. * @author Emin
  14. */
  15. public class Seminar42 {
  16.  
  17.  
  18. double deposit;
  19. double deposit1;
  20.  
  21.  
  22. /**
  23. * @param args the command line arguments
  24. */
  25. public static void main(String[] args) {
  26. Seminar42 t = new Seminar42();
  27.  
  28. t.kebab();
  29.  
  30. double a = t.bonus();
  31. System.out.println("The amount of money you have is " + a);
  32.  
  33.  
  34.  
  35.  
  36. }
  37. public void kebab(){
  38.  
  39. Scanner kel = new Scanner(System.in);
  40.  
  41. System.out.println("Deposit money motherfucker");
  42. deposit = kel.nextInt();
  43.  
  44.  
  45.  
  46.  
  47.  
  48. }
  49.  
  50. public double bonus(){
  51. double b = 1.10;
  52. double a = deposit * b;
  53. return a;
  54. }
  55.  
  56.  
  57.  
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement