@@ -0,0 +1,1552 @@
+/**%0A * David P. Lopez%0A * COP2800 Final Exam Extra Credit%0A * Programming Assignment%0A */%0Apackage discount;%0Aimport java.util.*;%0A/**%0A * 305.467.5719%0A * @author david.lopez016@mymdc.net%0A */%0A%0A   %0Apublic class DowntownMarketing %0A%7B%0A    public static void main(String%5B%5D args) %0A    %7B %0A        int shopNo; %0A        double amount = 0.0; %0A        int count = 0; int discount = 0; %0A        Scanner input = new Scanner(System.in); %0A        ArrayList %3C Integer%3E shopList = new ArrayList %3C %3E();%0A        %0A        do %0A        %7B %0A            System.out .println(%22Enter the shop no. (1 to 20) on which you want to do shopping (-1 to exit) :%22); %0A            shopNo = input.nextInt(); %0A            %0A            if (shopNo %3E= 1 && shopNo %3C= 20) %0A            %7B %0A                System.out.println(%22Welcome to Shop No-%22 + shopNo); %0A                System.out.println(%22Enter the purchasing amount :%22); %0A                amount = amount + input.nextDouble(); shopList.add(shopNo); %0A            %7D %0A        %7D while (shopNo != -1); %0A        for (int i = 1; i %3C shopList.size(); i++) %0A        %7B %0A            if (!Objects.equals(shopList.get(i), shopList.get(i - 1))) %0A            %7B %0A                if (count == 3) break; else count++; %0A            %7D %0A        %7D System.out.println(%22Total Amount before discount : $%22 + amount); %0A        if (amount %3E= 100 && count %3E= 3) %0A        %7B %0A            discount = 10; %0A        %7D %0A        System.out.println(%22Applied Discount : $%22 + discount); %0A        System.out.println(%22Total Amount after discount : $%22 + (amount - discount)); %0A    %7D %0A%7D%0A    %0A%0A

Create DowntownMarketing.java