@@ -0,0 +1,1938 @@
+import javax.swing.JOptionPane; // import a package for user input%0D%0A%0D%0Apublic class DaysPay%0D%0A%7B%0D%0A    /**%0D%0A     * Write a method called calculatePay.%0D%0A     *%0D%0A     * calculatePay should take 3 input parameters and return the total days pay%0D%0A     *   input: int hours, double payRate, and String dayOfWeek%0D%0A     *   return: %3Cdouble totalPay%3E%0D%0A     *%0D%0A     * Total days pay is calculated as follows:%0D%0A     *%0D%0A     *   employees get paid at the normal hourly rate for the first 8 hours%0D%0A     *%0D%0A     *   they get paid an overtime rate of 1 and 1/2 times normal pay for%0D%0A     *   hours worked over 8%0D%0A     *%0D%0A     *   they get paid 2 times the normal rate for all hours worked on Saturday or Sunday%0D%0A     *   (overtime does not apply to Saturday or Sunday)%0D%0A     **/%0D%0A%0D%0A%0D%0A    /***  %3C%3C%3C complete the code for method calculatePay %3E%3E%3E  ***/%0D%0A%0D%0A%0D%0A    public static double calculatePay(int hours, double payRate, String dayOfWeek) %7B%0D%0A        if (dayOfWeek.equals(%22Saturday%22) %7C%7C dayOfWeek.equals(%22Sunday%22))%0D%0A            return payRate * 2 * hours;%0D%0A%0D%0A        else if (hours %3E= 8)%0D%0A            return (payRate * 8) + (1.5 * payRate * (hours-8));%0D%0A        else%0D%0A            return payRate * hours;%0D%0A    %7D%0D%0A%0D%0A    // This main method is complete%0D%0A    public static void main(String%5B%5D args)%0D%0A    %7B%0D%0A        String name = %22%22;%0D%0A        String day = %22%22;%0D%0A        int hours = 0;%0D%0A        double payRate = 0;%0D%0A%0D%0A        hours = Integer.parseInt(JOptionPane.showInputDialog(null, %22How many hours did you work? %22));%0D%0A        payRate = Double.parseDouble(JOptionPane.showInputDialog(null, %22What is you hourly pay rate? %22));%0D%0A        day = JOptionPane.showInputDialog(null, %22What day did you work? %22);%0D%0A%0D%0A        System.out.println(%22You worked %22 + hours + %22 hours on a %22 + day + %22.%22);%0D%0A        System.out.println(%22Your rate of pay is $%22 + payRate + %22 per hour.%22);%0D%0A        System.out.println(%22Total pay is %22 + calculatePay(hours,payRate,day));%0D%0A%0D%0A    %7D%0D%0A%7D //class%0D%0A

Create DaysPay.java