Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package seminar4.pkg2;
- import java.util.Scanner;
- /**
- *
- * @author Emin
- */
- public class Seminar42 {
- double deposit;
- double deposit1;
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- Seminar42 t = new Seminar42();
- t.kebab();
- double a = t.bonus();
- System.out.println("The amount of money you have is " + a);
- }
- public void kebab(){
- Scanner kel = new Scanner(System.in);
- System.out.println("Deposit money motherfucker");
- deposit = kel.nextInt();
- }
- public double bonus(){
- double b = 1.10;
- double a = deposit * b;
- return a;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement