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.

2. Prompt for and then set the first name, last name, gender, dependents, and annual salary. (Remember that you have<br />

to convert gender, dependents, and annual salary from strings to the appropriate data type.)<br />

3. Using your code from last week, display a divider that contains the string "Employee Information"<br />

4. Display the Employee information.<br />

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

appropriate valid values.<br />

6. Using your code from last week, display a divider that contains the string "Employee Information".<br />

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

STEP 4: Compile and Test<br />

.equella.ecollege.com/file/6eeabc50-43d2-410a-9a6f-a74f918a92f7/1/<strong>CIS</strong><strong>247</strong>B_W2_iLab.html#top">Back to Top<br />

When done, compile and run your code. Then, 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 5: Submit Deliverables<br />

.equella.ecollege.com/file/6eeabc50-43d2-410a-9a6f-a74f918a92f7/1/<strong>CIS</strong><strong>247</strong>B_W2_iLab.html#top">Back to Top<br />

o<br />

o<br />

Capture the Console output window and paste 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 3 iLab Latest<br />

iLab 3 of 7: Overloaded Methods and Static Methods / Variables<br />

iLAB OVERVIEW<br />

Scenario and Summary<br />

The objective of the lab is to take the UML Class diagram and enhance last week's Employee class by making the<br />

following changes:<br />

1. Create a static variable called numEmployees that holds an int and initialize it to zero. This will allow us to count all<br />

the Employee objects created in the main class.<br />

2. Increment numEmployees in all of the constructors<br />

3. Add overloaded versions of setDependents and setAnnualSalary that accept strings. This way, we will have two "set"<br />

methods for both dependents and annual salary; one that accepts a string, and one that accepts its default data type.<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/74ae7c2a-07fb-40ac-84b9-a1f901a7ec46/1/<strong>CIS</strong><strong>247</strong>B_W3_iLab.html#top">Back to Top

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

Saved successfully!

Ooh no, something went wrong!