0 1 1 0 1 0 1 1 + 0 0 1 1 0 1 0 0 ------------------ <---- your answer __________________
// *********************************************************** // File: Salary.java // // Compute the raise and new salary for an employee // *********************************************************** import cs1.Keyboard; public class Salary { public static void main (String[] args) { double currentSalary; // current annual salary int rating; // performance rating double raise; // dollar amount of the raise // Get the current salary and performance rating System.out.print ("Enter the current salary: "); currentSalary = Keyboard.readDouble(); System.out.print ("Enter the performance rating: "); rating = Keyboard.readInt(); // Compute the basic raise -- Use if ... else ... // Add an extra $500 to the raise if the performance rating is 10 // (use an if with no else!) // Print the results System.out.println ("Amount of your raise: $" + raise); System.out.println ("Your new salary: $" + currentSalary + raise); } }