From d561c9360573280773f4e71e78501722e64e8d70 Mon Sep 17 00:00:00 2001 From: Chitraank Singh <45902220+Chitraank@users.noreply.github.com> Date: Thu, 4 Jun 2020 13:16:00 +0530 Subject: [PATCH] Delete TotalSalary.java --- Getting_Started_With_Java/TotalSalary.java | 29 ---------------------- 1 file changed, 29 deletions(-) delete mode 100644 Getting_Started_With_Java/TotalSalary.java diff --git a/Getting_Started_With_Java/TotalSalary.java b/Getting_Started_With_Java/TotalSalary.java deleted file mode 100644 index 065ee99..0000000 --- a/Getting_Started_With_Java/TotalSalary.java +++ /dev/null @@ -1,29 +0,0 @@ -import java.util.Scanner; -import java.lang.Math; //This import helps in reducing the execution time. -public class Main -{ - public static void main(String[] args) - { - Scanner scan=new Scanner(System.in); - int bs=scan.nextInt(); - String str=scan.next(); - char ch=str.charAt(0); - int allow; - if(ch==65) - { - allow=1700; - } - else if(ch==66) - { - allow=1500; - } - else - { - allow=1300; - } - double ts=((bs+(0.20*bs)+(0.50*bs)+allow)-(0.11*bs)); - double roundSalary=Math.round(ts); - int totalSalary=(int)(roundSalary); - System.out.println(totalSalary); - } -}