Reference no: EM131589071
The following tasks are to done in the indicated classes:
Task #0 - (in the SalariedEmployeeclass and the HourlyEmployee class)
• Fix the error due to extending the Employee superclass
o Note: the method for HourlyEmployee needs to get hours to compute weekly pay.
• Create the toString() method
Task #1 - Define an arrayList, myEmployees, of Employee type (in the EmployeeDemo class)
Task #2: (in the EmployeeDemo class)
Add a try-catch block to handle FileNotFound& any general Exception
Add a finally clause, but check that the file was created before closing it
Task #3: (in the EmployeeDemo class)
Open the input file, stored in the project's directory
Use a try-catch-finally block to handle the fileNotFound condition
Within the try-catch block:
read the salaryEmp.txt file until the end of the file
(firstName, lastName, annualSalary)
for each record read, create a SalariedEmployee object, and put inside arrayList of myEmployees
read the hourlyEmp.txt file until the end of the file
for each record read, create an HourlyEmployeeobject, and put inside myEmployeesarrayList
(firstName, lastName, wage)
Task #4:(in the EmployeeDemo class)
Write a loop that, for each employee, will polymorphically display the employee's data, ask the user for any missing data (hours), and thenpolymorphically calculate weeklyPay and display the pay.
Attachment:- PracticeMid.zip
What is the project npv
: Question - The ABD Company is considering buying a new machine for one of its factories, what is the project's NPV
|
Improve a current account deficit
: 1. Expenditure-switching policies designed to improve a current account deficit
|
Review the case related to the watergate scandal
: In this exercise you are to write a short paper (1-2 pages) analyzing the following National Geographic Channel expose on the Watergate scandal.
|
Prepare a statement of cash flows for central ltd
: The balance sheets of Central Limited for the years ended 31/12/2006 and 31/12/2007 are presented, Prepare a statement of cash flows for Central Ltd.
|
Write a loop that for each employee
: Define an arrayList, myEmployees, of Employee type - Within the try-catch block - Write a loop that, for each employee
|
Concept and components of business cycles
: In an essay, explain the concept and components of business cycles, and identify some of the factors that contribute to the expansion and contraction.
|
What would you want your friend who found out out to do
: If you were the person cheating on his or her spouse, what would you want your friend who found out to do to you, and why?
|
What percentage of schools require work experience
: What percentage of schools require work experience? From this percentage, does this appear to be a significant factor in gaining admissions?
|
Price level affects the real value of money
: Consider how to explain how an increase in the price level affects the real value of money.
|