Questions
You are to write a program using Java that will simulate a slot machine with four...

You are to write a program using Java that will simulate a slot machine with four wheels. It will determine the amount of money won for each spin. The four wheels spin and stop showing a value between 0 and 9 inclusive. It costs $2 to play.

•You win $500 (but not the $2 you bet) if you get 4 wheels the same.

•You win $10 (but not the $2 you bet) if you get exactly 3 of a kind.

•You win $5 (but not the $2 you bet) if you get two pairs.

•You win $2 if you get 2 wheels the same (That is, you break even).

•You win nothing and lose your $2 bet if you get no matches.

Your program must use 4 methods:

1.One to randomly generate the 4 wheel values.

2.One to output the result of the spin.

3.One to compute the win or loss and print the correct message

4.Finally, one to output new balance and a nice line break graphic as seen below.

Input and Output:Your program will randomly generate a starting balance between $100 and $200 inclusive. Your program will randomly generate four integers (1 for each wheel).Your program will output a description of the input combination and the amount you won or lost.Your program will output your new balance after each spin.

Please help

In: Computer Science

In 2014, the 11th United States Court of Appeals ruled in favor of Chiquita Brands, a...

In 2014, the 11th United States Court of Appeals ruled in favor of Chiquita Brands, a Cincinnati–based multinational marketer and distributor of food products—widely known for its Chiquita banana brand—which had been accused by 4000 Colombians of supporting paramilitary soldiers who had killed or tortured their relatives. The court ruled on technical grounds that the Colombians could not sue the company under the laws they had cited. “The Alien Tort Statute does not apply extraterritorially,” wrote Judge David Sentelle, and “the Torture Victim Protection Act only applies to actual people, not to corporations.”

The Colombians had sought $7.86 billion in damages, on the basis that Chiquita was responsible for the deaths of 393 victims at the hands of a paramilitary group called the United Self-Defense Forces of Colombia that Chiquita had funded through their payments. The lawsuits pointed specifically to a 1997 massacre in which 49 people were tortured, dismembered, and decapitated and another incident in 2000 in which 36 more people were killed.

The lawsuit was ironic, because Chiquita had originally made the payments to the paramilitary group to protect its Colombian employees from harm—not to put people at risk. However, once the payments had been made, Chiquita had no control over what the outlaw group did with the funds—which it had apparently used to terrorize other people in the community. “The principle upon which this lawsuit is brought,” said the Colombians’ attorney Jonathan Reiter, “is that when you put money into the hands of terrorists, when you put guns into the hands of terrorists, then you are legally responsible for the atrocities, the murders and the tortures that those terrorists commit.”

Chiquita’s problems began in the early 2000s, when the United Self-Defense Forces of Colombia attempted to extort substantial payments from the company to help fund the group’s operations. The paramilitary group made it clear that if the company did not make the payments Chiquita’s employees would be at risk. The company’s managers took these threats seriously, because they were aware that in 1995 the paramilitary group had been responsible for bombing Chiquita’s operations and murdering 17 banana workers, who had been gunned down on a muddy soccer field.

Page 112

Chiquita’s mission emphasized a strong sense of ethical performance and social responsibility. It stated that it wanted “to help the world’s consumers broaden mindsets about nutrition and bring healthy, nutritious, and convenient foods that taste great and improve people’s lives.” Therefore, it was not surprising that Chiquita’s management also wanted to protect its employees and ensure their safety while working for the company. In a handwritten note, a Chiquita executive said that such payments were the “cost of doing business in Colombia.” The company agreed to make the payments demanded by the paramilitary group, but hid the payments through a series of questionable accounting actions. From 1997 through 2004 Chiquita paid monthly “protection payments” totaling more than $1.7 million.

After the September 11, 2001, terrorist attack in the United States, the U.S. Government declared the Colombian paramilitary group to be a terrorist organization. In February 2003, a Chiquita employee informed a senior Chiquita officer that the company’s protection payments were illegal under the new U.S. terrorism laws. Chiquita officials met with their attorneys in Washington, DC, and were advised to stop the payments to the terrorist group. Yet the company continued to make the protection payments, amounting to an additional $825,000.

In the minds of the Chiquita’s executives, stopping the payments would risk the lives of their employees. Chiquita’s executives also considered but rejected the option of withdrawing operations from Colombia. But in a surprising move in April 2003, Chiquita decided to disclose to the Department of Justice that the company was still making payments to the Colombian paramilitary group. The company told the government that the payments were made under the threat of violence against them and their employees.

The Justice Department informed Chiquita that these payments were illegal, yet the company continued to make the payments. In 2007 Chiquita Brands International pleaded guilty to one count of the criminal charge of engaging in transactions with a designated global terrorist group and agreed to pay a $25 million fine.

In explaining its actions, a company spokesperson stated that “Chiquita and its employees were victims and that the actions taken by the company were always motivated to protect the lives of our employees and their families.” He added, “Our company had been forced to make protection payments to safeguard our workforce. It is absolutely untrue for anyone to suggest that these payments were made for any other purpose.”

Sources: “Chiquita Brands International Pleads Guilty to Making Payments to a Designated Terrorist Organization and Agrees to Pay $25 Million Fine,” U.S. Department of Justice Press Release, March 19, 2007, www.justice.gov/opa/pr/2007/March/07_nsd_161.html; “Colombian Families’ Suit Says Chiquita Liable for Torture, Murder,” CNN.com, February 14, 2007, www.cnn.com/2007/US/law/11/14/chiquita.lawsuit; “Chiquita Sued Over Colombian Paramilitary Payments,” The Sacramento Bee, May 30, 2011, www.sacbeee.com; and “US Appeals Court Says Colombians Cannot Sue Chiquita,” BBC News, July 24, 2014, www.bbc.com/news/world-latin-america-28469357.

Discussion Questions

  1. Do you agree with the 11th U.S. Court of Appeals ruling that cleared Chiquita of any liability for the victims killed by the paramilitary group that Chiquita funded? Construct an ethical argument that supports your view.

  2. Using each of the four methods of ethical reasoning (see Figure 5.6), was it ethical or not for Chiquita to pay the terrorist organization when payments were demanded in the early 2000s?

  3. Should the U.S. ban against supporting terrorist groups, imposed after the September 11, 2001, attacks in the United States, be applied in this situation? Why or why not?

  4. Is there anything that Chiquita could have done to protect its employees adequately without paying the terrorists?

  5. Should Chiquita be assessed a penalty that puts the firm out of business for their actions?

In: Economics

Direct Materials, Direct Labor, and Factory Overhead Cost Variance Analysis Mackinaw Inc. processes a base chemical...

Direct Materials, Direct Labor, and Factory Overhead Cost Variance Analysis

Mackinaw Inc. processes a base chemical into plastic. Standard costs and actual costs for direct materials, direct labor, and factory overhead incurred for the manufacture of 6,800 units of product were as follows:

Standard Costs Actual Costs
Direct materials 8,800 lb. at $5.60 8,700 lb. at $5.40
Direct labor 1,700 hrs. at $17.30 1,740 hrs. at $17.70
Factory overhead Rates per direct labor hr.,
based on 100% of normal
capacity of 1,770 direct
labor hrs.:
Variable cost, $3.10 $5,220 variable cost
Fixed cost, $4.90 $8,673 fixed cost

Each unit requires 0.25 hour of direct labor.

Required:

a. Determine the direct materials price variance, direct materials quantity variance, and total direct materials cost variance. Enter a favorable variance as a negative number using a minus sign and an unfavorable variance as a positive number.

Direct materials price variance $
Direct materials quantity variance
Total direct materials cost variance $

b. Determine the direct labor rate variance, direct labor time variance, and total direct labor cost variance. Enter a favorable variance as a negative number using a minus sign and an unfavorable variance as a positive number.

Direct labor rate variance $
Direct labor time variance
Total direct labor cost variance $

c. Determine variable factory overhead controllable variance, the fixed factory overhead volume variance, and total factory overhead cost variance. Enter a favorable variance as a negative number using a minus sign and an unfavorable variance as a positive number.

Variable factory overhead controllable variance $
Fixed factory overhead volume variance
Total factory overhead cost variance $

PART 2

Leno Manufacturing Company prepared the following factory overhead cost budget for the Press Department for October of the current year, during which it expected to require 18,000 hours of productive capacity in the department:

Variable overhead cost:
   Indirect factory labor $169,200
   Power and light 8,100
   Indirect materials 43,200
      Total variable overhead cost $220,500
Fixed overhead cost:
   Supervisory salaries $77,180
   Depreciation of plant and equipment 48,510
   Insurance and property taxes 30,870
      Total fixed overhead cost 156,560
Total factory overhead cost $377,060

Assuming that the estimated costs for November are the same as for October, prepare a flexible factory overhead cost budget for the Press Department for November for 16,000, 18,000, and 20,000 hours of production. Round your interim computations to the nearest cent, if required. Enter all amounts as positive numbers.

Leno Manufacturing Company
Factory Overhead Cost Budget-Press Department
For the Month Ended November 30
Direct labor hours 16,000 18,000 20,000
Variable overhead cost:
Indirect factory labor $ $ $
Power and light
Indirect materials
Total variable factory overhead $ $ $
Fixed factory overhead cost:
Supervisory salaries $ $ $
Depreciation of plant and equipment
Insurance and property taxes
Total fixed factory overhead $ $ $
Total factory overhead cost $ $ $

In: Accounting

STUDENT-Part-II-COVID-19-Family_Dilemma.pdf ( Please Read) Novel Coronavirus Disease (COVID-19) Family Dilemma: Part II Glenda Taylor, 67 years...

STUDENT-Part-II-COVID-19-Family_Dilemma.pdf ( Please Read)

Novel Coronavirus Disease (COVID-19) Family Dilemma: Part II


Glenda Taylor, 67 years old (John’s spouse)

Scenario
History of Present Problem:
John Taylor is a 68-year-old African-American male who was admitted to the MedSurg unit after testing positive for COVID-19 today. Four hours later he got up to use the bathroom and went into acute respiratory distress with increasing O2 needs and decreasing O2 sat. John is transferred emergently to the intensive care unit (ICU). John’s spouse Glenda has not been allowed to visit her husband because of current hospital policy that does not allow visitors for COVID-19 patients.

1. What data from the history is RELEVANT and must be NOTICED as clinically significant by the nurse?
(Reduction of Risk Potential)

2. RELEVANT Data from Present Problem:   Clinical Significance:     
         

The Dilemma Begins
IMPORTANT CONSIDERATION:
The essence of a clinical dilemma is that there is no clear right or wrong answer or response. Using principles of medical ethics and the American Nurses Association code of ethics and one’s conscience are guidelines to successfully resolve the dilemmas that nurses will experience in practice.

Current Concern:
Since Glenda has not been updated on John’s change of status, you call Glenda and communicate his critical condition
and his need to be intubated and placed on a ventilator. Glenda is clearly upset and states, “I need to see him! I need to be there! We’ve been married for 48 years and nothing has separated us! He needs me now more than ever!

3. What data from the current concern is RELEVANT and must be NOTICED as clinically significant by the nurse?
(Reduction of Risk Potential)

4. RELEVANT Data from Current Concern:   Clinical Significance:     
         

Caring and the “Art” of Nursing


5. What is John’s spouse likely experiencing/feeling right now in this situation? What would you specifically communicate to his spouse under these circumstances? (NCLEX: Psychosocial Integrity)

6. What Patient/Family is Experiencing:   What to Communicate:     
         

Resolving the Dilemma


7. Interpreting RELEVANT clinical data, what is the essence of this clinical dilemma? (Management of Care)


8. What additional information is needed by the nurse to clarify the dilemma? (Management of Care)


9. What additional members of the healthcare team could be used in this situation if Glenda was able to be in the hospital? Why? (Management of Care)


10. What psychosocial/holistic care PRIORITIES need to be addressed for this patient?
(Psychosocial Integrity/Basic Care and Comfort)

11. Psychosocial PRIORITIES:         
PRIORITY Nursing Interventions:   Rationale:   Expected Outcome:     
             

12. How can you ensure that John’s spouse receives adequate communication about the plan of care despite her inability to be in the hospital?

13. What principles of therapeutic communication are relevant and how can they be stated by the nurse to develop trust and encourage dialogue between the nurse and family during this phone call? (Psychosocial Integrity)

14. Principles Therapeutic Communication:   HOW to Communicate:     
         

Evaluation: Six Hours Later…

15. EVALUATE your patient by INTERPRETING relevant clinical data to determine if Glenda’s coping is improving, declining, or reflects no change. (NCSBN: Step 6 Evaluate outcomes/NCLEX: Management of Care)

16. RELEVANT Data:   Clinical Significance:   Improving-Declining No Change:     
             

17. What response by Glenda would indicate that a change in the plan of care and nursing interventions are needed?
(Management of Care)


18. Reflect on Your Thinking to Develop Clinical Judgment
To develop clinical judgment, reflect on your thinking that was used to complete this case study by answering the following questions:

19. What did you do well in this case study?   What weaknesses did this case study identify?     
         
20. What is your plan to make any weakness a strength?   How will you apply what was learned to future patients?     
         

John Taylor Covid Patient: Please read the current scenario with John.

What about his wife?

We are going to cover every aspect as noted in the scenario.

What is the relevant data with the current problem?

What is the relevant data with the current concern with John's wife Glenda?

What is the art of nursing with caring?

Resolving the Dilemma, and the psychosocial Properties and the nursing interventions.

And we will finish with block 6 and therapeutic communication.

STUDENT-Part-II-COVID-19-Family_Dilemma.pdf

In: Nursing

STUDENT-Part-II-COVID-19-Family_Dilemma.pdf ( Please Read) Novel Coronavirus Disease (COVID-19) Family Dilemma: Part II Glenda Taylor, 67 years...

STUDENT-Part-II-COVID-19-Family_Dilemma.pdf ( Please Read)

Novel Coronavirus Disease (COVID-19) Family Dilemma: Part II


Glenda Taylor, 67 years old (John’s spouse)



Primary Concept     
Professionalism/Communication     
Interrelated Concepts (In order of emphasis)     
Clinical Judgment
Collaboration
Patient Education     
NCLEX Client Need Categories   Percentage of Items from Each Category/Subcategory   Covered in Case Study     
Safe and Effective Care Environment         
Management of Care  
Safety and Infection Control  
Health Promotion and Maintenance     
Psychosocial Integrity  
Physiological Integrity         
Basic Care and Comfort     
Pharmacological and Parenteral Therapies  
Reduction of Risk Potential     
Physiological Adaptation  

I. Scenario
History of Present Problem:
John Taylor is a 68-year-old African-American male who was admitted to the MedSurg unit after testing positive for COVID-19 today. Four hours later he got up to use the bathroom and went into acute respiratory distress with increasing O2 needs and decreasing O2 sat. John is transferred emergently to the intensive care unit (ICU). John’s spouse Glenda has not been allowed to visit her husband because of current hospital policy that does not allow visitors for COVID-19 patients.

What data from the history is RELEVANT and must be NOTICED as clinically significant by the nurse?
(Reduction of Risk Potential)

RELEVANT Data from Present Problem:   Clinical Significance:     
         

The Dilemma Begins
IMPORTANT CONSIDERATION: The essence of a clinical dilemma is that there is no clear right or wrong answer or response. Using principles of medical ethics and the American Nurses Association code of ethics and one’s conscience are guidelines to successfully resolve the dilemmas that nurses will experience in practice.

Current Concern:
Since Glenda has not been updated on John’s change of status, you call Glenda and communicate his critical condition
and his need to be intubated and placed on a ventilator. Glenda is clearly upset and states, “I need to see him! I need to be there! We’ve been married for 48 years and nothing has separated us! He needs me now more than ever!”

What data from the current concern is RELEVANT and must be NOTICED as clinically significant by the nurse?
(Reduction of Risk Potential)

RELEVANT Data from Current Concern:   Clinical Significance:     
         

Caring and the “Art” of Nursing
What is John’s spouse likely experiencing/feeling right now in this situation? What would you specifically communicate to his spouse under these circumstances? (NCLEX: Psychosocial Integrity)

What Patient/Family is Experiencing:   What to Communicate:     
         

Resolving the Dilemma
Interpreting RELEVANT clinical data, what is the essence of this clinical dilemma? (Management of Care)


What additional information is needed by the nurse to clarify the dilemma? (Management of Care)


What additional members of the healthcare team could be used in this situation if Glenda was able to be in the hospital? Why? (Management of Care)


What psychosocial/holistic care PRIORITIES need to be addressed for this patient?
(Psychosocial Integrity/Basic Care and Comfort)

Psychosocial PRIORITIES:         
PRIORITY Nursing Interventions:   Rationale:   Expected Outcome:     
             

   How can you ensure that John’s spouse receives adequate communication about the plan of care despite her inability to be in the hospital?

What principles of therapeutic communication are relevant and how can they be stated by the nurse to develop trust and encourage dialogue between the nurse and family during this phone call? (Psychosocial Integrity)

Principles Therapeutic Communication:   HOW to Communicate:     
         

Evaluation: Six Hours Later…

EVALUATE your patient by INTERPRETING relevant clinical data to determine if Glenda’s coping is improving, declining, or reflects no change. (NCSBN: Step 6 Evaluate outcomes/NCLEX: Management of Care)

RELEVANT Data:   Clinical Significance:   Improving-Declining No Change:     
             

What response by Glenda would indicate that a change in the plan of care and nursing interventions are needed?
(Management of Care)


Reflect on Your Thinking to Develop Clinical Judgment
To develop clinical judgment, reflect on your thinking that was used to complete this case study by answering the following questions:

What did you do well in this case study?   What weaknesses did this case study identify?     
         
What is your plan to make any weakness a strength?   How will you apply what was learned to future patients?     

In: Nursing

1) According to Victor Rios, police violence should be understood not only as racial violence, but...

1) According to Victor Rios, police violence should be understood not only as racial violence, but also as ________________.

a) Gender violence

b) National violence

c) Gyn violence

d) Political violence

2) According to Eric Klinenburg, which of the following are components of a sociological (denaturalized) approach to studying disasters?

a) The social morphology and political economy of vulnerability

b) The role of the state in determining this vulnerability

c) The tendencies of journalists and political officials to render invisible both the political economy of vulnerability and the role of the state in determining vulnerability

d) All the above

3) According to Eric Klinenburg, during the 1995 Chicago Heat Wave, __________ was linked to destiny.

a) Age

b) Gender

c) Geography

d) Income

4) According to Vivek Bald, early South Asian migrants to the United States often worked as:

a) Medical Doctors

b) Engineers

c) Peddlers

d) Businessmen

  1. According to Walter Rodney, the question as to who, and what, is responsible for African underdevelopment is answered first that the __________ system bears major responsibility for African economic retardation by draining African wealth and by making it impossible to develop more rapidly the resources of the continent

In: Economics

The table below contains the following variables, growth rates of real GDP, M1, M2, velocity of...

The table below contains the following variables, growth rates of real GDP, M1, M2, velocity of M1 and M2 (denoted V1 and V2), the federal funds rate (FFR), and the CPI inflation rate. Use the quantity equation to calculate the equilibrium inflation rate using individually M1 and M2. Next, calculate the equilibrium inflation rate assuming the quantity theory of money holds (i.e. assuming velocity is constant). According to your calculations, which is a better predictor of inflation, M1 or M2? Similarly, which is a better predictor of inflation, assuming the quantity theory holds, or not?

Table 8.3: Growth Rates

RGDP

M1

M2

V1

V2

FFR

CPI

1990

1.9

3.6

5.5

2.0

0.2

8.10

5.4

1995

2.7

-0.2

2.0

5.1

2.8

5.84

2.8

2000

4.1

0.1

6.0

6.3

0.4

6.24

3.4

2005

3.3

2.1

4.3

4.5

2.2

3.21

3.4

2010    2.5 6.4 2.5 -2.5

1.2

0.18

1.6

2015    2.4 7.5 5.9 -3.8

-2.3

0.13

0.1

(Source: FRED II, St. Louis Federal Reserve)

In: Economics

Mays Industries was established in 1992. Since its inception, the company has generated the following levels...

Mays Industries was established in 1992. Since its inception, the company has generated the following levels of earnings before taxes (EBT) (losses are shown in parentheses):

                    Year         EBT

                    1992      $ 50,000

                    1993        40,000

                    1994        30,000

                    1995        20,000

                    1996      (100,000)

                    1997        60,000

Assume that each year the company has faced a 40 percent income tax rate. What is the company's tax liability for 1997? (Hint: Tax law allows losses to be applied to taxable income from the prior three years and then carried forward up to 15 years in calculating a firm’s current tax liability. Said differently, a firm can receive a tax refund in years in which a loss is incurred if the firm has taxable income in the prior three years. The amount of the refund a firm is eligible for is limited to the amount of taxes paid in the prior three years. If taxes paid in the prior three years are less than the tax rate times the loss, then the difference can offset tax liabilities in the next 15 years until the difference is consumed.)

a. $20,000

b. $21,000

c. $22,000

d. $24,000

e. $26,000

In: Finance

4. Do the following problems, using data set #3: (a) Use the naïve forecasting method, the...

4. Do the following problems, using data set #3:

(a) Use the naïve forecasting method, the average of historical data method, and a 3-period moving average to estimate values of X.

(b) Calculate the Mean Absolute Error, the Mean Squared Error, and the Mean Absolute Percentage Error for each forecasting method.

(c) Based on your answers to (b), which the best forecasting method?

5. Do the following, using data set #3:

(a) Calculate a linear trend regression for X.

(b) Calculate a quadratic trend regression for X, using a 2-period model.

(c) Calculate the Mean Absolute Error, the Mean Squared Error, and the Mean Absolute Percentage Error for each forecasting method.

(d) Which model is better (a) or (b)? Explain.

#3

year

x

2006

5.8

2005

6.7

2004

6.8

2003

6.4

2002

6

2001

6

2000

6.8

1999

6.6

1998

7

1997

7

1996

6.6

1995

7.7

1994

5

1993

6

1992

7.8

1991

6.4

1990

6

1989

6.79

1988

7.5

1987

6.8

In: Statistics and Probability

1. Which of the following are TRUE regarding US poverty trends? a. All of the above...

1. Which of the following are TRUE regarding US poverty trends?

a. All of the above are true

b. African American children are 3 times more likely to live in poverty than white children

c. Transgender individuals are 2 times as likely to live in poverty than the general population

d. US Census date indicate that the US poverty rate is decreasing in the last few years

2. Which country has the smallest percentage of women in government leadership positions including National Parliament, House, and Senate seats?  

a. USA

b. Cuba

c. Rwanda

d. South Africa

3. The Equal Rights Amendment was ratified in the US in ________:

a. The ERA has never passed in the US

b. 1977

c. 1982

d. 1995

4. The World Economic Forum compares the 'gender gap', which is the relative position of women and men in economies around the world using educational, political, and health measures. The US is expected to close the gender gap, meaning that women and men would be more or less economically equal, in ______ years.  

a. 60

b. 20

c. 25

d. 50

In: Economics