23.05.2017 Views

CIS 247 DeVry Entire Course

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6. Display the number of employees created using getNumEmployees. Remember to access getNumEmployees using<br />

the class name, not the Employee object.<br />

7. Create a second Employee object using the multi-arg constructor, setting each of the attributes with the following<br />

values: "Mary", "Noia", 'F', 5, 24000.0<br />

8. Using your code from Week 1, display a divider that contains the string "Employee Information".<br />

9. Display the employee information for the second Employee object.<br />

10. Display the number of employees created using getNumEmployees. Remember to access getNumEmployees<br />

using the class name, not the Employee object.<br />

STEP 5: Compile and Test<br />

.equella.ecollege.com/file/74ae7c2a-07fb-40ac-84b9-a1f901a7ec46/1/<strong>CIS</strong><strong>247</strong>B_W3_iLab.html#top">Back to Top<br />

When done, compile and run your code. Debug any errors until your code is error-free.<br />

Check your output to ensure that you have the desired output, modify your code as necessary, and rebuild.<br />

Your output should resemble the following:<br />

STEP 6: Submit Deliverables<br />

.equella.ecollege.com/file/74ae7c2a-07fb-40ac-84b9-a1f901a7ec46/1/<strong>CIS</strong><strong>247</strong>B_W3_iLab.html#top">Back to Top<br />

o<br />

o<br />

Capture the output window and paste it into a Word document.<br />

Put the zip file and screen shots (Word document) in the Dropbox.<br />

<strong>CIS</strong> <strong>247</strong> <strong>DeVry</strong> Week 4 iLab Latest<br />

iLab 4 of 7: Composition and Class Interfaces<br />

Scenario and Summary<br />

The objective of the lab is to modify the Employee class to demonstrate composition and a class interface. An employee<br />

typically has benefits, so we will make the following changes:<br />

1. Create a Benefits class.<br />

2. Integrate the Benefit class into the Employee class.<br />

3. Create an iEmployee abstract class to guarantee that calculatePay is implemented in the Employee class. A tutorial<br />

on interfaces can be downloaded.equella.ecollege.com/file/99187c60-80a4-48a0-b203-0544f90accd2/1/documents--<br />

Interfaces_Java.docx">here.<br />

Deliverables<br />

Due this week:<br />

o<br />

o<br />

o<br />

Capture the Console output window and paste it into a Word document.<br />

Zip the project folder files.<br />

Put the zip file and screen shots (Word document that contains programming code and screen shots of<br />

program output) in the Dropbox.<br />

iLAB STEPS<br />

STEP 1: Understand the UML Diagram<br />

.equella.ecollege.com/file/99187c60-80a4-48a0-b203-0544f90accd2/1/<strong>CIS</strong><strong>247</strong>B_W4_iLab.html#top">Back to Top<br />

The only change to the Employee class is that there is a new attribute:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!