Week 5 Resuability Paper

921 Words4 Pages
Week 5 Reusability Paper PRG/420 Professor Donald Mc Pherson Dianne Thibodeau Due: July 8th 2013 My team’s mission for this week is to choose two of our team member’s assignments and put them together and see how the program works. For this assignment we have chosen to use the following team members: Cathy Irwin and Eric McMichael. We have all agreed that both team member’s had a great information and programming. As a team we all discussed how their parts would come together nicely by working together. What we did was take a portion of Cathy’s and insert this into Eric’s program: EXAMPLE A //Start of Cathy Irwin's part of the program double Salary; double Sales; double Commission; double Bonus; double AnnualCompensation; Salary = 50000; String[] SalesPerson = new String[2]; // Creates an array using a string. int[] AnnualSales = new int[2]; // Creates an array using an integer. Scanner input = new Scanner(System.in); // Activates the user input System.out.println("Hello, let's compair two salespersons annual sales."); System.out.println("Please enter the 1st salesperson's name: "); SalesPerson[0] = input.nextLine(); System.out.println("Please enter the 2nd " + "salesperson's name:"); SalesPerson[1] = input.nextLine(); System.out.println("Please enter " + SalesPerson[0] + "'s Annual Sales:"); AnnualSales[0] = input.nextInt(); System.out.println("Please enter " + SalesPerson[1] + "'s Annual Sales:"); AnnualSales[1] = input.nextInt(); //Set the decimal format DecimalFormat USDFormat = new DecimalFormat("$#,##0.00"); double

    More about Week 5 Resuability Paper

      Open Document