Padd Solutions

Converted by Falcon Hive

import java.util.Scanner;

public class PayRaise
{
    public static void main (String[] args)
    {
        Scanner elmo = new Scanner (System.in);
       
       
        System.out.print ("How many years have you worked here? ");
        int yearsWorked = elmo.nextInt ();
       
        System.out.print ("What is your performance rating? ");
        int performanceRating = elmo.nextInt ();
       
        if (yearsWorked >= 2)
        {
            if (performanceRating < 2)
            {
                System.out.println ("Sorry, not gonna happen.");
            }
           
            else if (performanceRating < 4)
            {
                System.out.println ("Here's your raise, now GTFO!");
            }
           
            else
            {
                if (yearsWorked > 20)
                {
                    System.out.println ("Keep up the good work. Your loyalty is considered.");
                }
               
                else
                {
                    System.out.println ("You won't get a promotion, but you are having a new job in China.");
                }
            }
        }
    }
}

           

(0) Comments

Post a Comment