@@ -0,0 +1,1117 @@
+import java.util.Scanner;%0A%0Apublic class Main %7B%0A    public static void main(String%5B%5D args) %7B%0A        Scanner scanner = new Scanner(System.in);%0A        int numOfDays = Integer.parseInt(scanner.nextLine());%0A        double leftFoodKG = Double.parseDouble(scanner.nextLine());%0A        double foodForDogKG = Double.parseDouble(scanner.nextLine());%0A        double foodForCatKG = Double.parseDouble(scanner.nextLine());%0A        double foodForTurtleGR = Double.parseDouble(scanner.nextLine());%0A%0A        double foodForDogDay = numOfDays * foodForDogKG;%0A        double foodForCatDay = numOfDays * foodForCatKG;%0A        double foodForTurtleDay = numOfDays * foodForTurtleGR / 1000.0;%0A        double totalFood = foodForDogDay + foodForCatDay + foodForTurtleDay;%0A%0A        double left = 0;%0A        if (totalFood %3C= leftFoodKG) %7B%0A            left = leftFoodKG - totalFood;%0A            System.out.println((int)(Math.floor(left)) + %22 kilos of food left.%22);%0A        %7D%0A        else %7B%0A            left = totalFood - leftFoodKG;%0A            System.out.println((int)(Math.ceil(left)) + %22 more kilos of food are needed.%22);%0A        %7D%0A    %7D%0A%7D%0A

Create 02.Pets.java