iLab 4 of 7: Composition and Class Interfaces.

iLab 4 of 7: Composition and Class Interfaces

i L A B O V E R V I E W

Scenario and Summary

The objective of the lab is to modify the Employee class to demonstrate composition and a class interface. An employee typically has benefits, so we will make the following changes:
Create a Benefits class.
Integrate the Benefit class into the Employee class.
Create an iEmployee abstract class to guarantee that calculatePay is implemented in the Employee class. A tutorial on interfaces can be downloadedhere.
Deliverables
Due this week:
Capture the console output window and paste it into a Word document.
Zip the project folder files.
Put the zip file and screen shots (Word document that contains programming code and screen shots of program output) in the Dropbox.

i L A B S T E P S

STEP 1: Understand the UML Diagram

Employee – firstName : string – lastName : string – gender : char – dependents : int – annualSalary : double – static numEmployees : int = 0 +benefit : Benefit +Employee() +Employee(in fname : String, in lname : String, in gen : char, in dep : int, in sal : double) +calculatePay() : double +displayEmployee() : void +static getNumEmployees() : int +getFirstName() : string +setFirstName(in name : String) : void +getLastName() : String +setLastName(in name : String) : void +getGender() : char +setGender(in gen : char) : void +getDependents() : int +setDependents(in dep : int) : void +getAnnualSalary() : double +setAnnualSalary(in sal : double) : void +setAnnualSalary(in sal : String) : void <> Fido : Animal +calculatePay() : double Benefit -healthinsurance : string -lifeinsurance : double -vacation : int +Benefit() +Benefit(in health : string, in life : double, in vacation : int) +displayBenefits() : void +getHealthInsurance() : string +setHealthInsutance(in hins : string) : void +getLifeInsurance() : double +setLifeInsurance(in lifeIns : double) : void +getVacation() : int +setVacation(in vaca : int) : void
The only change to the Employee class is that there is a new attribute:
+benefit : Benefit
Notice that there is a “+” for this attribute, meaning that it is public. Make sure to examine the multi-arg constructor’s signature!
Also, the dotted directed line between Employee and iEmployee specifies that the Employee class must implement the iEmployee abstract class, and thus provide an implementation for the calculatePay method.
STEP 2: Create the Project

You will want to use the Week 3 project as the starting point for the lab. To do this, you will want to create a new project by following these steps:
Open the same workspace you created for the Week 3 project.
Create a new project and name it “CIS247B_WK4_Lab_LASTNAME”.
Copy all the source files from the Week 3 project into the Week 4 project.
Before you move on to the next step, build and execute the Week 4 project.
STEP 3: Modify the Employee Class

Using the UML Diagrams from Step 1, create the Benefit class. To get an idea of how to format displayBenefits, take a look at the output in Step 5.
Add a Benefit attribute to the Employee class.
Initialize the new Benefit attribute in both Employee constructors. Again, take note of the multi-arg constructors parameter list!
Create the iEmployee interface.
Modify the Employee class to implement the new interface so that Employee will have to implement the calculatePay method.
Modify the Employee class to call displayBenefit when displaying Employee information.
STEP 4: Modify the Main Method

Notice that the Employee class now has a public benefit object inside it. This means that you can access the set methods of the Benefit object with the following code:
.benefit.
As an example, to set the lifeInsurance attribute inside an Employee object called emp, we could execute the following code:
emp.benefit.setLifeInsurance(lifeInsurance);
The steps required to modify the Main class are below. New steps are in bold.
Create an Employee object using the default constructor.
Prompt for and then set the first name, last name, and gender. Consider using your getInput method from Week 1 to obtain data from the user for this step as well as Step 3.
Prompt for and then set the dependents and annual salary using the overloaded setters that accept Strings.
Prompt for and set healthInsurance, lifeInsurance, and vacation.
Using your code from Week 1, display a divider that contains the string “Employee Information”.
Display the Employee Information.
Display the number of employees created using getNumEmployees(). Remember to access getNumEmployees using the class name, not the Employee object.
Create a Benefit object called benefit1 using the multi-arg constructor. Use any information you want for health insurance, life insurance, and vacation.
Create another Employee object and use the constructor to fill it with the following:
“Mary”, “Noia”, ‘F’, 5, 24000.0, benefit1
Using your code from Week 1, display a divider that contains the string “Employee Information”.
Display the employee information.
Display the number of employees created using getNumEmployees(). Remember to access getNumEmployees using the class name, not the Employee object.
STEP 5: Compile and Test

When done, compile and execute your code. Debug any errors until your code is error-free.
Check your output to ensure that you have the desired output, modify your code as necessary, and rebuild.
Your output should resemble the following:

Screenshot of program that reads: ************** Employee Information ************** First Name: John Last Name: Doe Gender: M Dependents: 2 Annual Salary: $73,000.00 Weekly Pay: $1,403.85 Health Insurance: Partial Life Insurance: 500.0 Vacation: 10 Total employees: 1 *************** Employee Information *************** First Name: Mary Last Name: Noia Gender: F Dependents: 5 Annual Salary: $24,000.00 Weekly Pay: $461.54 Health Insurance: Full Life Insurance: 100.0 Vacation: 5 Total employees: 2
STEP 6: Submit Deliverables

Capture the Console output window and paste it into a Word document.
Put the zip file and screen shots (Word document) in the Dropbox.
Submit your lab to the Dropbox located on the silver tab at the top of this page. For instructions on how to use the Dropbox, read theseStep-by-Step Instructionsor watch thisDropbox Tutorial.
See Syllabus “Due Dates for Assignments & Exams” for due date information.

CIS/247A CIS247A CIS-247A CIS247 A CIS 247 A
CIS/247B CIS247B CIS-247B CIS247 B CIS 247 B
CIS/247C CIS247C CIS-247C CIS247 C CIS 247 C
CIS/247D CIS247D CIS-247D CIS247 D CIS 247 D
Lab4 Lab 4 Week 4 Week4 Week4 Lab
–iqrajavaid

Use the order calculator below and get started! Contact our live support team for any assistance or inquiry.

[order_calculator]

Select an organization with which you are familiar. Prepare a 1,050- to 1,400-word paper in which you evaluate the organizing function of management as it relates to at least two of the following organizational resources:

Select an organization with which you are familiar. Prepare a 1,050- to 1,400-word paper in which you evaluate the organizing function of management as it relates to at least two of the following organizational resources:

Physical assets
Monetary
Human resources
Knowledge
Technology

Discuss whether or not your organization has optimized these organizational resources for effectiveness and efficiency. Justify your position.

Format your paper consistent with APA guidelines.
Cite two (2) references.
Submit your Paper.

Use the order calculator below and get started! Contact our live support team for any assistance or inquiry.

[order_calculator]

Development has progressed from the reporting/searching screens to other functionality. Put together scripts to prove these concepts for editing data:

Development has progressed from the reporting/searching screens to other functionality. Put together scripts to prove these concepts for editing data:

1.Using the Northwind database, write a script to insert the following data:
One new Category
Name = Junk Food, Description = yummy delights

2.Add a Product for your new Junk Food category.
Product = Twinkies, Supplier = Tokyo Traders, Category = Junk Food
QuantityPerUnit = 10 boxes
UnitsInStock = 0, UnitsOnOrder = 0, ReorderLevel = 10, Disabled = 0

3.In an attempt to liquidate some Products, in the Northwind database, provide a script to set all Products in the Condiments category that have less than 20 units in stock to a price of $5.00 and disable them. HINT: four records should be affected

4.Your boss has decided against the new Junk Food Category. Provide a script to delete the Junk Food Category as well as any Products assigned to that category.
Copy and paste your scripts (no screen shots necessary) into a Word .doc

Use the order calculator below and get started! Contact our live support team for any assistance or inquiry.

[order_calculator]

Although appealing to more refined tastes, art as a collectible has not always performed so profitably. During 2003, assume that a sculpture was sold at an auction for a price of $10,231,500. Unfortunately for the previous owner, he had purchased it in 1999 at a price of $12,377,500.

1) Although appealing to more refined tastes, art as a collectible has not always performed so profitably. During 2003, assume that a sculpture was sold at an auction for a price of $10,231,500. Unfortunately for the previous owner, he had purchased it in 1999 at a price of $12,377,500.

Required:
What was his annual rate of return on this sculpture? (Do not include the percent sign (%). Negative amount should be indicated by a minus sign. Round your answer to 2 decimal places. (e.g., 32.16))

2) Investment X offers to pay you $4,600 per year for 8 years, whereas Investment Y offers to pay you $8,400 per year for 5 years.

Required:
(a) Compute the present value for the above cash flow streams if the discount rate is 6 percent. (Do not include the dollar signs ($). Round your answers to 2 decimal places. (e.g., 32.16))
Investment X:
Investment Y:

(b) Compute the present value for the above cash flow streams if the discount rate is 19 percent. (Do not include the dollar signs ($). Round your answers to 2 decimal places. (e.g., 32.16))
Investment X:
Investment Y:

3) The Robb Computer Corporation is trying to choose between the following two mutually exclusive design projects:

Year Cash Flow (I) Cash Flow (II)
0 -$ 55,000 -$ 16,100
1 32,000 9,700
2 32,000 9,700
3 32,000 9,700

Requirement 1:
(a) If the required return is 7 percent, what is the profitability index for each project? (Round your answers to 3 decimal places. (e.g., 32.161))
Project I:
Project II:

(b) Which project should the firm accept according to the profitability index?

Requirement 2:
(a) Calculate the NPV for each project assuming a required return of 7 percent. (Do not include the dollar signs ($). Round your answers to 2 decimal places. (e.g., 32.16))
Project I:
Project II:
(b) Which project should it take according to the NPV?

4)
An investment project costs $13,100 and has annual cash flows of $3,000 for 6 years. (Enter 0 when there is no payback period. Round your answers to 2 decimal places. (e.g., 32.16))
Required:
(a) What is the discounted payback period if the discount rate is 0 percent?
(b) What is the discounted payback period if the discount rate is 6 percent?
(c) What is the discounted payback period if the discount rate is 21 percent?

Use the order calculator below and get started! Contact our live support team for any assistance or inquiry.

[order_calculator]

Analysis of Various Health Components for a Specific Region.

Support your responses with examples.

Cite any sources in APA format.

Analysis of Various Health Components for a Specific Region

Using scholarly sources or the Internet, research and read about a health issue in specific regions in the United States. Some examples of the topics for your research could be:

• HIV or AIDS in African-Americans in Southern United States.
• Alcoholism in Native Americans in Midwestern United States.
• Diabetes among Navajo people in Southwest United States.
• Post-traumatic stress disorder in veterans in Unites States.

Note: You may choose another population and region, these are just examples. You may also visit the Webliography of this course to gather data for your research.

Based on your research and data gathered, create a report in a 3- to 4-page Microsoft Word document, that addresses the following:

• The main issues being discussed and the message you wish to deliver to the affected population.
• Population affected.
• Age, gender, race, socioeconomic class, sexual orientation, religion, etc. of the target population.
• Segment of the United States population affected along with the percentage.
• Social factors such as culture and religion that may influence the burden of the disease.
• Ethical issues that may be factors in developing and implementing prevention and intervention programs for the disease.
• Various components of the health care system that can assist the community.
• Methods that the health care system should use to assist the community. (For example, state health care systems may revise or develop new policies to address the issue).

776 Words
5 Sources
APA Format

Use the order calculator below and get started! Contact our live support team for any assistance or inquiry.

[order_calculator]

The assessment of inherent risk requires considering matters that have a pervasive effect on assertions for all or many accounts and matters that may pertain only to assertions for specific accounts. Which of the following is an example of a pervasive effects matter?

81) The assessment of inherent risk requires considering matters that have a pervasive effect on assertions for all or many accounts and matters that may pertain only to assertions for specific accounts. Which of the following is an example of a pervasive effects matter?

A.

Complexity of calculations

B.

Management turnover, reputation, and accounting skills

C.

Susceptibility to misappropriation

D.

Sensitivity of operating results to economic factors
82) Specific audit objectives are normally

A.

the same as the categories of management’s financial statement assertions

B.

developed for each item in the financial statements and derived from the categories of management’s financial statement assertions

C.

management’s assertion of fairness.

D.

broken down into eight types.

83) The Committee of Sponsoring Organizations (COSO) report identified five interrelated components of internal control. Since then, a sixth category has been identified, which is

A.

monitoring

B.

risk assessment

C.

information and communication

D.

antifraud programs and controls

84) Which of the following necessary controls would address a potential misstatement arising from a voucher being paid twice?

A.

Periodic independent bank reconciliations

B.

Electronic cancellation of vouchers and supporting information when a check is issued

C.

Separate duties for approving payment vouchers and signing checks

D.

A computer comparing the sum of checks issued with the entry to cash disbursements

85) An effective accounting system should identify and record only the valid transaction of the entity that occurred in the current period, which relates to the

A.

rights and obligations assertion

B.

presentation and disclosure assertion

C.

valuation or allocation assertion

D.

existence or occurrence assertion
86) One of the six steps involved in performing analytical procedures includes the following:

A.

Understand the role of analytical procedures in planning and performing the audit.

B.

Understand the relationship between materiality and audit evidence.

C.

Analyze data and identify significant differences.

D.

Perform the calculations using industry data.

87) In a normal audit, the relationship between the level of materiality used to plan the engagement and the level of materiality used to evaluate evidence is that

A.

they must be identical

B.

the former may be higher or lower than the latter

C.

the former is higher than the latter

D.

the former is lower than the latter

88) Use of auditor judgment or of a risk matrix is necessary in revising planned detection risk whenever

A.

risk assessments are not quantified

B.

assessed control risk at the account balance level does not support the planned level of control risk

C.

control risk is assessed above the minimum

D.

control risk is assessed below the maximum

89) In the audit risk model, audit sampling applies to

A.

detection risk

B.

inherent risk and control risk

C.

control risk and detection risk

D.

inherent risk and detection risk

90) Audit sampling is involved whenever an auditor

A.

examines 100% of the population

B.

makes an inference about a population characteristic based on a partial examination of that population

C.

performs tests of controls

D.

performs tests of details

91) How can long-term assets best be tested for ownership?

A.

Examining documents of title

B.

Reviewing the ledger to ensure the item is listed

C.

Inquiring with management

D.

Reviewing prior year workpapers

92) How can long-term assets best be tested for current present value?

A.

Reviewing the depreciation schedule for accuracy and completeness

B.

Physically examining the assets and appraising the assets

C.

Applying time value of money analysis

D.

Performing an analytical review
93) Because of the effects of circulation, some audit evidence is more reliable than other evidence. Which of the following is generally considered to be most reliable?

A.

Purchase requisitions

B.

Suppliers’ invoices

C.

Receipted bank deposit slips

D.

Cutoff bank statements

94) Which of the following accounts in a merchandising company is affected by both the revenue cycle and another cycle?

A.

Sales

B.

Sales returns and allowances

C.

Inventory

D.

Accounts receivable

95) The auditor’s strategy in performing test counts during the inventory observation is to

A.

concentrate tests on high-dollar items and take a representative sample of other items

B.

test all high dollar items

C.

randomly select all test items

D.

concentrate tests in areas where employees seem to be disregarding the inventory instructions

96) Which one of the following analytical procedures may indicate possible inventory obsolescence problems when ratios are large?

A.

Inventory turnover

B.

Finished goods produced to raw material used

C.

Inventory growth to cost of sales growth

D.

Finished goods produced to direct labor

97) The control of all funds during the count of cash on hand is meant primarily to prevent

A.

transfers by the client

B.

any chance of double counting

C.

unauthorized disbursements

D.

client personnel from viewing the count procedure
98) Whether the entity maintains effective controls to provide reasonable assurance that private customer information obtained because of e-commerce is protected is defined as

A.

transaction integrity

B.

information protection

C.

risk assessment

D.

performance measurement

99) A lawyer’s refusal to respond to a letter of audit inquiry normally requires the auditor to

A.

issue a qualified opinion or a disclaimer of opinion

B.

issue an unqualified opinion with an explanatory paragraph

C.

issue a qualified or adverse opinion

D.

issue a standard three-paragraph unqualified opinion

100) Which of the following is a tort?

A.

Breach of contract

B.

A wrongful act that does not injure another person’s property, body, or reputation

C.

Gross negligence

D.

Unintentional error where appropriate degree of care was exercised and no one was injured

Use the order calculator below and get started! Contact our live support team for any assistance or inquiry.

[order_calculator]