Questions
Agan Interior Design provides home and office decorating assistance to its customers. In normal operation, an...

  1. Agan Interior Design provides home and office decorating assistance to its customers. In normal operation, an average of 2.1 customers arrive each hour. One design consultant is available to answer customer questions and make product recommendations. Agan's management would like to evaluate two alternatives:

    • Use one consultant with an average service time of 8 minutes per customer.
    • Expand to two consultants, each of whom has an average service time of 10 minutes per customer.

    If the consultants are paid $16 per hour and the customer waiting time is valued at $23 per hour for waiting time prior to service, should Agan expand to the two-consultant system?

    No

    What is the total cost for each scenario? Round your answers to the nearest cent.

    The total cost for the first scenario where there is one consultant with an average service time of 8 minutes per customer is $________ . The total cost for the second scenario where there are two consultants with an average service time of 10 minutes per customer is $________ .

In: Statistics and Probability

Question 1 For the dataset: 20, 20, 10, 10, 40, 50, 20, 30, 10, 20, 50,...

Question 1

For the dataset: 20, 20, 10, 10, 40, 50, 20, 30, 10, 20, 50, 60, 20, 30, 50, 20, 30, 40, 30, 30, 30, 50, 40 calculate the max, min, mode, median and mean.(20%)

Draw a boxplot with inner and outer fence

For the data in part (i), if the value 60 was replaced by 2000, what would you call this value in the dataset? What could be the explanation for such a value? How can you through the boxplot decide if this value should be excluded from your analysis

Draw a histogram of the data with four equal sized classes and comment how close to a normal distribution the data look like being

What would be the new values for the three measures of central location with the value of 2000 instead of 60. Comment on the differences

Calculate the coefficient of variation for the population from which the data are drawn.

In: Finance

Design a program using pseudocode to produce a report showing recommended sale prices. The program should...

Design a program using pseudocode to produce a report showing recommended sale prices. The program should ask the user to enter the item number, last sale date, number of items on hand, current date, item cost and the regular selling price. The program will output the item number, last sale date, days elapsed, number of item on hand, item cost, regular selling price and sales price. If the item has not been placed on sale for the last 30 days, the discount is 10% If the item has not been placed on sale for the last 31 to 60 days, the discount is 20% If the item has not been placed on sale for the last 61 to 90 days, the discount is 40% If the item has not been placed on sale in over 90 days, the discount is 50%

how can answer this question in the easiest way and simple way possible

In: Computer Science

A new operator was recently assigned to a crew of workers who perform a certain job....

A new operator was recently assigned to a crew of workers who perform a certain job. From the records of the number of units of work completed by each worker each day last month, a sample of size five was randomly selected for each of the two experienced workers and the new worker. At the α = .05 level of significance, does the evidence provide sufficient reason to reject the claim that there is no difference in the amount of work done by the three workers?

Workers
New A B
Units of work (replicates) 8 12 10
10 12 9
9 12 10
9 11 11
8 10 10

(a) Find the test statistic. (Give your answer correct to two decimal places.)


(ii) Find the p-value. (Give your answer bounds exactly.)
_____< p <_____

In: Statistics and Probability

A random sample of 500 male and female adults was asked the amount of time each...

A random sample of 500 male and female adults was asked the amount of time each person spent watching TV last week. Their responses are shown at the right. At the 0.05 significance level, does it appear that the amount of time spent watching TV is related to the gender of the viewer?

Hours/Gender Male Female Total
Under 8 90 110 200
8 to 15 85 75 160
15 or more 75 65 140
Total 250 250 500

Which test would be used to properly analyze the data in this experiment?

χ 2 test for difference among more than two proportions

none of the above

χ 2 test for difference between two proportions

χ 2 test of independence

answer only !!

In: Statistics and Probability

Table 1: Weight Suspended in kg Luke Rey Anikin week 1 0 10 35 week 2...

Table 1: Weight Suspended in kg
Luke Rey Anikin
week 1 0 10 35
week 2 10 10 41
week

3

15 20 45
week 4 20 20 48
week 5 25 40 50
week 6 30 40 53
week 7 35 80 55
week 8 40 80 61
week 9 45 160 70
week 10 50 160 74
week 11 55 320 77
week 12 60 320 80

In an alternate reality, a temporal anomoly transports Luke Skywalker, Rey and Anikin Skywalker to Yoda's home planet as 8 year olds. Yoda's people decide to train them all in the ways of the Force. As they begin their Jedi training, their progress is tracked weekly. One of the items tracked is weight of object they are able to make hover. The results of the first 12 weeks of training are shown in Table 1.

1. Examine the data in Table 1. Without doing any calculations, of the three Jedi trainees, for which kid(s) would be Simple Linear Regression be a good tool to model their progress? Why? Explain in 50 words or less.

2. Perform a simple linear regression on all three kid's progress. Hint: time is the x variable and weight of stone suspended is the y variable. Perform a simple linear regression on all three kid's progress. Show your work in the analysis tab, putting the output in the designated spaces.

What is the regression equation for Luke? For Rey? For Anikin? Put your results in the indicated space.

What is the r2 for each kid? According to the p-value, which of the regression lines is statistically significant at an alpha of 0.05?

3. Using Luke and Anikin's regression equations, make a prediction during which week Luke will catch up with Anikin.

Table 2: Number of items Suspended
rocks kittens daggers wookies
Luke 25 15 30 3
Rey 30 5 45 2
Anikin 25 25 40 5

4.  Jedi trainee can suspend in the air after 12 weeks of training. Do an ANOVA analysis - Randomized Block Design at alpha = 0.05. Put the output in the indicated area. Is there a difference in the 3 kids overall ability to suspend objects in the air (rows)? Is there a difference in the type of object that is suspended objects in the air (columns)? Put the p-factor and conclusion in the indicated space.

5. Based upon the data in Table 2, perform a Chi-square Test Of Independence to determine if the type of suspended objects is dependent upon the Jedi trainee doing the suspending.

In: Statistics and Probability

Hello, This is an Array Search Program. Details will be provided below and please don't hesitate...

Hello,

This is an Array Search Program. Details will be provided below and please don't hesitate to contact me if you need anything.

1- Brief Introduction:

Swapping Values

Swapping consecutive values in an array:

 ...   Before   After
       |---|    |---|
arr[2] | 8 |    | 1 |
       |---|    |---|
arr[3] | 1 |    | 8 |
       |---|    |---| 
 ...   
# Define an array, print the array before the swap
arr = [4, 0, 8, 1, 7]
print(arr)   # Output: [4, 0, 8, 1, 7]

# Use 2 for the example, the SWAP is probably in a loop though
idx = 2

# SWAP
(arr[idx], arr[idx + 1]) = (arr[idx + 1], arr[idx])

# Print the array after the swap
print(arr)   # Output: [4, 0, 1, 8, 7]

The first value on the right goes into the first on the left and the second value on the right goes into the second on the left.

For more details see the class notes on Tuples.

Be careful you don't subscript the array out of bounds.

Loops that access arr[idx + 1] must not let idx equal the last valid subscript.

2- Bubble sort:

We will sort least to greatest.

Bubble sort is often looked at because it is conceptually very simple.

To bubble sort do:

  • Go through the array and if the current element is greater than the one that immediately follows it, swap the two.

This will need to be done repeatedly, an element will move down in the array quickly but can only move up one array location in a single pass.

Pseudocode:

while ...
    while ...
        if the current element is > than the one that follows it
            swap the two

Be careful you don't subscript the array out of bounds.

3- What I mentioned above was some useful information, now here is what you need to do. Copy this program into python 3 and don't change the input values.

import random

# Input data size, validate the input, exit if bad
data_size = input('Please enter the number of data values: ')
if data_size.isdigit():
    data_size = int(data_size)
else:
    print("Exiting, input is not a number:", data_size)
    exit(1)

# Input upper limit of random value, validate the input, exit if bad
rand_limit = input('Please enter the upper limit for random values: ')
if rand_limit.isdigit():
    rand_limit = int(rand_limit)
else:
    print("Exiting, input is not a number:", rand_limit)
    exit(1)

# Input whether to show the random values, or not
show_data = input('Show the random data values, "y" if yes: ')

# Create empty data array
data = []

# Generate random numbers
ctr = 0
while ctr < data_size:
    rand_num = random.randrange(0, rand_limit)
    data.append(rand_num)
    
    # Output each random number if the user specified to
    if show_data == 'y':
        print(rand_num)

    ctr = ctr + 1

###################################################################
# ==== Search loop, count occurrences of user_input ====

# ==== Count the number of "mis-sorted" values ====

# ==== Bubble Sort ====

# ==== Count the number of "mis-sorted" values ====
4- please see the instructions that will guide you for the above copied program:

 Add code to the program in steps:
  1. Search, allow the user to search the list for an element and output the number of occurrences of that element.
  2. Count how many adjacent elements are out of order.
  3. Sort the array using the bubble sort.
  4. Count, repeat the step 2 code to verify that the array is sorted.

A section on each of the above follows.

Add code to your program in the above order.

1- search:

Write code that will repeatedly:

  • Get input from the user
  • If the input is not 'q' break out of the (outer) loop
  • Inner loop: search the array for occurrences of the user input and keep a count of them.
    • Compare each array element to the user input.
    • If an array element is the same as the user input increment a counter.
  • Output a count of the number of occurrences of the number the user input.

This will require nested loops.

  • The outer loop gets user input and breaks if the user is done searching.
  • The inner loop searches the array.

Run your code and make sure it performs correctly

Testing:

To test your code:

  • Print the array before the code to be tested
  • Print the array after the code to be tested
  • Use a small array size
  • Limit the upper random value so the numbers are a single digit.
    This is for easy visual inspection. You could limit to two digits also.

Remove any extra print statements.

2- Count the Adjacent Out of Order Elements:

Write code that compares each element of the array with the element immediately after.

Keep a count of how times an element was greater than the element immediately after.

Output the count found by the loop.

Be careful you don't subscript the array out of bounds.

Run your code and make sure it performs correctly.

To skip the "show random values" just type an enter/return. An empty string will be input which will not match the 'y'.
The same for the search.

DO NOT use the list count method.

3- sort: implement the bubble sort.

# Bubble Sort outline
while ...
    while ...
        if the current element is > than the one that follows it
            swap the two

For debugging the sort put print(data) before and after your sort code.

Run your code and make sure it performs correctly.

DO NOT use the list sort built-in function or method.

Finally, the last instruction to do:       

4- Count the Adjacent Out of Order Elements

Copy the code from step 2 and put it after the sort.

There should be 0 out-of-place adjacent values.

In general copying code in this manner is BAD.

When we can define functions we will be able to avoid this.

Run your code and make sure it performs correctly.

That's it! The problem is done here.

#NOTE: if you pick a value, let me know what value you picked. Please write the answer here so I can run it without typing it all over. Thank you very much.

In: Computer Science

1.Steam is accelerated by a nozzle steadily from a low velocity to a velocity of 210...

1.Steam is accelerated by a nozzle steadily from a low velocity to a velocity of 210 m/s at a rate of 3.2 kg/s. If the temperature and pressure of the steam at the nozzle exit are 400 °C and 2 MPa, the exit area of the nozzle is:

Select one:

a. 8.4  cm2

b. 10.2 cm2

c. 23.0 cm2

d. 152 cm2

e. 24.0 cm2

2.An adiabatic heat exchanger is used to heat cold water at 15 °C entering at a rate of 5 kg/s by hot water at 90 °Centering at a rate of 4 kg/s. If the exit temperature of hot water is 50 °C, the exit temperature of cold water is

Select one:

a. 47 °C

b. 55 °C

c. 78 °C

d. 42 °C

e. 90 °C

3.Steam is compressed by an adiabatic compressor from 0.2 MPa and 150 °C to 0.8 MPa and 350 °C at a rate of 1.30 kg/s. The power input to the compressor is:

Select one:

a. 302 kW

b. 717 kW

c. 901 kW

d. 511 kW

e. 393 kW

4.Hot combustion gases (assumed to have the properties of air at room temperature) enter a gas turbine at 1 MPa and 1500 K at a rate of 0.1 kg/s, and exit at 0.2 MPa and 900 K. If heat is lost from the turbine to the surroundings at a rate of 15 kJ/s, the power output of the gas turbine is:

Select one:

a. 45 kW

b. 15 kW

c. 60 kW

d. 75 kW

e. 30 kW

5.Refrigerant -134a expands in an adiabatic turbine from 1.2 MPa and 100 °C to 0.18 MPa and 50 °C at a rate of 1.25 kg/s. The power output of the turbine is:

Select one:

a. 46.3 kW

b. 72.7 kW

c. 66.4 kW

d. 89.2 kW

e. 112.0 kW

6.Refrigerant -134a at 1.4 MPa abd 90°C is throttled to a pressure of 0.6 MPa. The temperature of the refrigerant after throttling is:

Select one:

a. 82 °C

b. 80 °C

c. 22 °C

d. 90 °C

e. 56 °C

7.Air is to be heated steadily by an 8 kW electric resistance heater as it flows through an insulated duct. If the air enters at 50°C at a rate of 2 kg/s, the exit temperature of air is:

Select one:

a. 46.0 °C

b. 54.0 °C

c. 50.0 °C

d. 55.4 °C

e. 58.0 °C

In: Mechanical Engineering

For each sentence in the following passage, decide whether it is necessary to add quotation marks...

For each sentence in the following passage, decide whether it is necessary to add quotation marks or cite a source. Explain your reasoning.

Many people have made money investing in real estate in the past couple of years. However, what goes up, comes back down (1). EZHomeBuilders, a corporation that builds luxury homes, announced that falling real estate values are causing them to scale back some projects and cancel others (2). After they announced this, shares of EZHomeBuilders fell 50 percent on the New York Stock Exchange, closing at $27.14 per share (3). Shares of other major builders fell as well (4).

My aunt, Shelly Maughn, who is a residential real estate broker, says she thinks the market will return to the way it was about a decade ago, with prices increasing more slowly (5). She also used to work in retail sales and sold furnishings and appliances for homes where she watched sales go up and down with the housing market (6). When business for home builders slowed, business slowed for us, she says (7).

I worked as an intern in Aunt Shelly’s real estate office last summer and I really enjoyed it (8). One day, I hope to become a residential real estate broker and investor even though real estate can be a challenging career (9).

Sentence # Add quotation mark or cite a source Reason Why?
1
2
3
4
5
6
7
8
9

In: Finance

06. Testing a new insect repellent. (Adapted from McClave, Benson, & Sincich, 12th edition, page 556)....

06. Testing a new insect repellent. (Adapted from McClave, Benson, & Sincich, 12th edition, page 556). A study in the Journal of the American Mosquito Control Association (Mar. 1995) investigated whether a tent sprayed with a commercially available 1% permethrin formulation would protest people, both inside and outside the tent, against biting mosquitoes. Two canvas tents — one treated with permethrin, the other untreated — were position 25 meters apart on flat, dry ground in an area infested with mosquitoes. Eight people participated in the experiment, with four randomly assigned to each tent. Of the four stationed at each tent, two were randomly assigned to stay inside the tent (at opposite corners) and two to stay outside the tent (at opposite corners). During a specified 20-minute period during the night, each person kept count of the number of mosquito bites received. The goal of the study was to determine the effect of both Tent type (treated or untreated) and the Location (inside and outside) on the mean mosquito bite count.

The data for the study are shown in the table below. The summary values for the factors are given with A = Tent type and B = Location.

Inside Outside
Treated

4

7

8

11

Untreated

6

10

24

16

A1=30, A2=56, B1=27, B2=59, AB11= 11, AB12= 19, A21=16, AB22= 40

CM=924.5

Fill this table out

Source df SS MS F
Treatments
Tent Type
Location
Tent Type*Location
Error
Total

These are the correct answers, but I don't understand how we got this.

Source df SS MS F
Treatments 3 244.5 81.5 6.8980
Tent Type 1 84.5 84.5 10.4490
Location 1 128 128 2.6122
Tent Type*Location 1 32 32
Error 4 49 12.25
Total 7 293.5

In: Statistics and Probability