Advertisement
tenachev

Annual Salary

Apr 29th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.49 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Demo2 {
  4.     public static void main(String[] args) {
  5.         Scanner scanner = new Scanner(System.in);
  6.  
  7.         int yearsProfesion = Integer.parseInt(scanner.nextLine());
  8.         String special = scanner.nextLine();
  9.  
  10.         int mouth = 12;
  11.         double percent = 0.342;
  12.  
  13.         int CshaphDeveloper = 5400;
  14.         ;
  15.         int JavaDeveloper = 5700;
  16.         int FrontEndWebDeveloper = 4100;
  17.         int UXUIDesigner = 3100;
  18.         int GameDesigner = 3600;
  19.  
  20.         double moneyFroC = 0;
  21.  
  22.         if (yearsProfesion <= 5) {
  23.             if (special.equals("C# Developer")) {
  24.                 double one = (CshaphDeveloper * mouth) * percent;
  25.                 System.out.printf("Total earned money: %.2f BGN", one);
  26.  
  27.             } else if (special.equals("Java Developer")) {
  28.                 double two = (JavaDeveloper * mouth) * percent;
  29.                 System.out.printf("Total earned money: %.2f BGN", two);
  30.  
  31.             } else if (special.equals("Front-End Web Developer")) {
  32.                 double three = (FrontEndWebDeveloper * mouth) * percent;
  33.                 System.out.printf("Total earned money: %.2f BGN", three);
  34.  
  35.             } else if (special.equals("UX / UI Designer")) {
  36.  
  37.                 double four = (UXUIDesigner * mouth) * percent;
  38.                 System.out.printf("Total earned money: %.2f BGN", four);
  39.  
  40.             } else if (special.equals("Game Designer")) {
  41.                 double five = (GameDesigner * mouth) * percent;
  42.                 System.out.printf("Total earned money: %.2f BGN", five);
  43.             }
  44.         }else if (special.equals("C# Developer")) {
  45.             double one = CshaphDeveloper * mouth;
  46.             System.out.printf("Total earned money: %.2f BGN", one);
  47.  
  48.         } else if (special.equals("Java Developer")) {
  49.             double two = JavaDeveloper * mouth;
  50.             System.out.printf("Total earned money: %.2f BGN", two);
  51.  
  52.         } else if (special.equals("Front-End Web Developer")) {
  53.             double three = FrontEndWebDeveloper * mouth;
  54.             System.out.printf("Total earned money: %.2f BGN", three);
  55.  
  56.         } else if (special.equals("UX / UI Designer")) {
  57.  
  58.             double four = UXUIDesigner * mouth;
  59.             System.out.printf("Total earned money: %.2f BGN", four);
  60.  
  61.         } else if (special.equals("Game Designer")) {
  62.             double five = GameDesigner * mouth;
  63.             System.out.printf("Total earned money: %.2f BGN", five);
  64.  
  65.         }
  66.     }
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement