Pig Latin is a game of alterations played on words.

Please help with the following programming, using python 3 :

Pig Latin is a game of alterations played on words. To translate an English word into Pig Latin, the initial consonant sound is transposed to the end of the word and an “ay” is affixed. Specifically, there are two rules:

  • If a word begins with a vowel, append “yay” to the end of the word.
  • If a word begins with a consonant, remove all the consonants from the beginning up to the first vowel and append them to the end of the word. Finally, append “ay” to the end of the word.

For example,

  • dog => ogday
  • scratch => atchscray
  • is => isyay
  • apple => appleyay

Design a function that takes one argument, a string, and returns a string with each word in the argument translated into Pig Latin.

Hints:

  • The split method, when called with no additional arguments, breaks a string into words, and returns the words in a list.
  • Slicing is your friend: it can pick off the first character for checking, and you can slice off pieces of a string and use string concatenation (the + operator) to make a new word.
  • Making a string of vowels allows use of the in operator: vowels=”aeiou” (how do you make this work with both upper and lower case?)
  • Test your function with a diverse range of examples. Your tests should cover all cases (for example, test words beginning with a vowel and words beginning with a consonant). Pay particular attention to edge cases (for example, what happens if the word consists of just one vowel, like “a”? what happens if the string is empty?).

Factors Determining if you have a true cause and effect relationship are:

Factors Determining if you have a true cause and effect relationship are:

  1. health disparities such as race and income
  2. the time sequence of events and whether the hypothesized relationship is consistent with accepted scientific theory
  3. the community social environment and the community physical environment
  4. Qualitative and Quantitative data sources

Hello. Did I do these activities correctly?

Hello. Did I do these activities correctly? If not, can you please help me correct them. Thank you!

 2.) Pronombres relativos

**Completa las oraciones con la respuesta apropiada*

  1. El tigre es un animal (que, cuyo, quien) caza con mucha habilidad. *I answered cuyo
  2. Los García, (el cual, quien, a quienes) conocí el mes pasado, salen para Colombia. *quien

3. Esos árboles,(quienes, los cuales, cuyo) nombre no sé, son bellísimos. *los cuales

4. ¿Es éste el libro en (el que, cuyo, quien) viste la foto del profesor? *quien

5. La semana próxima es la entrevista para (quien, al cual, que) Marta se prepara todos los días. *que

6. Mira, éstos son los amigos de (los que, al cual, cuyos) te hablé el otro día. *al que

Researchers at Yale were the first to harness the reactivity of mustard gas by replacing the bivalent sulfur atom with a trivalent nitrogen atom.

Researchers at Yale were the first to harness the reactivity of mustard gas by replacing the bivalent sulfur atom with a trivalent nitrogen atom. Discuss how the reactivity of the resulting nitrogen mustards can be controlled to give a perfectly-tuned antineoplastic agent. You may draw and annotate structures to help explain your answer

Hi , can someone tell me how the graph might look like based on the question below . Thank you.

Hi , can someone tell me how the graph might look like based on the question below . Thank you.

“Given a weighted graph G = (V, E) and an integer d, does there exist a pair of subtrees T1 = (V1, E1) and T2 = (V2, E2) of G, such that V2 = V V1 (i.e. each vertex of G is in either T1 or T2), and the weight of the two trees sum to at most d”

Write the stems vertically in increasing order from top to bottom, and draw a vertical line to the right of the stems. Go through the data, writing…

Write the stems vertically in increasing order from top to bottom, and draw a vertical line to the right of the stems. Go through the data, writing each leaf to the right of its stem. Write the stems again, and rearrange the leaves in increasing order out from each stem. We are interested in the distribution of the data? What would be appropriate to display this?

You are considering the risk-return profile of two mutual funds for investment. The relatively risky fund promises an expected return of 12.9% with a…

You are considering the risk-return profile of two mutual funds for investment. The relatively risky fund promises an expected return of 12.9% with a standard deviation of 16.6%. The relatively less risky fund promises an expected return and standard deviation of 3.4% and 5.3%, respectively. Assume that the returns are approximately normally distributed. 

a-1.Calculate the probability of earning a negative return for each fund. (Round final answer to 4 decimal places.)

      Probability  Riskier fund       Less risky fund     

a-2.Which mutual fund will you pick if your objective is to minimize the probability of earning a negative return?

   Less risky fundRiskier fund

b-1.Calculate the probability of earning a return above 10% for each fund. (Round final answer to 4 decimal places.)

      Probability  Riskier fund       Less risky fund     

b-2.Which mutual fund will you pick if your objective is to maximize the probability of earning a return above 10%?

   Less risky fund

Question A Why is it essential that local governments take responsibility to prepare for acts of terrorism?

Question A

Why is it essential that local governments take responsibility to prepare for acts of terrorism?

Question B

How do Community Emergency Response Teams help increase preparedness beyond normal levels?

Accounting 321, Cost Accounting Quiz 2 Part B Student Name: Either type directly in this file or you can handwrite very neatly if you prefer on the…

Accounting 321, Cost Accounting                        Quiz 2 Part B

Student Name:

Either type directly in this file or you can handwrite very neatly if you prefer on the paper and post a Word document. If you would like, you can also use an Excel file and post that as well, but in any case you must show all your work where appropriate to get full credit. Please save your file with your first and last name at the beginning of the file name. When completed, please post in the Assignment tab. Please highlight or bold your final answer.

 (10 points) For 2010, Jake’s Dog Supply Manufacturing uses machine-hours as the only overhead cost-allocation base. The accounting records contain the following information:

                                                                     Estimated          Actual

            Manufacturing overhead costs         $200,000         $240,000

            Machine-hours                                     40,000             50,000

Using job costing, the 2010 budgeted manufacturing overhead rate is:

Using normal costing, the amount of manufacturing overhead costs allocated to jobs during 2010 is:

(15 points) The Morgan Models company manufacturers replica plastic airplane and motorized vehicle models. During October, the firm’s Assembly Department started production of 60,000 models. During the month, the firm completed 66,000 models, and transferred them to the Finishing Department. The firm ended the month with 22,000 models in ending inventory. There were 28,000 models in beginning inventory. All direct materials costs are added at the beginning of the production cycle and conversion costs are added uniformly throughout the production process. The FIFO method of process costing is used by Morgan. Beginning work in process was 25% complete as to conversion costs, while ending work in process was 50% complete as to conversion costs.

Beginning inventory:

      Direct materials costs      $39,200

      Conversion costs             $30,800

Manufacturing costs added during the accounting period:

      Direct materials costs      $90,000

      Conversion costs           $280,000

How many of the units that were started during October were completed during October?

What were the equivalent units for conversion costs during October?

What is the amount of direct materials cost assigned to ending work-in-process inventory at the end of October?

(25 points) The following information pertains to the January operating budget for Ken’s Corporation.

      ∙     Budgeted sales for January $200,000 and February $100,000.

      ∙     Collections for sales are 60% in the month of sale and 40% the next month.

      ∙     Gross margin is 30% of sales.

      ∙     Administrative costs are $10,000 each month.

      ∙     Beginning accounts receivable is $20,000.

      ∙     Beginning inventory is $14,000.

      ∙     Beginning accounts payable is $65,000. (All from inventory purchases.)

      ∙     Purchases are paid in full the following month.

      ∙     Desired ending inventory is 20% of next month’s cost of goods sold (COGS).

For January, budgeted cash collections are ________.

At the end of January, budgeted accounts receivable is ________.

For January, budgeted cost of goods sold is ________.

For January, budgeted net income is ________.

At the end of January, budgeted ending inventory is ________.

A Six Sigma team brainstormed for quot;What’squot; and six quot;How’s using the House of Quality. The relative importance of the six columns…

1.    A Six Sigma team brainstormed for “What’s” and six “How’s using the House of Quality. The relative importance of the six columns follows: Column A 14%, Column B 4%, Column C 41%, Column D 29%, Column E 10%, Column F 2%. What is the priority scheme for working these projects?

a.    Work on column C, then E, then A

b.    Work on column F, then B, then A

c.    Work on column C, then D, then F

d.    None of the above. Teams don’t determine the What’s. Customers do.

2.    Which of the following are examples of financial measures that can be impacted by Six Sigma improvements?

a.    Cost avoidance

b.    Soft savings

c.    Hard savings

d.    Satisfaction

                                      i.     B, C and D only

                                    ii.     B and C only

                                   iii.     A and C only

                                   iv.     A, B and C only

3.    With Cost of Quality, which of the following categories is not generally tracked?

a.    Prevention Costs

b.    Appraisal Costs

c.    Labor Costs

d.    External Failures

4.    Which of the following statements is true regarding the Taguchi loss function?

a.    L is for financial loss

b.    M is for measurement system

c.    K is a calculated value between -1.0 and + 1.0

d.    X is where the process should be performing

5.    Which of the following describes the appropriate measurement system characteristic when the same employee, taking multiple measurements on the same item, gets the same result every time?

a.    Repeatability

b.    Accuracy

c.    Reproducibility

d.    Resolution

6.    If we change the confidence level from 99% to 95%, we expect the size of the rejection region to 

a.    Shrink

b.    Expand

c.    Provide MORE confidence

d.    None of the above

7.    Which of the following are valid risk assessment tools in Six Sigma projects?

a.    Design reviews by specialists on teams

b.    Fault-tree analysis

c.    Multi-vari study

d.    Safety analysis

e.    FMEA process

                                      i.     A, B, C and D only

                                    ii.     A, C, D and E only

                                   iii.     A, B, D and E only

                                   iv.     A, B, C, D and E

8.    Which of the following examples is qualitative customer information?

a.    Customer attrition rate

b.    Satisfiers/Dissatisfiers

c.    Market share growth rate 

d.    Win/loss ratio

e.    Reasons for losing customers

f.     Customer preferences

                                      i.     A, B, D and F only

                                    ii.     B, E and F only

                                   iii.     B, E, and F only

                                   iv.     All of the above

9.    Lean efforts should pay attention to areas that are:

a.    Producing sooner that is needed

b.    Producing in greater quantities than is needed

c.    Producing faster than is needed

d.    All of the above

10.  DMAIC is a linear model in which one the team progresses to the Analyze Phase, they are to always more on to the Improve Phase.

a.    True

b.    False