Questions
Use c# Create a program called ResortPrices that prompts the user to enter the number of...

Use c#

Create a program called ResortPrices that prompts the user to enter the
number of days for a resort stay. Then display the price per night and the total
price. Nightly rates are R 500.00 for one or two nights, R 650.00 for three or
four nights, R 850.00 for five, six or seven nights, and R 1500.00 for eight
nights or more.

In: Computer Science

The average number of times Americans dine out in a week fell from 4.0 in 2008...

The average number of times Americans dine out in a week fell from 4.0 in 2008 to 3.8 in 2012. The number of times a sample of 20 families dined out last year provides the following data.

Table 4

60

10

50

30

70

3

50

30

10

30

40

10

20

40

10

40

50

60

30

500

  1. Compute the mean and median.
  2. Compute the first and third quartiles.
  3. Compute the range and interquartile range.
  4. Compute the variance and standard deviation.
  5. The skewness measure for these data is 0.34. Comment on the shape of this distribution. is it the shape you would expect? Why or why not?
  6. Do the data contain outliers?

In: Statistics and Probability

The average number of times Americans dine out in a week fell from 4.0 in 2008...

The average number of times Americans dine out in a week fell from 4.0 in 2008 to 3.8 in 2012. The number of times a sample of 20 families dined out last year provides the following data.

Table 4

60

10

50

30

70

3

50

30

10

30

40

10

20

40

10

40

50

60

30

500

Compute the mean and median.

  1. Compute the first and third quartiles.
  2. Compute the range and interquartile range.
  3. Compute the variance and standard deviation.
  4. The skewness measure for these data is 0.34. Comment on the shape of this distribution. is it the shape you would expect? Why or why not?
  5. Do the data contain outliers?

In: Statistics and Probability

Pease answer the questions below: If n = 15, ¯xx¯ = 50, and s = 15,...

Pease answer the questions below:

  1. If n = 15, ¯xx¯ = 50, and s = 15, construct a confidence interval at a 95% confidence level. Assume the data came from a normally distributed population. Give your answers to three decimal places.

    < μ <
  1. 55 randomly selected students were asked the number of pairs of shoes they have. Let X represent the number of pairs of shoes. The results are as follows:

# of Pairs of Shoes

4

5

6

7

8

9

10

Frequency

7

8

4

11

8

9

8



Round all your answers to 4 decimal places where possible.

The mean is: Incorrect

The median is: Correct

The sample standard deviation is: Incorrect

The first quartile is: Correct

The third quartile is: Correct

What percent of the respondents have at least 6 pairs of Shoes? Incorrect%

35% of all respondents have fewer than how many pairs of Shoes?

  1. Based on historical data, your manager believes that 25% of the company's orders come from first-time customers. A random sample of 114 orders will be used to estimate the proportion of first time-customers. What is the probability that the sample proportion is less than 0.29?

    Note: You should carefully round any z-values you calculate to 4 decimal places to match wamap's approach and calculations.

    Answer =  (Enter your answer as a number accurate to 4 decimal places.)



    In: Statistics and Probability

    5.  An ordinaryannuity is       A)        an infinte series of equal payments       B)        an infini

    5.  An ordinaryannuity is

          A)        an infinte series of equal payments

          B)        an infinite series of unequal payments

    C)        a finite series of equal payments where the first cash flow comes at the beginning of the first year.

    D)        a finite series of equal payments where the first cash flow comes at the end of the first year.

    6. How much will you have in seven years if you invest $150 today if you can earn 3%?

    1. $184.48
    2. $154.50
    3. $ 153
    4. $ 121.96

    7. If the cash flows for a project change signs more than once, then the IRR criterion

    1. Will give you a correct decision.
    2. Will not give you the same decision as Profitability Index.
    3. Cannot be used as the criteria does not make sense in these circumstances.
    4. Will always give you the same decision as NPV.

    8. What is the Payback Period for the following cash flows (CFFA): today, -$7,200; end of year one, + $3,000; end of year two, + $4,200; end of year three, + $200; and end of year four, $1,000.

          A)  3 years

          B)  2 years      

          C)   2.34 years

          D)  2.9 years  

          E)  3.2 years

    In: Finance

    Suppose that 8 cards, of which four are red, two are green and two are blue,...

    Suppose that 8 cards, of which four are red, two are green and two are blue, are placed at random in 8 envelopes . Two envelops are selected at random,

    1. find the probability that the envelops have red cards?
    2. find the probability that they have cards of the same colors?

    In: Statistics and Probability

    In the past, Dumont Clothing Store had 72% charge purchases and 28% cash purchases. A representative...

    In the past, Dumont Clothing Store had 72% charge purchases and 28% cash purchases. A representative sample of 200 recent purchases shows that 160 were charge purchases. Does this suggest a statistically significant change in the paying practices of Dumont customers?

    1-Hypothesis test for one population mean (unknown population standard deviation)

    2-Confidence interval estimate for one population mean (unknown population standard deviation)

    3-Hypothesis test for population mean from paired differences

    4-Confidence interval estimate for population mean from paired differences

    5-Hypothesis test for difference in population means from two independent samples

    6-Confidence interval estimate for difference in population means from two independent samples

    7-Hypothesis test for one population proportion

    8-Confidence interval estimate for one population proportion

    9-Hypothesis test for difference between two population proportions

    10-Confidence interval estimate for difference between two population proportions

    In: Statistics and Probability

    The n th Triangle Problem Write a code for finding the n th triangle number of...

    The n th Triangle Problem Write a code for finding the n th triangle number of triangle sequences: 1, 3, 6, 10, ..., n. That is, your code should accept an integer number, which indicates the triangle levels, and returns how many dots we need to form a triangle with respect to the given level. For example, consider the Fig 1. For n = 3 (can be also written as T3), your code should returns 6.

    Provide a single program consists of the following:

    • Write a function called TriangularRecursive for the recursive version that takes number of level as an int argument.

    Hints:

    1) Identify the base case for the TriangularRecursive function.

    2) Let the TriangularRecursive function call itself, with proper arguments.

    • Write a function called TriangularIterative for the non-recursive (iterative) version that takes number of level as an int argument.

    • Write a main function that calls the two functions inside. You should have at least a couple of test cases included in the main function that shows the output for both functions.

    After implementing the recursive and non-recursive functions, you are supposed to perform two additional tasks. The first task is to analyze both approaches as follows:

    • Establish the recurrence relations for the recursive approach.

    • Solve the recurrence and provide the order growth.

    • Establish the sum expression for the non-recursive approach.

    • Solve the sum and provide the order growth.

    The second task is to plot the running time of both approaches for different input sizes (n). To do that, consider ten input size (n) values: 10, 50, 100, 200, 400, 800, 2000, 4000, 8000, 10000. For better precision, run each value ten times and take the average of all ten runs for each case.

    In: Computer Science

    Your statistics professor is involved in an educational outreach program designed to increase women’s participation in...

    1. Your statistics professor is involved in an educational outreach program designed to increase women’s participation in science, technology, engineering, and mathematics (STEM). The two-week educational program involved fieldtrips and activities designed to increase participants’ knowledge toward STEM.

    On the first day of the education program, a pre-test is administered to all students. On the final day of the educational program, an identical post-test is administered. After the educational program ends, your professor asks you to help her analyze the results. Your professor predicts that pre- and post-test scores will differ significantly and wants to use an alpha level of 0.01. (50 Points)

    Pre-Test

    Post-Test

    34

    40

    67

    70

    23

    34

    76

    75

    12

    23

    8

    10

    45

    56

    68

    76

    78

    93

    13

    17

    1. Are you running a one-tailed or two-tailed test?
    1. Write your alternative and null hypotheses.
    1. Which statistical analysis will you use to run your test (e.g. one-sampled t-test, an independent-samples t-test, a paired t-test, or chi-square test)?
    1. Run your statistical analysis using SPSS. Write your conclusion.

    (Remember, if you are running a one-tailed test, your alpha value is located in one-tail, meaning your p-value needs to be less than 0.01 to reject the null hypothesis.

    If you are running a two-tailed test, your alpha value is divided in half, meaning your p-value needs to be less than 0.005 to reject the null hypothesis)

    In: Statistics and Probability

    Above are two readings of systolic and diastolic blood pressures taken from 15 individuals.

    male

    1st Systolic

    1st Diastolic

    2nd Systolic

    2nd Diastolic

    1

    132

    74

    132

    82

    2

    108

    70

    108

    74

    3

    124

    78

    134

    78

    4

    116

    42

    116

    48

    5

    118

    76

    116

    70

    6

    128

    80

    128

    80

    7

    132

    90

    130

    92

    8

    106

    64

    110

    64

    female

    1

    168

    46

    156

    52

    2

    198

    82

    192

    84

    3

    110

    74

    110

    76

    4

    170

    94

    168

    100

    5

    142

    58

    140

    52

    6

    168

    52

    172

    54

    7

    90

    32

    82

    0

    Above are two readings of systolic and diastolic blood pressures taken from 15 individuals. Test the hypothesis that there is a significant difference between the first and second readings for systolic blood pressure (both sexes combined), with an α of 0.05. What test would be most appropriate and why? Is the result significant? State your conclusions.

    In: Statistics and Probability