@@ -0,0 +1,1104 @@
+/** Program that picks 3 random prize winners from a pool of 50 entries for the%0A *  outdoor backyard barbecue from the Thrifty Mart annual sweepstakes. %0A *  %0A */%0A%0Apackage prizefinalists;%0A%0A/**%0A *%0A * @author k8port%0A */%0Apublic class PrizeFinalists %7B%0A    %0A    private static final int POOL = 30; // the size of the entry pool%0A    /**%0A     * @param args the command line arguments%0A     */%0A    public static void main(String%5B%5D args) %7B%0A        %0A        int win1, win2, win3; // the three winning numbers%0A        boolean identical = true; // flag to indicate if winning numbers match%0A        %0A        win1 = (int)(Math.random() * POOL + 1);%0A        do %7B%0A            win2 = (int)(Math.random() * POOL + 1);           %0A            win3 = (int)(Math.random() * POOL + 1);%0A            if (win3 != win2 && win3 != win1 && win2 != win1) %0A                identical = false;%0A        %7D while (identical);%0A        %0A        System.out.printf(%22Numbers %25d, %25d, and %25d come on down! You are the%22%0A                + %22 winners of the brand%25nnew Thrifty Mart backyard barbecue!%25n%22,%0A                win1, win2, win3);%0A    %7D%0A    %0A%7D%0A

Create PrizeFinalists.java