Questions
5.6.2.  Programming Challenge : Song with Parameters Here’s another song, The Ants Go Marching, that is very...

5.6.2.  Programming Challenge : Song with Parameters

Here’s another song, The Ants Go Marching, that is very similar to the This Old Man song in its repetitive structure.

 The ants go marching one by one, hurrah, hurrah
 The ants go marching one by one, hurrah, hurrah
 The ants go marching one by one
 The little one stops to suck his thumb
 And they all go marching down to the ground

 The ants go marching two by two, hurrah, hurrah
 The ants go marching two by two, hurrah, hurrah
 The ants go marching two by two
 The little one stops to tie his shoe
 And they all go marching down to the ground

 The ants go marching three by three, hurrah, hurrah
 The ants go marching three by three, hurrah, hurrah
 The ants go marching three by three
 The little one stops to climb a tree
 And they all go marching down to the ground
 
  1. Print out the The Ants Go Marching song and circle the repeated parts of the song.

  2. In the active code window below, create a method or methods that takes parameters to print out a verse. The method(s) should be abstract enough to work for all 3 verses. Use good commenting for your methods that describe the @param. For the autograder, make sure you create a method called verse that takes 2 parameters.

  3. In the main method, create an object of the class and call the method(s) you created in the last step to print out 3 verses of the song. Can you add more verses?

Create method(s) with parameters to print out verses of the song The Ants Go Marching. https://www.lyrics.com/lyric/5526512/The+Ants+Go+Marching

public class Song
{
// Create at least 1 method called verse that takes 2 parameters
// that can be used to print out the verses of the song The Ants Go Marching


public static void main(String args[])
{
// Create a Song object and call its method(s) to print out
// the verses of The Ants Go Marching
// There should be atleast 1 method called verse that takes 2 arguments.


}
}

In: Computer Science

Use the article to answer these questions. Let me know if you need more information. What...

Use the article to answer these questions. Let me know if you need more information.

What question was asked?

Summarize the main points of the article—what is the primary goal or aim of the described study?

How was the question asked?

Summarize the main methods used in the study.

What did the authors find?

Summarize the major results of the study.

How does this article provide background information for quorum sensing in gingivitis?

Some possible questions you could address…How does this paper improve your knowledge of quorum sensing in gingivitis? Identify a key figure in the paper and describe its interpretation within the paper – How does the figure relate to what you may find in researching quorum sensing in gingivitis?

Article:

Bacterial Quorum Sensing and Microbial Community Interactions

ABSTRACT

Many bacteria use a cell-cell communication system called quorum sensing to coordinate population density-dependent changes in behavior. Quorum sensing involves the production of and response to diffusible or secreted signals, which can vary substantially across different types of bacteria. In many species, quorum sensing modulates virulence functions and is important for pathogenesis. Over the past half-century, there has been a significant accumulation of knowledge of the molecular mechanisms, signal structures, gene regulons, and behavioral responses associated with quorum-sensing systems in diverse bacteria. More recent studies have focused on understanding quorum sensing in the context of bacterial sociality. Studies of the role of quorum sensing in cooperative and competitive microbial interactions have revealed how quorum sensing coordinates interactions both within a species and between species. Such studies of quorum sensing as a social behavior have relied on the development of “synthetic ecological” models that use nonclonal bacterial populations. In this review, we discuss some of these models and recent advances in understanding how microbes might interact with one another using quorum sensing. The knowledge gained from these lines of investigation has the potential to guide studies of microbial sociality in natural settings and the design of new medicines and therapies to treat bacterial infections.

In: Biology

Below is a list of topics for you to select from for your Management project: Organizations...

  • Below is a list of topics for you to select from for your Management project:

  • Organizations as Open Systems
  • Measuring Job Satisfaction
  • Techniques for Changing Employee Attitudes
  • The Role of Non-work Activities in Work Behavior
  • Implications of Selective Perception for the Communication Model
  • Pay Secrecy and Employee Motivation
  • Choosing Between Individual and Group Decision Making: A Manager's Guide
  • Defense Mechanisms and Employee Behavior
  • The Contribution of the Hawthorne Studies to the Study of Management
  • Strengths and Weaknesses of Committee Decision Making
  • Methods for Overcoming resistance to Change
  • the Impact of Automation and Repetitive Tasks on Workers
  • Defining and Understanding Conflict, Cooperation, and Competition
  • Differences Between Male and Female Leadership Styles
  • "Discipline": A Dirty Word in the 2000s?
  • Drug and Alcohol Abuse in Organizations
  • Managing Interdepartmental Conflicts
  • Is There a Decline in the Motivation to Manage?
  • The Changing Work Force: Implications for Management
  • Employee Assistance Programs
  • The Changing Work Force: Impact on Human resource Management
  • The Application of Quantitative Management Theories
  • The Role of Labor Unions in the 2000s
  • Business Ethics: "Do Unto Others as You Would Have Them do Unto You" verses "Do it Before Someone Else Does"
  • Organizational Behavior Modification
  • Designing Effective Work Teams
  • Managing Resistance to Organizational Change
  • Ethical and Legal Obligations of Members of Boards of Directors
  • Ways of Determining Effective Spans of Control
  • Total Quality Management: Is it working?
  • A Study of Employee Relations in a U.S. Based Japanese-Owned Factory
  • A Review of the Japanese Concept of Lifetime Employment and the Employment of Women in Japanese Organizations

  • Management Project: Students will submit a written analysis of a selected topic. The paper will be typed, double spaced and the content of the paper will be between 3 - 5 pages in length. The title page, abstract and work cited pages do not contribute to the length. The paper must be submitted in MLA or APA format . The paper should be grammatically correct and free from typographical and spelling errors. There will be at a minimum of three (3) different references, (wikipedia and is not an acceptable reference).Footnotes and bibliography, where required must be presented in acceptable format.

In: Operations Management

1. True or False? If one programmer in a large team is given the task of...

1. True or False? If one programmer in a large team is given the task of writing a single function for the team project, this programmer is more likely to need a function driver than a function stub.

2. A(n) ____________________ is a dummy function that is included for testing the higher-level code.

3. ____________________ is the principle that a module should perform exactly one abstract action.

4.

For the function definition
int SomeFunc( /* in */ int alpha,
/* in */ int beta )
{
int gamma;
alpha = alpha + beta;
gamma = 2 * alpha;
return gamma;
}
what is the function postcondition?

a. // Postcondition: gamma == 2*alpha

b. // Postcondition: alpha == alpha@entry + beta
// && gamma == 2*alpha

c. // Postcondition: Function value == gamma

d. // Postcondition: Function value == 2*alpha

e. // Postcondition: Function value == 2*(alpha@entry + beta)

5. ____________________ is a measure of the quantity of information passing through a module's interface.

6. In contrast to promotion, ____________________ of data values can potentially cause loss of information.

7.

Using the library functions available through the header file cctype, which of the following can be used to determine if the variable someChar contains either a digit character or a lowercase letter?

a. if (isalnum(someChar) || isdigit(someChar))

b. if (isalpha(someChar) || isdigit(someChar))

c. if (isalnum(someChar) && !isupper(someChar))

d. if (islower(someChar) || isdigit(someChar))

e. c and d above

8. True or False? For team programming to succeed, it is essential that all of the module interfaces be defined explicitly and the coded modules adhere strictly to the specifications for those interfaces.

9.

Which of the following could cause an unexpected side effect?

a. modifying a global variable

b. changing the value of a value parameter

c. referencing a global constant

d. declaring an incoming-only parameter to be a reference parameter

e. a and d above

10. True or False? Unsigned types are most appropriate for advanced techniques that manipulate individual bits within memory within memory cells to avoid errors caused by, for example, using unsigned variables for ordinary numeric computations.

In: Computer Science

Prepare an income statement for the year

The adjusted trial balance of Wilder Company at December 31,2017,includes the following accounts:

Owner's Capital $15,600
Owner's Drawings 7,000
Service Revenue 39,000
Salaries & Wages Expense 16,000
Insurance Expense 2,000
Rent Expense 4,000
Supplies Expense 1,500
Depreciation Expense 1,300

Prepare an income statement for the Year

In: Accounting

7 part a Year                                      1  

7 part a

Year                                      1                              2                              3                             4                              5

Free Cash Flow      $22 million          $26 million          $29 million          $30 million          $32 million

General Industries is expected to generate the above free cash flows over the next five years, after which free cash flows are expected to grow at a rate of 5% per year. If the weighted average cost of capital is 9% and General Industries has cash of $15 million, debt of $45 million, and 80 million shares outstanding, what is General Industries' expected current share price?

a.

$6.19

b.

$8.17

c.

$7.78

d.

$11.57

part b 10:

Year 0

Years 1 to 10

Revenues

2.90

- Manufacturing Expenses

-0.5

- Marketing Expenses

-0.15

- Depreciation                  

- 0.5

= EBIT

1.75

- Taxes (40%)                   

-0.70

= Unlevered net income

1.05

+ Depreciation

+0.5

- Additions to Net Working Capital

-0.4

- Capital Expenditures          

-6.00

            

= Free Cash Flow

1.15

Panjandrum Industries, a manufacturer of industrial piping, is evaluating whether it should expand into the sale of plastic fittings for home garden sprinkler systems. It has made the above estimates of free cash flows resulting from such a decision. There are concerns of the sensitivity of this project to changes in the cost of capital. For what cost of capital does this project break-even? (Hint...Remember what IRR does!)

a.

8%

b.

10%

c.

12%

d.

14%

part c 11:

the average annual return for the S&P 500 from 1886 to 2006 is 5%, with a standard deviation of 15%. Based on these numbers, what is a 95% confidence interval for 2007's returns?

a.

-12.5%, 17.5%

b.

-15%, 25%

c.

-25%, 35%

d.

-25%, 25%

In: Accounting

Year                                      P index    &n

Year                                      P index            

nominal GDP

1                                           88                      

50

2                                           96                      

52

3                                           100                    

52

4                                           100                    

47

5                                           98                      

47

6                                           99                      

48

7                                           100                    

52

8                                           105                    

58

1.Let us begin our analysis with pairs of years where either GDP or the P index remained the same.

a)From year 2-3, nominal GDP stayed the same while prices rose. Hence real GDP rose/fell?

b)In 3-4 prices stayed the same while nominal GDP fell, so real GDP rose fell?

c)In 4-5 nominal GDP stayed the same while prices fell. Hence real GDP rose/fell?

2. In 5-6 both measures rose but which rose more? If output rises faster than prices then real GDP rises which was/not the case.

3. In 6-7 both measures rose but prices barely rose, so real GDP rose/fell?

In: Finance

a)            CEMENCO Stock Return      YEAR                      

a)            CEMENCO Stock Return

     YEAR                                                                                      CEMENCO RETURN

2000                                                                                                     13.9%

2001                                                                                                    20.0%

2002                                                                                                     11.6%

2003                                                                                                      2.8%

2004                                                                                                      3.6%

2005                                                                                                    -16.3%

2006                                                                                                      47.3%

2007                                                                                                    -12.7%

Find the Average Return and Risk (as measured by Standard Deviation) of CEMENCO since 2000.

b) You have a portfolio consisting of 20 percent CEMENCO stock (β = 0.81), 40 percent of Monrovia Breweries (Club Beer) stock ((β = 1.67). How much market risk does the portfolio have? How does this compare with the general market?

c) Data from the last eight decades for S & P 500 index yield the following statistics: average excess return = 7.9%; Standard Deviation = 23.2%.

(i)To the extent that these averages approximated investor expectations for the period, what must have been the average coefficient of risk aversion? Formula: E (rm) – rf = Ā ẟ2m

(II)If the coefficient of risk aversion were actually 3.5, what risk premium would have been consistent with the market’s historical standard deviation?

d) A portfolio’s return is 12%, its standard deviation is 20% and the risk-free rate is 4%. Which of the following would make the greatest increase in the portfolio’s Sharpe ratio?

An increase of 1% in expected return?

A decrease of 1% in the risk-free rate?

A decrease of 1% in its standard deviation?

In: Accounting

Ethics and casual conversations: Jane is an accountant at Merelix, a large international firm where she...

Ethics and casual conversations:

Jane is an accountant at Merelix, a large international firm where she works on potential acquisitions. When Merelix is preparing to acquire a company, Jane is involved in filing the necessary paperwork with the Securities and Exchange Commission (SEC).

Jane has been dating Tom for two years; they are now discussing marriage. Tom works as a salesperson for a golf equipment distributor.

Over the past two years, Jane has talked with Tom about what she’s doing at work. She does not go into great detail, but does occasionally mention company names. Jane has given her phone passcode to Tom so he can answer calls for her or look things up for her when she’s the one driving. Tom has read some of her emails by using the phone passcode. He has also eavesdropped on a few phone conversations she has had when a colleague calls her from work with a question.

Unbeknownst to Jane, Tom has been sharing the information he has gotten from her with his stockbroker friend, Allen. Tom will call Allen to give him a “heads up” that Jane’s company is going to be acquiring another company soon. Allen will then place an order to buy the stock of the company and will later split the profits with Tom.

Jane has not shared any information intentionally, nor has she directly profited from it.

Requirements:

Using the IMA Statement of Ethical Professional Practice (refer to Exhibit 1-7 pg.13 of the textbook) as an ethical framework, answer the following questions:


What is (are) the ethical issue(s) in this situation?


What are Jane’s responsibilities as a management accountant?


Has Jane violated any part of the IMA Statement of Ethical Professional Practice? Support your answer.


In: Accounting

The Xio Company uses a job-costing system at its plant. The plant has a forming department...

The Xio Company uses a job-costing system at its plant. The plant has a forming department and a boxing department. Xio uses normal costing with two direct-cost categories (direct materials and direct manufacturing labor) and two manufacturing overhead cost pools (the Forming department with machine-hours as the allocation base and the Boxing department with direct manufacturing labor costs as the allocation base). The 2017 budget for the plant is as follows:



Forming

Department

Boxing Department

Manufacturing overhead costs

$21,662,500

$20,452,500

Direct manufacturing labor costs

$ 2,425,000

$7,181,000

Direct manufacturing labor-hours

45,000

193,750

Machine-hours

231,250

46,250


1. What is the budgeted manufacturing overhead rate in the Forming department?

2. What is the budgeted manufacturing overhead rate in the Boxing department?

3. During the month of March, the job-cost record for Job 232 shows the following:



Forming

Department

Boxing

Department

Direct materials used

$32,500

$12,500

Direct manufacturing labor costs

$ 2,250

$3,125

Direct manufacturing labor-hours

25

90

Machine-hours

175

25


Compute the total manufacturing overhead cost allocated to Job 232.


4. Assuming that Job 232 consisted of 400 units of product, what is the total cost per unit?


5. Amounts at the end of 2017 are as follows:



Forming

Department

Boxing Department

Manufacturing overhead incurred

$25,000,000

$19,950,000

Direct manufacturing labor costs

$ 2,575,000

$8,250,000

Machine-hours

250,000

42,500


Compute the under- or overallocated manufacturing overhead for each department and for the plant as a whole.


6. Mention 2 advantages of having two different manufacturing overhead cost pools in its job-costing system and on what basis these pools are created?

In: Accounting