Sim0o0na

02. Annual Salary

Apr 30th, 2018
283
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace AnnualSalary
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             int experience = int.Parse(Console.ReadLine());
  13.             string specialty = Console.ReadLine();
  14.             double salary = 0;
  15.             if (specialty == "C# Developer")
  16.                 salary = 5400;
  17.             else if (specialty == "Java Developer")
  18.                 salary = 5700;
  19.             else if (specialty == "Front-End Web Developer")
  20.                 salary = 4100;
  21.             else if (specialty == "UX / UI Designer")
  22.                 salary = 3100;
  23.             else if (specialty == "Game Designer")
  24.                 salary = 3600;
  25.  
  26.             if (experience <= 5)
  27.                 salary -= salary * 0.658;
  28.  
  29.             double yearIncome = 12 * salary;
  30.             Console.WriteLine($"Total earned money: {yearIncome:f2} BGN");
  31.         }
  32.     }
  33. }
RAW Paste Data