@@ -0,0 +1,1117 @@
+import java.util.Scanner;%0A%0Apublic class Volleyball %7B%0A    public static void main(String%5B%5D args) %7B%0A        Scanner scanner = new Scanner(System.in);%0A        String year = scanner.nextLine();%0A        int p = Integer.parseInt(scanner.nextLine());%0A        int homeVisits = Integer.parseInt(scanner.nextLine());%0A        double weekends = 48 - homeVisits;%0A%0A        double volleyballDays = weekends * 0.75;%0A        volleyballDays += homeVisits;%0A        double holidays = p * (2.0 / 3);%0A        volleyballDays = volleyballDays + holidays;%0A%0A        if (year.equals(%22leap%22)) %7B%0A            volleyballDays = volleyballDays * 1.15;%0A        %7D%0A        System.out.println(truncateDouble(volleyballDays, 0));%0A    %7D%0A%0A    private static double truncateDouble(double number, int numDigits) %7B%0A        double result = number;%0A        String arg = %22%22 + number;%0A        int idx = arg.indexOf('.');%0A        if (idx != -1) %7B%0A            if (arg.length() %3E idx + numDigits) %7B%0A                arg = arg.substring(0, idx + numDigits + 1);%0A                result  = Double.parseDouble(arg);%0A            %7D%0A        %7D%0A        return result ;%0A    %7D%0A%7D%0A

Create 12.Volleyball.java