Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Demo2 {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int yearsProfesion = Integer.parseInt(scanner.nextLine());
- String special = scanner.nextLine();
- int mouth = 12;
- double percent = 0.342;
- int CshaphDeveloper = 5400;
- ;
- int JavaDeveloper = 5700;
- int FrontEndWebDeveloper = 4100;
- int UXUIDesigner = 3100;
- int GameDesigner = 3600;
- double moneyFroC = 0;
- if (yearsProfesion <= 5) {
- if (special.equals("C# Developer")) {
- double one = (CshaphDeveloper * mouth) * percent;
- System.out.printf("Total earned money: %.2f BGN", one);
- } else if (special.equals("Java Developer")) {
- double two = (JavaDeveloper * mouth) * percent;
- System.out.printf("Total earned money: %.2f BGN", two);
- } else if (special.equals("Front-End Web Developer")) {
- double three = (FrontEndWebDeveloper * mouth) * percent;
- System.out.printf("Total earned money: %.2f BGN", three);
- } else if (special.equals("UX / UI Designer")) {
- double four = (UXUIDesigner * mouth) * percent;
- System.out.printf("Total earned money: %.2f BGN", four);
- } else if (special.equals("Game Designer")) {
- double five = (GameDesigner * mouth) * percent;
- System.out.printf("Total earned money: %.2f BGN", five);
- }
- }else if (special.equals("C# Developer")) {
- double one = CshaphDeveloper * mouth;
- System.out.printf("Total earned money: %.2f BGN", one);
- } else if (special.equals("Java Developer")) {
- double two = JavaDeveloper * mouth;
- System.out.printf("Total earned money: %.2f BGN", two);
- } else if (special.equals("Front-End Web Developer")) {
- double three = FrontEndWebDeveloper * mouth;
- System.out.printf("Total earned money: %.2f BGN", three);
- } else if (special.equals("UX / UI Designer")) {
- double four = UXUIDesigner * mouth;
- System.out.printf("Total earned money: %.2f BGN", four);
- } else if (special.equals("Game Designer")) {
- double five = GameDesigner * mouth;
- System.out.printf("Total earned money: %.2f BGN", five);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement