@@ -0,0 +1,833 @@
+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        double heritage = Double.parseDouble(scanner.nextLine());%0A        int yearToLive = Integer.parseInt(scanner.nextLine());%0A        int years = 18;%0A%0A        for (int i = 1800; i %3C= yearToLive; i++) %7B%0A            if (i %25 2 == 0) %7B%0A                heritage -= 12_000;%0A            %7D%0A            else %7B%0A                heritage -= (12_000 + 50 * years);%0A            %7D%0A            years++;%0A        %7D%0A%0A        if (heritage %3C 0) %7B%0A            System.out.printf(%22He will need %25.2f dollars to survive.%22, Math.abs(heritage));%0A        %7D%0A        else %7B%0A            System.out.printf(%22Yes! He will live a carefree life and will have %25.2f dollars left.%22,%0A                heritage);%0A        %7D%0A    %7D%0A%7D%0A

Create 04.BackToThePast.java