Files Navigator File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Projects...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Files Navigator File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Projects X > Assignment1 > BarChart > CircleArea > ComputerAssisted Instruction > Date > DiceRolling1 Employee Source Packages employee Employee.java > > Libraries Test Packages >> Test Libraries employee1 Source Packages employee1 BasePlusCommission Employee.java Commission Employee.java Date.java Employee1.java HourlyEmployee.java PayrollSystemTest.java Salaried Employee.java > Test Packages > Libraries >> Test Libraries > Multiple > OddIntergers > Part2 > Part3 Part4 Part5 > > > PayrollModification > Rectangle > SalaryCalculator1 > SalaryCalculator2 >Salary Calculator Assignment > VariableLength Type here to search O ...va Source 6 7 8 9 10 11 13 14 15 16 17 18 8 29 DD D 705.0/1.388MB o I Salaried Employee.java X History // Figure 10.9: PayrollsystemTest.java // Employee hierarchy test program public class PayrollSystemTest { HourlyEmployee.java X 87284 PD public static void main(String[] args) { employee1 - Apache NetBeans IDE 13 Commission Employee.java X BasePlusCommission Employee.java X PayrollSystem Test.java X || int current Month = Calendar.getInstance().get (Calendar. MONTH) + 1; hourlyEmployee, "earned", hourlyEmployee.earnings ()); employee 1.PayrollSystem Test > main commission Employee Output - employee1 (run) X //create subclass objects SalariedEmployee salariedEmployee = new SalariedEmployee ("John", "Smith", "111-11-1111", 800.00, new Date (04, 14, 1999)); HourlyEmployee hourlyEmployee = new HourlyEmployee ("Karen", "Price", "222-22-2222", 16.75, 40, new Date (07, 21, 1964)); Commission Employee commission Employee = new Commission Employee ("Sue", "Jones", "333-33-3333", 10000, .06, new Date (03, 03, 1994)); BasePlus Commission Employee basePlus Commission Employee = new BasePlus Commission Employee ("Bob", "Lewis", "444-44-4444", 5000, 04, 300, new Date (11, 08, 2000)); System.out.println("Employees processed individually: "); run: BUILD SUCCESSFUL (total time: 2 seconds) System.out.printf("%ntsints: $, .2f%n%n", salariedEmployee, "earned", salariedEmployee.earnings () ); System.out.printf("%sints: $%,.2f%n%n", Q Search (Ctrl+l) Rain coming 20:108 666 I X < > E X INS Windows (CRLF) 7:51 AM 5/1/2022 Files Navigator File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Projects X > Assignment1 > BarChart > CircleArea > ComputerAssisted Instruction > Date > DiceRolling1 Employee Source Packages employee Employee.java > Test Packages > Libraries >> Test Libraries employee1 Source Packages employee1 BasePlusCommission Employee.java Commission Employee.java Date.java Employee1.java HourlyEmployee.java PayrollSystemTest.java Salaried Employee.java > Test Packages > Libraries >> Test Libraries > Multiple > OddIntergers > Part2 > Part3 Part4 Part5 > > > PayrollModification > Rectangle > SalaryCalculator1 > SalaryCalculator2 >Salary Calculator Assignment > VariableLength Type here to search O ...va Source 64 65 66 67 SA 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 775:0/1384MB L I Salaried Employee.java X History HourlyEmployee.java X 77480 P & D } 77 end if } else { System.out.printf( }//end for employee1 - Apache NetBeans IDE 13 System.out.printf("Birthday bonus: $%,.2f%n", 100.00); System.out.printf ("earned $%,.2f%n%n", current Employee.earnings () + 100); Commission Employee.java X BasePlusCommission Employee.java X PayrollSystemTest.java X //add a $100.00 bonus to the person's payroll amount if the current month is the one in which the Employee's birthday occurs. if (current Employee.getbirthDate ().getMonth () == currentMonth) { U "earned $%,.2f%n%n", current Employee.earnings () ); }//end main } // end class PayrollsystemTest } //get type name of each object in employees array for (int j = 0; j < employees.length; j++) System.out.printf("Employee %d is a sin", j, employees [j].getClass().getName()); employee1.PayrollSystemTest main> commission Employee > Output - employee1 (run) X DD D run: BUILD SUCCESSFUL (total time: 2 seconds) Q Search (Ctrl+l) Rain coming 20:108 I 66 0 X < > T I INS Windows (CRLF) 7:57 AM 5/1/2022 Files Navigator File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Projects X > Assignment1 > BarChart > CircleArea > ComputerAssisted Instruction > Date > DiceRolling1 Employee Source Packages employee Employee.java > > Libraries Test Packages >> Test Libraries employee1 Source Packages employee1 BasePlusCommission Employee.java Commission Employee.java Date.java Employee1.java HourlyEmployee.java PayrollSystemTest.java Salaried Employee.java > Test Packages > Libraries >> Test Libraries > Multiple > OddIntergers > Part2 > Part3 Part4 Part5 > > > PayrollModification > Rectangle > SalaryCalculator1 > SalaryCalculator2 >Salary Calculator Assignment > VariableLength Type here to search O ...va Source 6 7 8 9 10 11 13 14 15 16 17 18 8 29 DD D 705.0/1.388MB o I Salaried Employee.java X History // Figure 10.9: PayrollsystemTest.java // Employee hierarchy test program public class PayrollSystemTest { HourlyEmployee.java X 87284 PD public static void main(String[] args) { employee1 - Apache NetBeans IDE 13 Commission Employee.java X BasePlusCommission Employee.java X PayrollSystem Test.java X || int current Month = Calendar.getInstance().get (Calendar. MONTH) + 1; hourlyEmployee, "earned", hourlyEmployee.earnings ()); employee 1.PayrollSystem Test > main commission Employee Output - employee1 (run) X //create subclass objects SalariedEmployee salariedEmployee = new SalariedEmployee ("John", "Smith", "111-11-1111", 800.00, new Date (04, 14, 1999)); HourlyEmployee hourlyEmployee = new HourlyEmployee ("Karen", "Price", "222-22-2222", 16.75, 40, new Date (07, 21, 1964)); Commission Employee commission Employee = new Commission Employee ("Sue", "Jones", "333-33-3333", 10000, .06, new Date (03, 03, 1994)); BasePlus Commission Employee basePlus Commission Employee = new BasePlus Commission Employee ("Bob", "Lewis", "444-44-4444", 5000, 04, 300, new Date (11, 08, 2000)); System.out.println("Employees processed individually: "); run: BUILD SUCCESSFUL (total time: 2 seconds) System.out.printf("%ntsints: $, .2f%n%n", salariedEmployee, "earned", salariedEmployee.earnings () ); System.out.printf("%sints: $%,.2f%n%n", Q Search (Ctrl+l) Rain coming 20:108 666 I X < > E X INS Windows (CRLF) 7:51 AM 5/1/2022 Files Navigator File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Projects X > Assignment1 > BarChart > CircleArea > ComputerAssisted Instruction > Date > DiceRolling1 Employee Source Packages employee Employee.java > > Libraries Test Packages >> Test Libraries employee1 Source Packages employee1 BasePlusCommission Employee.java Commission Employee.java Date.java Employee1.java HourlyEmployee.java PayrollSystemTest.java Salaried Employee.java > Test Packages > Libraries >> Test Libraries > Multiple > OddIntergers > Part2 > Part3 Part4 Part5 > > > PayrollModification > Rectangle > SalaryCalculator1 > SalaryCalculator2 >Salary Calculator Assignment > VariableLength Type here to search O ...va Source 6 7 8 9 10 11 13 14 15 16 17 18 8 29 DD D 705.0/1.388MB o I Salaried Employee.java X History // Figure 10.9: PayrollsystemTest.java // Employee hierarchy test program public class PayrollSystemTest { HourlyEmployee.java X 87284 PD public static void main(String[] args) { employee1 - Apache NetBeans IDE 13 Commission Employee.java X BasePlusCommission Employee.java X PayrollSystem Test.java X || int current Month = Calendar.getInstance().get (Calendar. MONTH) + 1; hourlyEmployee, "earned", hourlyEmployee.earnings ()); employee 1.PayrollSystem Test > main commission Employee Output - employee1 (run) X //create subclass objects SalariedEmployee salariedEmployee = new SalariedEmployee ("John", "Smith", "111-11-1111", 800.00, new Date (04, 14, 1999)); HourlyEmployee hourlyEmployee = new HourlyEmployee ("Karen", "Price", "222-22-2222", 16.75, 40, new Date (07, 21, 1964)); Commission Employee commission Employee = new Commission Employee ("Sue", "Jones", "333-33-3333", 10000, .06, new Date (03, 03, 1994)); BasePlus Commission Employee basePlus Commission Employee = new BasePlus Commission Employee ("Bob", "Lewis", "444-44-4444", 5000, 04, 300, new Date (11, 08, 2000)); System.out.println("Employees processed individually: "); run: BUILD SUCCESSFUL (total time: 2 seconds) System.out.printf("%ntsints: $, .2f%n%n", salariedEmployee, "earned", salariedEmployee.earnings () ); System.out.printf("%sints: $%,.2f%n%n", Q Search (Ctrl+l) Rain coming 20:108 666 I X < > E X INS Windows (CRLF) 7:51 AM 5/1/2022 Files Navigator File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Projects X > Assignment1 > BarChart > CircleArea > ComputerAssisted Instruction > Date > DiceRolling1 Employee Source Packages employee Employee.java > Test Packages > Libraries >> Test Libraries employee1 Source Packages employee1 BasePlusCommission Employee.java Commission Employee.java Date.java Employee1.java HourlyEmployee.java PayrollSystemTest.java Salaried Employee.java > Test Packages > Libraries >> Test Libraries > Multiple > OddIntergers > Part2 > Part3 Part4 Part5 > > > PayrollModification > Rectangle > SalaryCalculator1 > SalaryCalculator2 >Salary Calculator Assignment > VariableLength Type here to search O ...va Source 64 65 66 67 SA 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 775:0/1384MB L I Salaried Employee.java X History HourlyEmployee.java X 77480 P & D } 77 end if } else { System.out.printf( }//end for employee1 - Apache NetBeans IDE 13 System.out.printf("Birthday bonus: $%,.2f%n", 100.00); System.out.printf ("earned $%,.2f%n%n", current Employee.earnings () + 100); Commission Employee.java X BasePlusCommission Employee.java X PayrollSystemTest.java X //add a $100.00 bonus to the person's payroll amount if the current month is the one in which the Employee's birthday occurs. if (current Employee.getbirthDate ().getMonth () == currentMonth) { U "earned $%,.2f%n%n", current Employee.earnings () ); }//end main } // end class PayrollsystemTest } //get type name of each object in employees array for (int j = 0; j < employees.length; j++) System.out.printf("Employee %d is a sin", j, employees [j].getClass().getName()); employee1.PayrollSystemTest main> commission Employee > Output - employee1 (run) X DD D run: BUILD SUCCESSFUL (total time: 2 seconds) Q Search (Ctrl+l) Rain coming 20:108 I 66 0 X < > T I INS Windows (CRLF) 7:57 AM 5/1/2022 Files Navigator File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Projects X > Assignment1 > BarChart > CircleArea > ComputerAssisted Instruction > Date > DiceRolling1 Employee Source Packages employee Employee.java > Test Packages > Libraries >> Test Libraries employee1 Source Packages employee1 BasePlusCommission Employee.java Commission Employee.java Date.java Employee1.java HourlyEmployee.java PayrollSystemTest.java Salaried Employee.java > Test Packages > Libraries >> Test Libraries > Multiple > OddIntergers > Part2 > Part3 Part4 Part5 > > > PayrollModification > Rectangle > SalaryCalculator1 > SalaryCalculator2 >Salary Calculator Assignment > VariableLength Type here to search O ...va Source 64 65 66 67 SA 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 775:0/1384MB L I Salaried Employee.java X History HourlyEmployee.java X 77480 P & D } 77 end if } else { System.out.printf( }//end for employee1 - Apache NetBeans IDE 13 System.out.printf("Birthday bonus: $%,.2f%n", 100.00); System.out.printf ("earned $%,.2f%n%n", current Employee.earnings () + 100); Commission Employee.java X BasePlusCommission Employee.java X PayrollSystemTest.java X //add a $100.00 bonus to the person's payroll amount if the current month is the one in which the Employee's birthday occurs. if (current Employee.getbirthDate ().getMonth () == currentMonth) { U "earned $%,.2f%n%n", current Employee.earnings () ); }//end main } // end class PayrollsystemTest } //get type name of each object in employees array for (int j = 0; j < employees.length; j++) System.out.printf("Employee %d is a sin", j, employees [j].getClass().getName()); employee1.PayrollSystemTest main> commission Employee > Output - employee1 (run) X DD D run: BUILD SUCCESSFUL (total time: 2 seconds) Q Search (Ctrl+l) Rain coming 20:108 I 66 0 X < > T I INS Windows (CRLF) 7:57 AM 5/1/2022
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
Feil Ltd started 2023 with $77,000 of merchandise on hand. During 2023, $395,000 in merchandise was purchased on account with credit terms of 1/10, n/30. All discounts were taken. Purchases were all...
-
Refer to the information in BE4-7 for Hébert Company. Prepare the correcting journal entries. Information in BE4-7 1. A collection of cash on account from a customer for $750 was recorded as a...
-
Illustrate the market shortage for tickets to the 2012 Sandy benefit concert (see News Wire "Market Shortage"). Why were the tickets priced so low initially? Supply $150 Face Value Price SHORTAGE...
-
Experiment with online sequence-to-sequence neural machine translation model, such as translate.google.com/ or www.bing.com/translator or www.deepl. com/translator. If you know two languages well,...
-
In 2016, a father of two minor children in Cuyahoga county, Ohio, filed a claim to determine custody of the children. At the pretrial, the father informed the magistrate he wanted to be named a legal...
-
Sandy Shores Time Shares is one of the largest time-sharing and rental brokers for vacation cottages along the North Carolina coast. After 10 successful years of matching up owners and renters, Sandy...
-
Delph Company uses a job-order costing system and has two manufacturing departments-Molding and Fabrication. The company provided the following estimates at the beginning of the year: Machine-hours...
-
Create two tables based on the E-R model shown in Figure 4-41 and the business rules in the following list for a work order tracking database. Include all the constraints in the CREATE TABLE...
-
You have been given this probability distribution for the holding-period return for ABC stock:
-
Computer Geeks has sales of $566980, a profit margin of 0.53, a total asset turnover rate of 1.13, and an equity multiplier of 1.39. What is the return on equity?
-
Find the required rate of return for equity investors of a firm with a beta of 1.3 when the risk free rate is 5%, and the return on the market is 10%
-
For the steel beam and loading shown above (A-hinge support, C= Cable) (A) Write the equations for bending moment and shear force at any section along the beam (1 Point) and draw the shear force and...
-
Conduct research on and discuss new trends and research in parallel processing.
-
A stock just paid a dividend of D 0 = $1.50. The required rate of return is r s = 15.5%, and the constant growth rate is g = 4.0%. What is the current stock price?
-
Show that the Gauas and mean curvatures on, X = (u + v,u v, uv) at | u = 1, v = 1 are K = '16 and H = /87 %3D 2
-
Which, if any, of the dichloroethene molecules drawn in Data Table II (3.) (4.) and (5.) are geometric isomers? A. B. C. D. cis-1,2-dichloroethene and trans-1,2-dichloroethene...
-
What would the following display? a = 5 b = 2 c = 3 result = a + b * c print(result)
-
How does the role of main memory differ from the role of secondary storage?
-
How many iterations would occur in total if a loop that repeats 5 times is nested within a loop that repeats 4 times?
-
The deletion rules for enforcing referential integrity include both Delete. Cascade and Delete Restrict In general, what criteria should a DBA use in deciding whether to use a Delete: Cascade or...
-
What is metadata? if database administrators need to define metadata, what kind of language should they use (DDL or DML)? Why?
-
What is a relational database?
Study smarter with the SolutionInn App