diff --git a/_01_02b/Employee.java b/_01_02b/Employee.java index 12928d5..c90a379 100644 --- a/_01_02b/Employee.java +++ b/_01_02b/Employee.java @@ -5,27 +5,34 @@ public class Employee { public static void main(String[] args) { // Create a variable called age of type int and assign it the value 29. - +int age=29; // Print the age variable to the console. - +System.out.println(age); // Create a variable called isAManager of type boolean and assign it the value // true. + boolean isAManager =true; // Print the isAManager variable to the console. + System.out.println(isAManager); // Create a variable called yearsOfService of type double and assign it the // value 2.5. + double yearsOfService= 2.5; // Print the yearsOfService variable to the console. // Create a variable called baseSalary of type int and assign it the value 3000. - +int baseSalary=3000; // Create a variable called overtimePayment of type int and assign it the value // 40. + int overtimePayment=400; + // Create a variable called totalPayment of type int and assign it to the value // of baseSalary added to overtimePayment. + int totalPayment = baseSalary+overtimePayment; + // Print the totalPayment variable to the console. // Create three variables all of type double on a single line.