Questions
This question is about java program. Please show the output and the detail code and comment...

This question is about java program. Please show the output and the detail code and comment of the each question and each Class and interface.

And the output (the test mthod )must be all the true! Thank you!

Question1

Create a class Animal with the following UML specification:
+-----------------------+
| Animal |
+-----------------------+
| - name: String |
+-----------------------+
| + Animal(String name) |
| + getName(): String |
| + getLegs(): int |
| + canFly(): boolean |
| + testAnimal(): void |(this is the static method)
+-----------------------+
where the name instance variable stores a name for the animal, the getLegs method returns as result the animal's number of legs, and the canFly method returns as result a boolean indicating whether the animal can fly or not. The testAnimal method is static.
Should the getLegs method be abstract? Why or why not?
Should the canFly method be abstract? Why or why not?
Should the Animal class be abstract? Why or why not?
What kinds of tests can you write inside the testAnimal method?
Add the following code to your program to test the Animal class:
public class Start {
public static void main(String[] args) {
Animal.testAnimal();
}
}
Question 2
Add a class Dog to your program. Dogs are animals. The constructor for the Dog class takes the name of the dog as argument. Dogs have four legs and cannot fly.
Do not forget to change the main method of the Start class to run the unit tests of the new Dog class.
Question 3
Add a class Bird to your program. Birds are animals. The Bird class must have a private instance variable called
numOfEggs which is an integer indicating how many eggs the bird has. The constructor for Bird takes as arguments a
name and a number of eggs. The Bird class has a public method called getNumOfEggs that takes zero arguments
and returns as result the bird's number of eggs. All birds have two legs. Some birds can fly (for example magpies) and
some birds cannot fly (for example ostriches).
Do not forget to change the main method of the Start class to run the unit tests of the new Bird class.
Question 4
Add a class Magpie to your program. Magpies are birds. The constructor for Magpie takes as argument only a name.
Magpies always have 6 eggs. Magpies can fly.
Do not forget to change the main method of the Start class to run the unit tests of the new Magpie class.
Question 5
Add a class Ostrich to your program. Ostriches are birds. The constructor for Ostrich takes as argument only a
name. Ostriches always have 10 eggs. Ostriches cannot fly.
Do not forget to change the main method of the Start class to run the unit tests of the new Ostrich class.
Question 6
Add a class Pegasus to your program. Pegasi are birds (a pegasus has the wings of a bird so for this lab we will assume
that pegasi are birds). The constructor for Pegasus takes as argument only a name. Pegasi have four legs (not two legs
like other birds). Pegasi can fly.
Pegasi do not lay eggs so the getNumOfEggs method of the Pegasus class should just print a message "Pegasi do
not lay eggs!
" and return zero as a result.
Do not forget to change the main method of the Start class to run the unit tests of the new Pegasus class.
Question 7
Add an interface Flyer with the following UML specification:
+-----------------------+
| <<interface>> |
| Flyer |
+-----------------------+
| + getName(): String |
| + canFly(): boolean |
+-----------------------+
The Bird class implements the Flyer interface.
Change the main method of the Start class to tests magpies, ostriches, and pegasi when viewed through the Flyer
interface.
Can you test objects from the Animal, Dog, or Bird classes through the Flyer interface? Why or why not?
Question 8
Add a class Airplane that implements the Flyer interface. The constructor for Airplane takes as argument only a
name. An airplane is not an animal.
Do not forget to change the main method of the Start class to run the unit tests of the new Airplane class. Also
make sure to test it when viewed through the Flyer interface.
Question 9
Add a method isDangerous to the Flyer interface. This method returns a boolean as result, indicating whether the
corresponding object is dangerous or not. Only ostriches are dangerous.
Which classes need to be changed? Which classes do not need to be changed?
Do not forget to add new tests for the isDangerous method.

In: Computer Science

A single mother with two young children comes into a doctor's office with a medical condition...

A single mother with two young children comes into a doctor's office with a medical condition that can be treated in one of two ways. The first way requires a short hospital stay and a two week recovery. It is mostly covered by her insurance, but she has no one to take care of her children during the work week and cannot really afford to miss so much work. The second way is a relatively new out-patient method that has a three day recovery. She can even come in on Friday so that she misses minimal work. However, her insurance does not cover the procedure. She asks if the doctor can do this procedure but bill it to her insurance as the one involving the longer recovery. What would you recommend the doctor do? State which method you are using from the Making Ethical decision folder. Then apply it. While some of the articles mention the same methods; there are methods that are not in all of them One example is the newspaper test.

In: Psychology

A single mother with two young children comes into a doctor's office with a medical condition...

A single mother with two young children comes into a doctor's office with a medical condition that can be treated in one of two ways. The first way requires a short hospital stay and a two week recovery. It is mostly covered by her insurance, but she has no one to take care of her children during the work week and cannot really afford to miss so much work. The second way is a relatively new out-patient method that has a three day recovery. She can even come in on Friday so that she misses minimal work. However, her insurance does not cover the procedure. She asks if the doctor can do this procedure but bill it to her insurance as the one involving the longer recovery. What would you recommend the doctor do? State which method you are using from the Making Ethical decision folder. Then apply it. While some of the articles mention the same methods; there are methods that are not in all of them One example is the newspaper test.

In: Psychology

Question 1 Describe a Business Continuity Management System including its BIA Strategies, plans, and Tests and...

Question 1

Describe a Business Continuity Management System including its BIA Strategies, plans, and Tests and Exercises that would be appropriate for the Organization. Justify your chosen strategies and type of exercises.

Question 2.

A) Outline key/distinguishing characteristics and objectives of Emergency Management, Crisis Management, Disaster Recovery Planning and Business Continuity Management? Provide brief examples of relevant past real world incidents requiring initiation of each of these activities.

B) What is Business Continuity Management? List and explain in details the three Elements of BCM

C) What are the most common approaches to executing a BIA? Mention the four main elements of a BIA.

Question 3.

A) Distinguish between Recovery Time Objectives (RTOs) and Recovery Pont Objectives (RPOs).

B) What is an important consideration when identifying RTOs? Illustrate your answer with practical real world examples.

C) Describe in details What an Emergency Operations Center is and give differences between Cold, Warm and Hot Sites.

Provide reference for the answers

In: Operations Management

(3) (a) Show that every two-dimensional subspace of R3 is the kernel of some linear transformation...

(3) (a) Show that every two-dimensional subspace of R3 is the kernel of some linear transformation T : R3 → R. [Hint: there are many possible ways to approach this problem. One is to use the following fact, typically introduced in multivariable calculus: for every plane P in R3, there are real numbers a, b, c, d such that a point (x,y,z) belongs to P if and only if it satisfies the equation ax+by+cz = d. You may use this fact without proof here, if you like; note that it considers all planes, not just those through the origin.] (b) Are there any other sets W such that W is the kernel of some linear transformation T : R3 → R? (If not, explain why not; if so, explain why the set or sets you mention can be kernels, and why there are no others.) (c) What possibilities are there for the image im(T) of a linear transformation T : R3 → R? (d) What possibilities are there for the kernel and image of a linear transformation S : R → R3?

In: Advanced Math

Following complaints about the working conditions in some apparel factories both in the United States and...

Following complaints about the working conditions in some apparel factories both in the United States and abroad, a join government and industry commission recommended in 1998 that companies that monitor and enforce proper standards be allowed to display a “No Sweat” label on their products. Does the presence of these labels influence consumer behavior? A survey of U.S. residents aged 18 or older asked a series of questions about how likel they would be to purchase a gament under various conditions. For some conditions, it was stated that the garment had a “No Sweat” label; for others, there was no mention of such a label. On the basis of the responses, each person was classified as a “label use” or a “label nonuser” there were 296 women surveyed. Of these, 63 were label users. On the other hand, 27 of 251 men were classified as users.

(a) Give a 95% confidence interval for the difference in the proportions.

(b) You would like to compare the women with the men. Set up appropriate hypotheses, and find the test staitistic and the P-value. What do you conclude?

In: Statistics and Probability

Although inequalities in income and education underlie many health disparities, the poor are sometimes held responsible...

Although inequalities in income and education underlie many health disparities, the poor are sometimes held responsible for their health status. For instance, Dr. Ichiro Kawachi, a Harvard University professor and social epidemiologist, reports that the ability to avoid negative health behaviors like smoking and eating unhealthy foods depends on access to "income, education, and the social determinants of health." On the basis of your knowledge of the health of the poor, answer the following questions:

Should the poor be held responsible for their health disparities? Why or why not?

What are some common stereotypes of the poor? How do these stereotypes contribute to the poor being held responsible for their health status?

What conditions in your community promote or hinder healthy choices?

In addition to the above, consider the input that research on women has lagged behind research on men. Many health treatments that address health risks for women are based on research conducted on men. With reference to your understanding of the healthcare system, mention the factors that determine whether the health treatments based on research on men will be successful with women.

In: Nursing

During this time of COVID-10 there are Instagram challenges (interventions) to get people active. Intervention 1)...

During this time of COVID-10 there are Instagram challenges (interventions) to get people active.

Intervention 1) Upload a video of your factor home exercise and tag friends to try to. When you complete your buddies workout or skill (on film) keep the momentum. Film a few move & tag people.

Intervention 2) Do 10 push ups, then tag as many friends as you'd like and challenge them to do the same. If you get tagged yourself, keep the thread going and.

Now, consider what you know about designing a health intervention. Identifying a target population is important because different people have different life situations and contexts.

Choose one of the "interventions" above to resign for the following regroups

- seniors (living independently, no health complications, low-moderate activity levels)

- parents of young children (under 12 years)

mention reasons why you think your redesign of the intervention will be more successful than the original.

In: Nursing

Assets: Current Assets: cash $100,000 Unclaimed payroll checks 27,500 Securities at cost (fair value $ 30,000)...

Assets:

Current Assets:

cash

$100,000

Unclaimed payroll checks

27,500

Securities at cost (fair value $ 30,000)

37,000

Accounts receivable (minus provision for bad debts)

75,000

Inventory (cost or market whichever is lower)

240,000

Total assets

479,500

Tangible assets:

Land (minus accumulated depreciation)

80,000

Buildings (net)

550,000

Net tangible assets

630,000

Total long-term investments:

Stocks and bonds

100,000

Treasury stocks

70,000

Total long-term investments

170,000

Other assets:

Discount on bonds payable

19,400

reserve

975,000

Other total assets

994,000

Total assets

2,273,900

  • After your review and careful analysis of the above balance sheet items, you are required to answer the following questions:

2- mention the above balance sheet determinants? clarify with the explanation.

3- Discuss the ethical issue related to the way the above balance sheet was classified?

4- Make your opinion on the completeness and comprehensiveness of the above balance sheet.

In: Accounting

As part of your summer job at the local community center, your supervisor asks you to...

As part of your summer job at the local community center, your supervisor asks you to lead a community discussion on the uses of embryonic stem cells. Your goal is to cut through the rhetoric and provide information to the diverse group of community members that will attend.

Write your notes for this event. (2pt each)

Include:

1) a definition of a stem cell including its to two main characteristics,

2) a brief description of the origin of human embryonic stem cells (where/what stage do they come from),

3) an example of at least one other general type of stem cell and a mention of its “potency”,

4) one problem with ESCs and one possible solution

5) your logical opinion of their use.

6) As you have a diverse audience, include your thoughts on when human identity/life begins and

7) two other logical points that others say are the beginning of human identity/life.

Write your notes as if you were presenting at the community center.

In: Biology