public class IfExample { public static void main(String[] args) { int hours; double salary; boolean manager; hours = 7; manager = true; if (hours == 8) { System.out.println("Full-time Employee"); if (manager) salary = 60.0; else salary = 30.0; } else { System.out.println("Part-time Employee"); salary = 15.0; } System.out.println("Salary: " + salary); } }