Questions
Q in c++ Write a program that will find the inverse of any two dimensional array...

Q in c++ Write a program that will find the inverse of any two dimensional array without the usage of the built-in function.? plz answer in while or do while loop

In: Computer Science

Discuss the rationale behind airport drainage. Problems that might arise through poor drainage and the legislation...

Discuss the rationale behind airport drainage. Problems that might arise through poor drainage and the legislation that includes airports.

In: Operations Management

A company has been granted a block of classless addresses which starts at 198.87.24.0/23. Create the...

A company has been granted a block of classless addresses which starts at 198.87.24.0/23. Create the following 4 subnets by calculating the subnet address for each subnet including the prefix. Create a table to organise your answer. Show your working in the space provided.

a) 1 subnet with 256 addresses (1 mark correct subnet, 0.5 mark good calcs)

b) 1 subnet with 128 addresses (1 mark correct subnet, 0.5 mark good calcs)

c) 2 subnets with 64 addresses each (1 mark per correct subnet, 0.5 mark good calcs per subnet)

In: Computer Science

Write a method in C# which takes string as an argument and extracts all words of...

Write a method in C# which takes string as an argument and extracts all words of length between 4 to 5 and contains vowels in it. Method returns an array of type string containing words which satisfied above criteria. Show these words in main().

In: Computer Science

Recreational marijuana was legalized in the state of Washington in July of 2014 creating a new...

Recreational marijuana was legalized in the state of Washington in July of 2014 creating a new source of revenue for the government. July 1, 2015, the state government raised excise taxes paid by marijuana retailers on final sales leading to the following effects on prices and quantity sold:

Effects on prices and quantity of marijuana sold in Washington, June and July 2015

Date

Quantity Sold (average grams per day)

Price (per gram)

June 2015 (pre tax change)

310.0

13.18

July 2015

307.0

13.48

The above example is adapted from a recent study into the effects of an increase in taxes on the marijuana market in Washington (Hansen, Miller, & Weber, 2017). The authors can estimate the price elasticity of demand from these data points because the sudden tax change created a ceteris paribus situation, where all other supply and demand conditions were held fixed, similar to the way our models assume in the textbook.

In that spirit, interpret the excise tax increases as an increase in input costs for marijuana dispensaries holding all other supply and demand characteristics fixed.

  1. What happened to supply and the supply curve after the tax?
  2. What happened to demand and the demand curve after the tax?
  3. What can you say about the equilibrium quantity supplied and demanded?
  4. Comparing June 2015 to July 2015, using the arc formula for price elasticity of demand: What is the price elasticity of demand? If the business didn’t have to pay the sales tax to the government, what affect would the price increase have had on their revenue?

Effects on prices and quantity of marijuana sold in Washington, June and August 2015

Date

Quantity Sold (average grams per day)

Price (per gram)

June 2015 (pre tax change)

310.0

13.18

August 2015

303.1

13.48

  1. Comparing June 2015 to August 2015, using the arc formula for price elasticity of demand: What is the price elasticity of demand? If the business didn’t have to pay the sales tax to the government, what affect would the price increase have had on their revenue?
  2. How are the elasticities in question 4 & 5 different? What are the economic reasons driving this difference?
  3. All else equal, what would you expect to happen to the price elasticity of demand if there were an additional increase in taxes. Why?

  1. Choose a product or company of interest to you. Imagine your boss asks you to calculate a numerical value for the price elasticity of demand. Explain at least three different confounding factors that might make your task difficult. How might you get around those issues?

In: Economics

When faced with symptoms of counselor burnout and/or compassion fatigue, what support would you seek in...

When faced with symptoms of counselor burnout and/or compassion fatigue, what support would you seek in communicating with your clinical supervisor?

In: Psychology

Part I: Between-Groups Design In the between-groups design, researchers were interested in whether cholesterol levels would...

Part I: Between-Groups Design

In the between-groups design, researchers were interested in whether cholesterol levels would differ depending on diet. Twenty participants were randomly assigned to one of two different groups. Group A was assigned a diet rich in fruits and vegetables and with no trans fats. Group B participants were asked to follow their normal diets, which contained varying levels of trans fats depending on the individual. After one month, blood samples were drawn and the following levels of cholesterol were obtained:

Participant

Blood Cholesterol

Diet

1

129

Healthy

2

98

Healthy

3

150

Healthy

4

75

Healthy

5

135

Healthy

6

175

Healthy

7

115

Healthy

8

103

Healthy

9

156

Healthy

10

143

Healthy

11

239

Normal

12

500

Normal

13

350

Normal

14

468

Normal

15

198

Normal

16

213

Normal

17

225

Normal

18

175

Normal

19

560

Normal

20

289

Normal

In 2 to 3 sentences in a Microsoft Word document, answer the following questions:

  • What is the independent variable in this study?
  • What are the levels of that independent variable?
  • What is the dependent variable?

Part II: Within-Subjects Design

In the within-subjects design, researchers were interested in whether participants could lower their cholesterol levels by changing from a diet higher in trans fats to one with no trans fats. Ten research participants were selected. A baseline measure of cholesterol was taken from each. They were then put on a diet rich in fruits and vegetables and devoid of trans fats for one month. At the end of that month, blood cholesterol was again measured and the following results were obtained:

Participant

Blood Cholesterol

Diet

1

129

Baseline

1

98

Healthy

2

150

Baseline

2

75

Healthy

3

175

Baseline

3

135

Healthy

4

115

Baseline

4

103

Healthy

5

156

Baseline

5

143

Healthy

6

500

Baseline

6

450

Healthy

7

468

Baseline

7

350

Healthy

8

198

Baseline

8

213

Healthy

9

225

Baseline

9

175

Healthy

10

560

Baseline

10

481

Healthy


In 2 to 3 sentences in a Microsoft Word document, answer the following questions:

  • What is the independent variable in this study?
  • What are the levels of that independent variable?
  • What is the dependent variable?

In: Math

6. It's presidential primary season and canvassers are out talking to voters. In a city that's...

6. It's presidential primary season and canvassers are out talking to voters. In a city that's known to have 20% registered republicans, 5 canvassers each go to 50 randomly selected homes to ask about voting preferences. Amazingly, every home has someone willing to talk. Which of the following is the most plausible sequence of republican voters met by these canvassers?

a. 5%, 80%, 65%, 8%, 70%

b. they're all equally plausible

c. 15%, 25%, 22%, 28%, 20%

d. 20%, 20%, 20%, 20%, 20%

7.

The average birthweight of babies in Oregon is 3500 grams with a standard deviation of 500 grams. You collected 100 samples of 100 babies and calculated the mean weight of each of the samples. You then graph the means that you've calculated. What does your distribution of sample means look like?

a. it's pretty normal

b. it has no particular shape

c. it's skewed either left or right

8.

Still thinking about your distribution of the samples of baby weights, what would the standard deviation of your 100 sample means be?

a. more than 500 grams

b. not enough information to know

c, less than 500 grams

d. same as the population, 500 grams

In: Math

Write 2/3 page and explain eight ways to gain a competitive advantage and provide an example...

Write 2/3 page and explain eight ways to gain a competitive advantage and provide an example for each. You can write a scenario for a business of your choice to answer this assignment.

In: Operations Management

If I have a data warehouse for drugstores, what are the problems that this warehouse solves,...

If I have a data warehouse for drugstores, what are the problems that this warehouse solves, what are its requirements and what is the process run for it?

In: Computer Science

Lab 7: 2D Arrays Project Goals The goals of this project are to: 1.       Get students...

Lab 7: 2D Arrays

Project Goals

The goals of this project are to:

1.       Get students familiar with 2D arrays

2.       Continue loop practice

Important Notes:

1.        Formatting: Make sure that you follow the precise recommendations for the output content and formatting: for example, do not change the text of the problem from “Enter the number of rows in your array: ” to “Enter the number of rows: ”. Your assignment will be auto-graded and any change in formatting will result in a loss in the grade.

2.       Comments: Header comments are required on all files and recommended for the rest of the program. Points will be deducted if no header comments are included.

Problem 1

Save your program as squaring.c

It’s better to be odd, so let’s square those values. Write a program which gets values into an array and then squares the odd values. The program should prompt the user to enter the number of rows -1[1] and columns they would like in an array. Then it should prompt the user to enter values to fill that array. It should iterate over all the values in the array and square any which are odd. Display those values back to the user.

The program should function as follows (items underlined are to be entered by the user):

Enter the number of rows in your 2D array: 2

Enter the number of columns in your 2D array: 2

Enter a value to save: 1

Enter a value to save: 2

Enter a value to save: 3

Enter a value to save: 4

1 2

9 4

Run your program again, testing it with different values.

Notes:

  • You know the range and step, which loop is best?
  • Know which variables to initialize!

[1]I think this should be ...rows... and not ...rows-1...

In: Computer Science

How many people died, wounded, and the level of destruction for the Indian Ocean Tsunami?

How many people died, wounded, and the level of destruction for the Indian Ocean Tsunami?

In: Psychology

1. Implement the faster algorithm for integer multiplication in C++ as a function, called “multiply”, that...

1. Implement the faster algorithm for integer multiplication in C++ as a function, called “multiply”, that takes 2 unsigned integers and returns their multiplication as an unsigned integer.

2. Test your code in main.

Hints: Represent integers as strings.

Write a utility function that pads integers with zeros, this will be useful If the 2 integers differ in length In calculating ??10^? and (??+??) 10^(?/2)

In: Computer Science

The Ste. Marie Division of Pacific Media Corporation just started operations. It purchased depreciable assets costing...

The Ste. Marie Division of Pacific Media Corporation just started operations. It purchased depreciable assets costing $35 million and having a four-year expected life, after which the assets can be salvaged for $7 million. In addition, the division has $35 million in assets that are not depreciable. After four years, the division will have $35 million available from these nondepreciable assets. This means that the division has invested $70 million in assets with a salvage value of $42 million. Annual depreciation is $7 million. Annual operating cash flows are $27.5 million. In computing ROI, this division uses end-of-year asset values in the denominator. Depreciation is computed on a straight-line basis, recognizing the salvage values noted. Ignore taxes. Assume that all cash flows increase 10 percent at the end of each year. This has the following effect on the assets’ replacement cost and annual cash flows.

End of Year Replacement Cost Annual Cash Flow
1 $ 70,000,000 × 1.1 = $ 77,000,000 $ 27,500,000 × 1.1 = $ 30,250,000
2 $ 77,000,000 × 1.1 = $ 84,700,000 $ 30,250,000 × 1.1 = $ 33,275,000
3 Etc. Etc.
4

Depreciation is as follows.

Year For the Year "Accumulated"
1 $ 7,700,000 $ 7,700,000 (= 10% × $77,000,000)
2 8,470,000 16,940,000 (= 20% × 84,700,000)
3 9,317,000 27,951,000
4 10,248,700 40,994,800

Note that "accumulated" depreciation is 10 percent of the gross book value of depreciable assets after one year, 20 percent after two years, and so forth.

Required:

a. & b. Compute ROI using historical cost, net book value and gross book value.

c. & d. Compute ROI using current cost, net book value and gross book value.

A&B
Historical Cost ROI
Net Book Value Gross Book Value
Year 1    % %
Year 2 % %
Year 3 % %
Year 4 % %

Compute ROI using current cost, net book value and gross book value. (Enter your answers as a percentage rounded to 1 decimal place (i.e., 32.1).)

C&D
Current Cost ROI
Net Book Value Gross Book Value
Year 1    % %
Year 2 % %
Year 3 % %
Year 4 % %

In: Accounting

Please use Java eclipse Find pair in an array with given sum Given an array of...

Please use Java eclipse

Find pair in an array with given sum

Given an array of integers A and an integer S, determines whether there exist two elements in the array whose sum is exactly equal to S or not.

Display 1 a pair is found in an array with matching sum S else 0.

Input
    6
    5
    1 -2 3 8 7

    Where,

  • First line represents integer S.
  • Second line represents the size of an array.
  • Third line represents array elements separated by single space.

Output
    1

For the given array, A[1] + A[3] = -2 + 8 = 6 which is equal to the given number S=6

In: Computer Science