Questions
 This homework will check your ability to declare and use classes and object, and how...

 This homework will check your ability to declare and use classes and object, and how to use both Maps and sets in Java. The assignment will also serve as an introduction to Junit Testing.

 Here is the general layout. Some more detailed instructions are also included below. Pay attention to the details and the naming conventions, since we will be running your code through testing code the grading team will develop. That code will require your method signatures to be consistent with these instructions.

 Please call your project LegislatorFinder

 inside your project, please have a package called LegislatorFinder

 create your java files inside the LegislatorFinder package.

 We will be simulating the system by which people can find who their legislators are:

There is a class called Legislator, with the following attributes: ▪ lastName ▪ firstName ▪ politicalParty ▪ Each of those attributes has getter and setter functions therefore, this class has the following methods:  getLastName(),  getFirstName,  getPoliticalParty(),  setFirstName(string),  setLatName(string),  setPoliticalParty(string) ▪ in addition, the class has two constructors:  one with no arguments.  One that takes arguments string, string, string

There is a class called LegislatorFinder ▪ this class has only one attribute, a TreeMap ▪ for methods, you should implement  addLegislator(string state, Legislator l) ◦ if the state already exists in the TreeMap, it adds this legislator to the set the state maps to. ◦ If the state doe not exist in the TreeMap, it adds a new key:value pair to the map, with this legislator in the corresponding set.  getLegislators(string state) ◦ returns the set of legislators from the given state. If there is no such state key in the map, returns an empty set.  substituteLegislators(String state, Set newLegislators) ◦ substitutes the legislators for the indicated state with the one in newLegislators. If there was no such state key in the Map, it creates a new key:value pair. If there was a key:value pair for this state already, it substitutes the previous set of legislators with the one passed as an input parameter.

◦ Through JUnit tests, test the following operations: ▪ adding legislators, both for a state key that is already in the map, and for a state key not yet in the map. ▪ Retrieving legislators, both for a state key that is already in the map, and for a state key not yet in the map. ▪ Substituting the set of legislators for a given state for the following cases:  the state was not previously being used as a key in the map.  The key was being used as a key in the map.

(Need to implement a TreeMap method)

In: Computer Science

a. What can the business cycle tell you about the status of our economy today and...

a. What can the business cycle tell you about the status of our economy today and into the future?

b. Given what you have learned about the U.S. Business cycle over the past 60 years, please explain 4 things you should do to enhance your personal odds of achieving personal future success.

Please answer both question Thanks

In: Economics

You may need to use the appropriate appendix table or technology to answer this question. Consider...

You may need to use the appropriate appendix table or technology to answer this question.

Consider the following hypothesis test.

H0: μ ≤ 50
Ha: μ > 50

A sample of 60 is used and the population standard deviation is 8. Use the critical value approach to state your conclusion for each of the following sample results. Use

α = 0.05.

(Round your answers to two decimal places.)

(a)

x = 52.4

Find the value of the test statistic.

State the critical values for the rejection rule. (If the test is one-tailed, enter NONE for the unused tail.)

test statistic≤test statistic≥

State your conclusion.

Reject H0. There is insufficient evidence to conclude that μ > 50.Do not reject H0. There is insufficient evidence to conclude that μ > 50.    Reject H0. There is sufficient evidence to conclude that μ > 50.Do not reject H0. There is sufficient evidence to conclude that μ > 50.

(b)

x = 51

Find the value of the test statistic.

State the critical values for the rejection rule. (If the test is one-tailed, enter NONE for the unused tail.)

test statistic≤test statistic≥

State your conclusion.

Reject H0. There is insufficient evidence to conclude that μ > 50.Do not reject H0. There is insufficient evidence to conclude that μ > 50.    Reject H0. There is sufficient evidence to conclude that μ > 50.Do not reject H0. There is sufficient evidence to conclude that μ > 50.

(c)

x = 51.8

Find the value of the test statistic.

State the critical values for the rejection rule. (If the test is one-tailed, enter NONE for the unused tail.)

test statistic≤test statistic≥

State your conclusion.

Reject H0. There is insufficient evidence to conclude that μ > 50.Do not reject H0. There is insufficient evidence to conclude that μ > 50.    Reject H0. There is sufficient evidence to conclude that μ > 50.Do not reject H0. There is sufficient evidence to conclude that μ > 50.

In: Statistics and Probability

POST #1 (DISCUSSION) I POST IT TWICE, DONT ANSWER TO BOTH POSTS. DO NOT COPY YOUR...

POST #1 (DISCUSSION)

I POST IT TWICE, DONT ANSWER TO BOTH POSTS. DO NOT COPY YOUR ANSWER TO BOTH POSTS. I NEED TWO DIFFERENT VIEW. Thanks

YOUR ANSWER WILL BE CHECK FOR PLAGIARISM.

***PLEASE DO NOT UPLOAD PHOTO FOR ANSWER

***** DO NOT COPY FROM ANY WEBSITE. USE YOUR OWN WORD. DO NOT ANSWER IF YOU ARE NOT COMFORTABLE FOR ANY RESON.

****USE YOUR OWN WORD

****USE YOUR OWN WORD

****USE YOUR OWN WORD

****USE YOUR OWN WORD

--------------------------------------------------------------------------------------------------------------

Discussion

Discuss what you would consider part of the growing Special Populations. In addition, what specific issues and concerns do you have about emergency planning in respect to our Special Population?

In: Economics

Ponzi-Scheme Ponzi Scheme is known as one of best examples of breach of public trust. •...

Ponzi-Scheme

Ponzi Scheme is known as one of best examples of breach of public trust. •

Please describe what sort of principal-agent relationship exist in the Ponzi scheme, how the Ponzi scheme works, and what it does to the firm, investors, financial market/public, what SEC actions were. Please explain in detail because I have no idea what this is and I need an in depth analysis of the Pnozi-Scheme.

Please provide in depth response without copying from google!

In: Finance

1-) What can be occur when the bar spacing is too small and too large? What...

1-) What can be occur when the bar spacing is too small and too large? What are important for the operation and maintenance of screens?
2-) what may be happen when the activated sludge system hydraulically overloaded or underloaded? What may be happen when the activated sludge system may be subjected to organic underloading or overloading?
Please explain in detail

#environmental engineering

i ask before but false answers were given do not copy paste other answer please

In: Civil Engineering

You are matched with someone and each of you chooses R or B. The payoffs are...

You are matched with someone and each of you chooses R or B. The payoffs are determined as follows. If you each play your red card, you will each earn $10.If you each play the black card, you will each earn $20. If you play your black card and the other person plays red, then you earn $0 and the other person earns $30. If you play red and the other person plays black, then you earn $30and the other person earns nothing.

(a)Express the game in matrix form. [5pts]

(b)Find all the Nash equilibria (possibly involving mixed strategies). [5pts]

(c)Derive the set of the subgame perfect equilibria when you play this game T times with the same student. [5pts]

(d)For what values of the discount factor does the combination of the follow-ing trigger strategies form a subgame-perfect Nash equilibrium when thetwo students play the game repeatedly infinitely many times? [10pts]

ait= (B if t= 1 or both players have observed (a1t0, a2t0) = (B,B) for all t' ≤ t−1; R otherwise), where ait is player i’s action at the t th stage.

In: Economics

1. • Country A and country B both have the production function Y 5 F(K, L)...

1. • Country A and country B both
have the production function
Y 5 F(K, L) 5 K1/3L2/3.
a. Does this production function have constant
returns to scale? Explain.
b. What is the per-worker production function,
y 5 f (k)?
c. Assume that neither country experiences
population growth or technological progress
and that 20 percent of capital depreciates each
year. Assume further that country A saves
10 percent of output each year and country
B saves 30 percent of output each year. Using
your answer from part (b) and the steady-state
condition that investment equals depreciation,
find the steady-state level of capital per worker
for each country. Then find the steady-state
levels of income per worker and consumption
per worker.
d. Suppose that both countries start off with a
capital stock per worker of 1. What are the
levels of income per worker and consumption
per worker?
e. Remembering that the change in the capital
stock is investment less depreciation, use a
calculator (or, better yet, a computer spreadsheet)
to show how the capital stock per
worker will evolve over time in both countries.
For each year, calculate income per
worker and consumption per worker. How
many years will it be before the consumption
in country B is higher than the consumption
in country A?

In: Economics

Advocacy has always been an important piece of the healthcare professional's role. But, with globalization, widening...

Advocacy has always been an important piece of the healthcare professional's role. But, with globalization, widening advocacy efforts have become increasingly important.

After completing the readings for this module, use your journal assignment to explain what global health is and how it relates to population health. Refer to the course outcomes and reflect on how they apply to your current or future profession. In relation to the patient or client, what is your role as a healthcare professional? What do you know and understand about advocacy? What opportunities for advocacy do you see in your current or future career?

What questions do you have about the role of advocacy in your career?

e-book: Health Policymaking in the United States
The selected readings from this e-book, located in the Shapiro Library, support you in both the journal assignment by providing context on the health policymaking process in the United States.

Chapters 1, 9, and 10

Chapter 1: Health and Health Policy

  • What are the challenges related to health policy?
  • What differences exist between the various forms of health policy?
  • What is the impact of policy on health?

Chapter 9: Policy Modification

  • What is the role of policy modification in policymaking?
  • What are the pros and cons of incrementalism as it relates to policymaking?
  • What improvements would you make to the policymaking process?

Chapter 10: Building Policy Competence for Health Professionals

  • How can policy competence support your role as a health professional?
  • What steps can healthcare professionals take to influence policy?

In: Nursing

2. A 19-year-old male develops a spontaneous pneumothorax, What effect will this condition have on his ventilation and perfusion status and why?


 2. A 19-year-old male develops a spontaneous pneumothorax, What effect will this condition have on his ventilation and perfusion status and why?

 3. An ICU patient has been intubated for several days. The patient is being gradually weaned from the ventilator. Suddenly, the patient's 02 saturation decreases. The patient has adequate oxygenation due to the mechanical ventilation. State a possible cause and how it occurred.

 4. In your own words, explain inspiration, expiration, ventilation, perfusion, hypoxia, and hypoxemia.

 5. In your own words, explain the physiology behind inhalation and exhalation.


In: Nursing