@@ -0,0 +1,1327 @@
+import java.util.Scanner;%0A%0Apublic class put%7B%0A%0A        public static void main(String%5B%5D args)%7B%0A%0A                Scanner scan = new Scanner(System.in);%0A                System.out.println(%22Type short or long%22);%0A                String ls = scan.next();%0A                System.out.println(%22Type The Strike Price%22);%0A                double k = scan.nextDouble();%0A                System.out.println(%22Type The Premium%22);%0A                double p = scan.nextDouble();%0A                double profit = 0;%0A                System.out.println(%22What is the price of the underlying%22);%0A                double st = scan.nextDouble();%0A                if(ls.equals(%22short%22))%7B%0A                        profit = p + min(0, st-k);%0A                %7D%0A                else%7B%0A                        profit = -p + max(0, k-st);%0A                %7D%0A                System.out.println(%22You will make %22 + profit);%0A        %7D%0A%0A        public static double max(double a, double b)%7B%0A                if(a %3E b)%7B%0A                        return a;%0A                %7D%0A                else%7B%0A                        return b;%0A                %7D%0A        %7D%0A%0A        public static double min(double a, double b)%7B%0A                if(a %3C b)%7B%0A                        return a;%0A                %7D%0A                else%7B%0A                        return b;%0A                %7D%0A        %7D%0A%7D%0A

Create put.java