Questions
Implement function get_contact(contacts, name) that returns a string. The contacts and the name parameter are both...

Implement function get_contact(contacts, name) that returns a string. The contacts and the name parameter are both type string. This function checks for the name string in the contacts string and returns that person’s contact information. If the person is not found, the function returns, “name not in contact”. Assume input is always valid. Assume the same name is not repeated in contacts.

[You may use split(), range(), len() ONLY and no other built-in function or method]


Examples:

              contacts = “Frank 703-222-2222 Sue 703-111-1111 Jane 703-333-3333”

              name = “Sue”

              print(get_contact(contacts, name))

              returns:

              703-111-1111

              name = “Sam”

print(get_contact(contacts, name))

              returns:

              name not in contact

In: Computer Science

Implement function get_contact(contacts, name) that returns a string. The contacts and the name parameter are both...

Implement function get_contact(contacts, name) that returns a string. The contacts and the name parameter are both type string. This function checks for the name string in the contacts string and returns that person’s contact information. If the person is not found, the function returns, “name not in contact”. Assume input is always valid. Assume the same name is not repeated in contacts.

[You may use split(), range(), len() ONLY and no other built-in function or method]


Examples:

              contacts = “Frank 703-222-2222 Sue 703-111-1111 Jane 703-333-3333”

              name = “Sue”

              print(get_contact(contacts, name))

              returns:

              703-111-1111

              name = “Sam”

print(get_contact(contacts, name))

              returns:

              name not in contact

In: Computer Science

An investor has researched financial information for Fried Chicken Corporation over the past three years. He...

An investor has researched financial information for Fried Chicken Corporation over the past three years. He has provided you a report with the returns for the company. YEAR RETURN 2016 4.52% 2017 6.70% 2018 14.23% The investor put $514.00 into Fried Chicken at the beginning of 2016. What is the standard deviation for the returns? Based on the investment in Fried Chicken Corporation at the beginning of 2016, what would your investment be worth now?

In: Finance

Based on the Covered Interest Parity (CIP), what should be the 90-day forward rate, F£/US$, today...

Based on the Covered Interest Parity (CIP), what should be the 90-day forward rate, F£/US$, today on 6 April 2016 (the contract matures on 5 July 2016)? Use the exact equation of the CIP.??

2016-04-06

U.S. Dollars to One British Pound: 1.4162

3-Month Effective Interest Rate for U.S. Dollar: 0.15765

3-Month Effective Interest Rate for British Pound: 0.14703

In: Economics

During 2016, Rao Co. introduced a new line of machines that carry a one-year assurance warranty...

During 2016, Rao Co. introduced a new line of machines that carry a one-year assurance warranty against manufacturer’s defects. Based on industry experience, warranty costs are estimated at 2% of sales in the year of sale, 3% in the year after sale. Rao spent $39,000 of warranty expenses in 2016.

Sales $ 1,600,000, Actual Warranty Expenditures $ 39,000 Please provide 2016 journal entries associated with the warranty and sale.

In: Accounting

On January 1, 2016, the Brunswick Hat Company adopted the dollar-value LIFO retail method. The following...

On January 1, 2016, the Brunswick Hat Company adopted the dollar-value LIFO retail method. The following data are available for 2016: Cost Retail Beginning inventory $ 81,000 $ 150,000 Net purchases 121,500 278,000 Net markups 8,000 Net markdowns 16,000 Net sales 228,000 Retail price index, 12/31/16 1.20 Required: Calculate the estimated ending inventory and cost of goods sold for 2016.

In: Accounting

Briefly explain the difference between Consumer Price Index and the GDP Deflator. Describe in your own...

Briefly explain the difference between Consumer Price Index and the GDP Deflator. Describe in your own words; you can include an exposition of the formula of each, if you wish.

Suppose the CPI in 2016, 2017, 2018 and 2019 are 100 and 110, 115 and 130 respectively. What is the inflation rate between 2016 and 2017, and between 2017 and 2018? How would you interpret the change in inflation rates between 2016 and 2018?

In: Economics

An experiment was set up with the circuit diagram shown. Assume R1 = 12 Ω, R2...

An experiment was set up with the circuit diagram shown. Assume

R1 = 12 Ω,

R2 = R3 = 6 Ω,

r = 0 Ω

and

E = 6 V.

(a)

One of the steps to examine the set-up is to test points with the same potential. Which of the following points can be tested?

points b, c, and dpoints d, e, and f    points f, h, and jpoints a, h, and i

(b)

At which three points should the currents be measured so that Kirchhoff's junction rule can be directly confirmed?

points b, c, and dpoints d, e, and f    points f, h, and jpoints a, h, and i

(c)

If the current in the branch with the voltage source is upward and currents in the other two branches are downward, i.e.

Ia = Ii + Ic,

identify which of the following can be true. Select two answers.

Ie = IhIi

Id = IhIj

Ic = IjIa

Ii = IjIf

(d)

The measurements reveal that the current through R1 is 0.50 A and R3 is 0.60 A. Based on your knowledge of Kirchhoff's laws, confirm which of the following statements are true.

Both the measured currents are correct.The measured current for R1 is correct but for R3 is incorrect.    Both the measured currents are incorrect.The measured current for R3 is correct but for R1 is incorrect.

(e)

The graph shown in the following figure is the energy dissipated at R1 as a function of time.

Which of the following shows the graph for energy dissipated at R2 as a function of time?

In: Physics

For the following situations. Please indicate a statistical distribution that would be appropriate to model the...

For the following situations. Please indicate a statistical distribution that would be appropriate to model the situation. Additionally, if there is any information about the parameter values, include those as well.
i) A pesticide is being tested on groups of plants. 10 experiments are completed. Within each experiment a plant is sprayed with the pesticide. After one week, the plant is assessed and categorized as either dead or alive. Pesticides with similar chemicals have a 95% survival rate.
ii) An athletic trainer is investigating the average mile time for high school cross country runners. He looks at the data and observes that it is approximately bell shaped with an average of 5 minutes and 45 seconds.
iii) An economist is looking at US income data. He would like to use the Gaussian distribution, but notices the data is heavily skewed.
iv) A mental health practitioner is examining the amount of time (in months) that patients stick around in rehabilitation facilities. They will treat the times as continuous. Literature says that the average survival time is 0.75 months.
v) An engineer is looking to model the measurement error of a new instrument. The error looks bell shaped and approximately symmetric around 0.
vi) A popular game show, ”Deal or No Deal,” has 26 cases (numbered 1 to 26) that contain various amounts from $1 to $1,000,000. The game starts by the contestant picking one of the cases to hold onto. We are interested in a contestants initial selection.

In: Statistics and Probability

suppose that you repeated PART B of the experiment using 1M HNO3(aq). How would you expect...

suppose that you repeated PART B of the experiment using 1M HNO3(aq). How would you expect the △Hneut to compare with that for the neutralization of HCL? explain.

H = Hfinal - Hinitial = qp = E + P V

PART B - Enthalpy of Neutralization of a Stong Acid

The heat of neutralization of a strong acid, hydrochloric acid, will be determined. The strong base is sodium hydroxide of a concentration slightly less than that of the acid.

Procedure

1.In a clean dry graduated cylinder, measure out exactly 50 mL of the NaOH solution and transfer completely to the clean dry calorimeter. Record this temperature and the concentration of the NaOH solution.

2.Meanwhile, rinse out the graduated cylinder with tap water, distilled water and a few mL of the HCl solution. Measure out 50 mL of the HCl solution. Allow it to stand until its temperature is constant and equal to room temperature. Record this temperature and the concentration of the acid solution.

3.Add the acid as quickly as possible to the calorimeter, counting the time from the addition of the first drop of acid. Note the time and temperature after the addition of the last drop, and at 15 sec intervals from then on for 4 minutes. Stir the contents of the calorimeter constantly.

4.Test the contents of the calorimeter with litmus paper. The solution should be slightly acidic(pH<7.0), indicating that the known amount of base was completely consumed in the neutralization

In: Chemistry