public class Salary
{
	public static void main(String[] args)
	{
		double currentSalary;
		double rating;
		double raise=0;
		//Get the current salary and performance rating
		System.out.print("Enter the current salary: ");
		currentSalary = MyInput.readDouble();
		System.out.print("Enter the performance rating: ");
		rating = MyInput.readDouble();
		//compute the raise -- use if...else statement
	    if (rating == 1)
	       {raise = currentSalary*0.06;}
	    else
	    if (rating == 2)	
	       {raise = currentSalary*0.04;}
	    else
	    if (rating == 3)
	       {raise = currentSalary*0.015;}
	    else
            System.out.println("Input Error");
		
		
		//output the result
		System.out.println("Amount of your raise: $" + raise);
		System.out.println("Your new salary: $"+ (currentSalary + raise));
	}
}
