In python, how do I define a function (check_domain) which takes a email (string) and domain...

In python, how do I define a function (check_domain) which takes a email (string) and domain name (string) as input. using slice, it will return true if the email address' domain same matches the input domain name. For example, when input are ”[email protected]” and ”msn.com”, the function you defined should return True. When input are ”[email protected]” and ”hotmail.com”, it should return False

In: Computer Science

java Write method that takes a 2D square array and two integer values that represent the...

java

Write method that takes a 2D square array and two integer values that represent the indices of the two columns. Method swaps the first two columns.

int[][] in = {{1,2,3}, {3,2,4}, {4,2,7}};

would output 213234247

public static void swap(int[][] in, int index1, int index2) {

In: Computer Science

A buffer solution contains 0.14 mol of ascorbic acid (HC6H7O6) and 0.84 mol of sodium ascorbate...

A buffer solution contains 0.14 mol of ascorbic acid (HC6H7O6) and 0.84 mol of sodium ascorbate (NaC6H7O6) in 2.80 L.
The Ka of ascorbic acid (HC6H7O6) is Ka = 8e-05.



(a) What is the pH of this buffer?

pH =  


(b) What is the pH of the buffer after the addition of 0.07 mol of NaOH? (assume no volume change)

pH =  


(c) What is the pH of the original buffer after the addition of 0.21 mol of HI? (assume no volume change)

pH =  

In: Chemistry

350 nm of light falls on a single slit of width 0.20 mm. What is the...

350 nm of light falls on a single slit of width 0.20 mm. What is the angular width of the central diffraction peak?

In a single slit diffraction experiment, if the width of the slit increases, what happens to the width of the central maximum on a screen?

In a double slit experiment, if the separation between the slits increases, what happens to the distance between the interference fringes?

Which of the following colors produces the widest diffraction pattern

orange

green

violet

red

In: Physics

Calculate the pH of a mixture that contains 0.25 M of HCOOH and 0.14 M of...

Calculate the pH of a mixture that contains 0.25 M of HCOOH and 0.14 M of HClO. The Ka of HCOOH is 1.8 × 10-4 and the Ka of HClO is 4.0 × 10-8.

In: Chemistry

1. At what altitude above the Earth’s surface is the acceleration due to gravity equal to...

1. At what altitude above the Earth’s surface is the acceleration due

to gravity equal to g/6?

2. Derive the escape speed for an object launched from the earth.

3. Calculate the escape speed for an object launched from

   a) the Earth.

   b) the moon.

4. •• Show that the speed of a satellite in a circular orbit a height h above the surface of the Earth is

In: Physics

47. List the four types of audit opinions that can be issued in an audit of...

47. List the four types of audit opinions that can be issued in an audit of financial statements. ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

48. Give an example of a situation where an auditor issues an unmodified opinion and adds an emphasis of matter paragraph. __________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

49. When a client changes its accounting policy, the auditor is required to issue what in relation to the change in policy under GAAP and SEC rules?   ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

50. Under the PCAOB’s new auditor report standard, an auditor is required to issue a Critical Audit Matters (CAM). What are the 4 requirements necessitating the issues of a CAM? ______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

In: Accounting

(a) A constant force < 31, -13, 36 > N acts through a displacement < 0.17,...

(a) A constant force < 31, -13, 36 > N acts through a displacement < 0.17, 0.34, -0.24 > m. How much work does this force do?
Work =           ?J

(b) An object with mass 7 kg moves from a location < 28, 28, -43 > m near the Earth's surface to location < -34, 16, 45 > m. What is the change in the potential energy of the system consisting of the object plus the Earth?
Change of potential energy =     ?J

(c) A spring whose stiffness is 900 N/m has a relaxed length of 0.59. If the length of the spring changes from 0.48 m to 0.86 m, what is the change in the potential energy of the spring?
Change of potential energy =      ?J

(d) You observe someone pulling a block of mass 33 kg across a low-friction surface. While they pull a distance of 6 m in the direction of motion, the speed of the block changes from 3 m/s to 5 m/s. Calculate the magnitude of the force exerted by the person on the block.
F =     ?N

(e) What was the change in internal energy (chemical energy plus thermal energy) of the person pulling the block?
Change in internal energy =     ?J

In: Physics

In August 2018, the U.S. Department of Agriculture (USDA) announced the decision to purchase 11 to...

In August 2018, the U.S. Department of Agriculture (USDA) announced the decision to purchase 11 to 13 million gallons of milk from dairy farmers, amounting to $50 million in total.

With the above information, which do you think was occurring in the dairy market that prompted USDA to make the purchase--a shortage or a surplus? Which person or group of people will USDA's purchase help? And finally do you think the purchase will impact the dairy market in terms of price, supply, and/or demand?

In: Economics

How do you interpret the price indices in Exhibit 3? How do economists construct them? Use...

How do you interpret the price indices in Exhibit 3? How do economists construct them? Use Excel regression to analyze the relationship between the adjusted price index (dependent variable and year (independent variable). Interpret your regression findings by discussing the coefficient of determination (R-squared), the regression coefficient, the regression equation, and the p value.   Can you use the regression equation to predict the price indices? Take into account statistical, macroeconomic, and other considerations.

EXHIBIT 3

Number

Year

Gross Income

Price Index

Adjusted Price Index

Real Income

1

1991

50,599

136.2

1.362

37150.51

2

1992

53,109

140.3

1.403

37853.88

3

1993

53,301

144.5

1.445

36886.51

4

1994

56,885

148.2

1.482

38383.94

5

1995

56,745

152.4

1.524

37234.25

6

1996

60,493

156.9

1.569

38555.13

7

1997

61,978

160.5

1.605

38615.58

8

1998

61,631

163

1.630

37810.43

9

1999

63,297

166.6

1.666

37993.40

10

2000

66,531

172.2

1.722

38635.89

11

2001

67,600

177.1

1.771

38170.53

12

2002

66,889

179.9

1.799

37181.21

13

2003

70,024

184

1.840

38056.52

14

2004

70,056

188.9

1.889

37086.29

15

2005

71,857

195.3

1.953

36793.14

In: Math

Do the following problems in Excel. Submit your Excel spreadsheet so I can see how you...

Do the following problems in Excel. Submit your Excel spreadsheet so I can see how you solved the problems (functions you used).

  1. Assume the same facts as in part 1, except on Feb. 1, 2016, due to financial problems, Barrick deposit nothing in the fund. After this date, they resume and make sufficient equal payments to meet their goal of $32 million on Aug. 1, 2018. In other words, they make the same amount of payments in the fund as part 1 from Aug. 1, 2013-Aug. 1, 2018. Determine the first set of required payments and the second set of required payments. (10 points).

  1. Barrick is comparing two gold mines.

Mine A: The mine is expected to make $3.5 billion in year 1, $4.5 billion in year 2, and $5.5 billion in years 3-6 and $4.25 billion in years 7-10. At the end of year 10, Barrick will need to spend $202 million on environmental clean-up costs and expects the residual value to be $200 billion.

Mine B: The mine is currently in operation and produces $4.1 billion per year. At the end of 10 years the residual value would be $200 billion and no environmental clean-up costs would be necessary.

Which mine should Barrick buy for $142 billion. (To simplify things, assume Net Income is earned one time per year at the end of the year.) The appropriate discount rate is 6.22% compounded quarterly. (15 points)

In: Accounting

(For C++) Assume that sentence is a variable of type  string  that has been assigned a value ....

(For C++) Assume that sentence is a variable of type  string  that has been assigned a value . Assume furthermore that this value is a string consisting of words separated by single space characters with a period at the end. For example: "This is a possible value of sentence."

Assume that there is another variable  declared , secondWord, also of type  string . Write the statements needed so that the second word of the value of sentence is assigned to secondWord. So, if the value of sentence were "Broccoli is delicious." your code would assign the value "is" to secondWord.

In: Computer Science

List the relational operators recognized by Python, and explain their meanings

List the relational operators recognized by Python, and explain their meanings

In: Computer Science

Sports Corp has 11.8 million shares of common stock outstanding, 6.8 million shares of preferred stock...

Sports Corp has 11.8 million shares of common stock outstanding, 6.8 million shares of preferred stock outstanding, and 2.8 million bonds. If the common shares are selling for $26.8 per share, the preferred shares are selling for $14.3 per share, and the bonds are selling for 96.82 percent of par, what would be the weight used for equity in the computation of Sports's WACC? 55.14% 10.12% 33.33% 11.26%

Par Value 1000

In: Finance

 How does variety lead to paralysis of action?

 How does variety lead to paralysis of action?

In: Economics