Questions
The following observations were made for a series of five oil drops in an experiment similar to Millikan’s (see Figure

The following observations were made for a series of five oil drops in an experiment similar to Millikan’s (see Figure 2-8). Drop 1 carried a charge of   drops 2 and 3 each carried   the charge of drop 1; drop 4 carried   the charge of drop 1; drop 5 had a charge four times that of drop 1. Are these data consistent with the value of the electronic charge given in the text? Could Millikan have inferred the charge on the electron from this particular series of data? Explain.

In: Chemistry

Tommy is examining some risk-free Singapore government securities. The yields to maturity on three government bonds...

Tommy is examining some risk-free Singapore government securities. The yields to maturity on three government bonds with maturities of 1, 2 and 3 years are respectively 3%, 4% and 6%. The bonds all pay an annual coupon and have the same coupon rate of 1% and a face value of $1,000. (a) Calculate the prices of the three (3) bonds. (b) (i) Calculate the expected 1-year interest rate for year 2. (ii) Calculate the expected 1-year interest rate for year 3

In: Finance

Evaluate the following expressions. a. Summation from k equals 1 to 18 k b. Summation from...

Evaluate the following expressions.

a. Summation from k equals 1 to 18 k

b. Summation from k equals 1 to 7 left parenthesis 4 k plus 1 right parenthesis

c. Summation from k equals 1 to 6 k squared

d. Summation from n equals 1 to 8 left parenthesis 1 plus n squared right parenthesis

e. Summation from m equals 1 to 4 StartFraction 5 m plus 5 Over 7 EndFraction

f. Summation from j equals 1 to 3 left parenthesis 3 j minus 7 right parenthesis

g. Summation from k equals 1 to 8 k left parenthesis 7 k plus 6 right parenthesis

h. Summation from n equals 0 to 4 sine StartFraction n pi Over 2 EndFraction

In: Math

The following data was collected to explore how the number of square feet in a house,...

The following data was collected to explore how the number of square feet in a house, the number of bedrooms, and the age of the house affect the selling price of the house. The dependent variable is the selling price of the house, the first independent variable (x1) is the square footage, the second independent variable (x2) is the number of bedrooms, and the third independent variable (x3) is the age of the house.

Effects on Selling Price of Houses
Square Feet Number of Bedrooms Age Selling Price
2848 4 6 242100
1270 4 7 113600
1825 4 8 281700
2235 5 5 199100
2072 4 2 307500
2197 4 14 278800
2184 4 5 275300
1764 4 7 107200
2276 4 14 103000

Step 1 of 2 :  

Find the p-value for the regression equation that fits the given data. Round your answer to four decimal places.

Step 2 of 2:

Determine if a statistically significant linear relationship exists between the independent and dependent variables at the 0.05 level of significance. If the relationship is statistically significant, identify the multiple regression equation that best fits the data, rounding the answers to three decimal places. Otherwise, indicate that there is not enough evidence to show that the relationship is statistically significant.

In: Statistics and Probability

It is reported in USA Today that the average flight cost nationwide is $442.28. You have...

It is reported in USA Today that the average flight cost nationwide is $442.28. You have never paid close to that amount and you want to perform a hypothesis test that the true average is actually greater than $442.28. What are the appropriate hypotheses for this test?

Question 1 options:

1)

HO: μ ≤ 442.28
HA: μ > 442.28

2)

HO: μ < 442.28
HA: μ ≥ 442.28

3)

HO: μ > 442.28
HA: μ ≤ 442.28

4)

HO: μ ≥ 442.28
HA: μ < 442.28

5)

HO: μ = 442.28
HA: μ ≠ 442.28

Question 2 (1 point)

In the year 2000, the average vehicle had a fuel economy of 23.13 MPG. You are curious as to whether the average in the present day is greater than the historical value. The hypotheses for this scenario are as follows: Null Hypothesis: μ ≤ 23.13, Alternative Hypothesis: μ > 23.13. A random sample of 43 vehicles shows an average economy of 24.15 MPG with a standard deviation of 6.69 MPG. What is the test statistic and p-value for this test?

Question 2 options:

1)

Test Statistic: -1, P-Value: 0.1616

2)

Test Statistic: 1, P-Value: 0.3232

3)

Test Statistic: -1, P-Value: 0.8384

4)

Test Statistic: 1, P-Value: 0.8384

5)

Test Statistic: 1, P-Value: 0.1616

Question 3 (1 point)

Consumers Energy states that the average electric bill across the state is $41.553. You want to test the claim that the average bill amount is actually greater than $41.553. The hypotheses for this situation are as follows: Null Hypothesis: μ ≤ 41.553, Alternative Hypothesis: μ > 41.553. A random sample of 47 customer's bills shows an average cost of $43.307 with a standard deviation of $8.0202. What is the test statistic and p-value for this test?

Question 3 options:

1)

Test Statistic: -1.499, P-Value: 0.0703

2)

Test Statistic: 1.499, P-Value: 0.0703

3)

Test Statistic: -1.499, P-Value: 0.9297

4)

Test Statistic: 1.499, P-Value: 0.1406

5)

Test Statistic: 1.499, P-Value: 0.9297

Question 4 (1 point)

A medical researcher wants to determine if the average hospital stay of patients that undergo a certain procedure is different from 8.7 days. The hypotheses for this scenario are as follows: Null Hypothesis: μ = 8.7, Alternative Hypothesis: μ ≠ 8.7. If the researcher takes a random sample of patients and calculates a p-value of 0.0197 based on the data, what is the appropriate conclusion? Conclude at the 5% level of significance.

Question 4 options:

1)

The true average hospital stay of patients is equal to 8.7 days.

2)

The true average hospital stay of patients is significantly longer than 8.7 days.

3)

We did not find enough evidence to say a significant difference exists between the true average hospital stay of patients and 8.7 days.

4)

The true average hospital stay of patients is significantly shorter than 8.7 days.

5)

The true average hospital stay of patients is significantly different from 8.7 days.

In: Statistics and Probability

Solve the equations (a) log2 x + log4 x + log16 x=7

Solve the equations
(a) log2 x + log4 x + log16 x=7

(b) 5e2x+4 =8

(c) 2 + log V1 + x + 3log V1 - x = log V1 - x2

(d) 45 - 9x = 1 / 8x-2

 

In: Math

Customer Type of Customer Items Net Sales Method of Payment Gender Marital Status Age 1 Regular...

Customer Type of Customer Items Net Sales Method of Payment Gender Marital Status Age
1 Regular 1 49.5 Discover Male Married 22
2 Promotional 1 112.4 Proprietary Card Female Married 26
3 Regular 1 32.5 Proprietary Card Female Married 22
4 Promotional 5 110.4 Proprietary Card Female Married 18
5 Regular 2 64 MasterCard Female Married 24
6 Regular 1 54.5 MasterCard Female Married 34
7 Promotional 2 88 Proprietary Card Female Married 20
8 Regular 1 32.5 Visa Female Married 30
9 Promotional 2 66.52 Proprietary Card Female Married 36
10 Regular 1 54.5 Proprietary Card Female Married 26
11 Regular 1 39.5 Proprietary Card Female Married 38
12 Promotional 1 41.6 Proprietary Card Female Married 30
13 Promotional 9 170.4 Visa Female Married 30
14 Promotional 2 74.5 Visa Female Married 36
15 Regular 1 59.5 Visa Male Single 44
16 Promotional 2 81.4 Proprietary Card Male Single 26
17 Promotional 3 104 Proprietary Card Female Single 32
18 Regular 3 64.5 Discover Female Married 30
19 Promotional 2 48.5 MasterCard Female Married 22
20 Promotional 6 54.8 Proprietary Card Female Married 46
21 Promotional 1 41.6 Proprietary Card Female Single 18
22 Promotional 4 80.82 Proprietary Card Female Married 28
23 Promotional 7 276 American Express Female Married 40
24 Regular 2 84 Proprietary Card Female Married 32
25 Promotional 2 49.5 Visa Male Married 38
26 Promotional 1 40.02 Proprietary Card Female Married 50
27 Regular 1 54.5 Proprietary Card Female Married 44
28 Promotional 5 202.8 Proprietary Card Female Single 32
29 Promotional 3 81.2 Proprietary Card Female Married 22
30 Promotional 1 28 Proprietary Card Female Married 60
31 Promotional 2 73.2 MasterCard Female Married 18
32 Regular 1 85 Proprietary Card Female Married 42
33 Promotional 3 73.2 Proprietary Card Female Married 34
34 Regular 1 50 Proprietary Card Female Married 24
35 Promotional 5 115.5 MasterCard Female Married 46
36 Regular 1 39.5 MasterCard Male Single 26
37 Regular 2 112.5 Visa Female Single 32
38 Promotional 6 127.5 Proprietary Card Female Married 40
39 Promotional 5 23.23 Proprietary Card Female Married 34
40 Regular 2 62.5 Proprietary Card Female Married 48
41 Promotional 13 208.8 Proprietary Card Female Married 32
42 Promotional 4 29.5 Visa Female Married 36
43 Regular 2 133.5 Proprietary Card Female Married 38
44 Promotional 1 72.4 Proprietary Card Female Married 44
45 Promotional 2 33.8 Proprietary Card Female Married 28
46 Promotional 2 49.6 Proprietary Card Female Married 50
47 Regular 1 35 MasterCard Female Married 36
48 Promotional 3 73.64 Proprietary Card Female Married 20
49 Promotional 1 24.82 Proprietary Card Female Married 22
50 Promotional 9 155.2 MasterCard Female Married 36
51 Promotional 6 186.62 Proprietary Card Female Married 28
52 Promotional 5 128.8 Proprietary Card Male Married 58
53 Regular 1 68 Discover Female Single 68
54 Regular 2 84 Visa Female Single 84
55 Regular 2 59.5 MasterCard Female Married 22
56 Promotional 3 151.6 Proprietary Card Female Married 28
57 Promotional 6 133.1 Proprietary Card Female Married 44
58 Promotional 2 90.4 Proprietary Card Female Married 38
59 Promotional 4 75.2 MasterCard Female Married 36
60 Promotional 4 123 Proprietary Card Female Single 40
61 Promotional 1 118.8 Proprietary Card Female Married 36
62 Promotional 3 69.91 Proprietary Card Female Single 20
63 Promotional 5 63.6 Proprietary Card Female Married 44
64 Promotional 1 41.6 Proprietary Card Female Single 32
65 Promotional 2 59.5 Proprietary Card Female Married 38
66 Promotional 1 49.6 Proprietary Card Female Married 52
67 Promotional 2 69.5 Proprietary Card Female Married 24
68 Promotional 5 156.8 Proprietary Card Female Married 18
69 Promotional 2 57.2 Proprietary Card Male Married 36
70 Promotional 8 105.05 Proprietary Card Female Married 44
71 Promotional 5 165.32 Proprietary Card Female Married 20
72 Promotional 4 68 MasterCard Female Married 22
73 Regular 1 79 Proprietary Card Female Single 54
74 Promotional 2 56.5 Proprietary Card Female Married 22
75 Promotional 2 55.22 Proprietary Card Female Married 64
76 Promotional 4 94.74 Proprietary Card Female Married 52
77 Regular 2 49 Proprietary Card Female Married 32
78 Promotional 4 121.14 Proprietary Card Female Married 18
79 Promotional 3 96.8 Proprietary Card Female Married 28
80 Regular 2 99 Discover Female Married 44
81 Promotional 2 88 MasterCard Female Married 58
82 Promotional 6 63.2 Proprietary Card Female Single 20
83 Promotional 4 68.5 Visa Female Married 26
84 Promotional 3 56 Proprietary Card Female Married 34
85 Regular 2 47.5 Visa Female Married 34
86 Promotional 1 30.8 Proprietary Card Female Married 52
87 Regular 6 154 MasterCard Female Single 38
88 Regular 4 117 Proprietary Card Female Married 26
89 Promotional 1 41.6 Proprietary Card Female Single 50
90 Promotional 6 67.6 Proprietary Card Female Married 32
91 Promotional 4 105.2 Proprietary Card Female Married 44
92 Promotional 1 32.42 Proprietary Card Female Married 44
93 Regular 5 169.75 Proprietary Card Female Married 62
94 Promotional 17 239.5 Proprietary Card Female Married 20
95 Regular 3 76 American Express Female Married 36
96 Regular 1 49.5 MasterCard Female Married 34
97 Promotional 9 263 Proprietary Card Female Married 20
98 Promotional 10 297.59 Proprietary Card Female Married 42
99 Promotional 2 57.6 Proprietary Card Female Married 20
100 Promotional 1 38.44 Proprietary Card Female Married 34

a) Using the empirical rule, 95% of female promotional customer ages should be between what two values? Either show work or explain how your answer was calculated.

b)Using the empirical rule, 68% of items purchased should be between what two values? Either show work or explain how your answer was calculated.    

In: Math

Recipe Detail and Cost Card S.P. $7.50 Cost Item Beef Stew Menu Lunch F.C.% Yield 25...

Recipe Detail and Cost Card S.P. $7.50
Cost
Item Beef Stew Menu Lunch F.C.%
Yield 25 Portions Portion Size 8 oz. Date 8-Oct
Ingredients Quantity Unit Cost/Unit Ext.
Beef chuck, boneless 6 lb. lb. $    5.20
Olive Oil 4 oz. qt. $    4.00
Onion, diced 1 lb lb. $    1.60
Garlic, chopped 1/4 cup 1/4 cup $    1.50
Flour 4 oz. lb. $    6.00
Tomato puree 8 oz. 8 oz. $    2.30
Brown Stock 2 Qt. Gal $    6.00
bay leaf 1 $    0.05
Celery, EP 1 lb. lb. $    1.30
Carrots, EP 1 1/2 lb. lb. $    2.50
Pearl Onions 1 lb lb. $    2.80
Tomatoes, chopped 8 oz. lb. $    1.40
Peas, Frozen 8 oz. 8 oz Pack $    1.30
Total $       -  
Procedure:  
Cut meat into cubes and brown meat in oil. Add onion and garlic and cook until onion is brown.
Add flower to meat and make a roux. Add brown stock and simmer for 1 hour or until meat is tender.
Dice celery and carrots, add onions and cook in salted water until tender. Add celery, carrots, onions,

and tomatoes to stew. Just before serving garnish with peas.

Need to calculate Cost and F.C % with info provided. Also from the table of ingredients calculate the Extension and total only.

In: Accounting

Part 3: Anagram Arranger (20 pts) Overview Create a file called Anagram.java, which reads a series...

Part 3: Anagram Arranger (20 pts)

Overview

  • Create a file called Anagram.java, which reads a series of words input from a file.
  • For each word read from the file, the user will have the option to swap letters within that word.
  • You are required to use your doubly-linked list class to receive credit for this part of the assignment.
  • Therefore, your word should be stored as a List of Characters or Strings (each String being one letter).
  • After the user has rearranged the word, it should be written to a file, including the changes the user has made.

Specifications

  • The program should welcome the user with the message Welcome to the Anagram Arranger!
  • It should then prompt the user to enter the name of a file.
  • Provided the user enters a correct file name (see section regarding error checking below), then the program will read in all of the words in the file, one-by-one.
  • Each word should be stored in a List of Characters or Strings (each String being one letter).
  • It will display the word, along with its corresponding number, with the message:  Word #<count> is <word>
  • See below for examples.
  • The user will then be prompted to enter the position of two different letters in the word that the user wants to be swapped.
  • The program will verify the user choice by re-printing the word with carrots beneath the selected letters.
  • The user will then be required to confirm his or her choice with the message: Enter the position numbers of the two letters you wish to swap:
    • The program should accept four different input options from the user -- y, Y, yes, and Yes -- to indicate consent.
  • If the user indicates "no", the word will be reprinted with a prompt to enter the position of two different letters.
  • If the user enters yes, then the program should swap the two selected letters, and then prompt the user to indicate whether he or she would like to swap additional letters in the word.
    • The program should accept four different input options from the user -- y, Y, yes, and Yes -- to indicate consent.
  • The user should be able to continue swapping letters indefinitely.
  • Once the user no longer wishes to swap, the current version of the word should be written to a file named output.txt
  • Please see below for an incomplete example run:

Welcome to the Anagram Arranger!

Please enter the name of your input file: spooky.txt

Word #1 is zombie
1: z
2: o
3: m
4: b
5: i
6: e

Enter the position numbers of the two letters you wish to swap: 1 2

z o m b i e
^ ^  
Are these the letters you wish to swap? (y/n): y

The new word is: o z m b i e

Want to keep rearranging? (y/n): y

1: o
2: z
3: m
4: b
5: i
6: e

Enter the position numbers of the two letters you wish to swap: 3 5

o z m b i e
    ^   ^        
Are these the letters you wish to swap? (y/n): y

The new word is: o z i b m e

Want to keep rearranging? (y/n): n

Word #2 is mummy
1: m
2: u
3: m
4: m
5: y

Enter the position numbers of the two letters you wish to swap:  etc...

A complete Example:

This example assumes an input file named words.txt with the following content - however, the user should be able to enter any file name and the file can contain any number of words:

Spring
Summer
Fall
Winter

Output of running Anagram.java

Welcome to the Anagram Arranger!

Please enter the name of your input file: abc.txt

Sorry. I cannot find a file by that name!
Please enter the name of a valid input file: 123.txt

Sorry. I cannot find a file by that name!
Please enter the name of a valid input file: words.txt

Word #1 is Spring
1: S
2: p
3: r
4: i
5: n
6: g

Enter the position numbers of the two letters you wish to swap: 3 5

S p r i n g
    ^   ^       
Are these the letters you wish to swap? (y/n): y

The new word is: S p n i r g

Want to keep rearranging? (y/n): yes

1: S
2: p
3: n
4: i
5: r
6: g

Enter the position numbers of the two letters you wish to swap: 1 6

S p n i r g
^         ^         
Are these the letters you wish to swap? (y/n): yes

The new word is: g p n i r S

Want to keep rearranging? (y/n): n

Word #2 is Summer
1: S
2: u
3: m
4: m
5: e
6: r

Enter the position numbers of the two letters you wish to swap: 2 3

S u m m e r
^ ^   
Are these the letters you wish to swap? (y/n): Yes

The new word is: S m u m e r

Want to keep rearranging? (y/n): Yes

1: S
2: m
3: u
4: m
5: e
6: r

Enter the position numbers of the two letters you wish to swap: 4 5

S m u m e r
      ^ ^       
Are these the letters you wish to swap? (y/n): y

The new word is: S m u e m r

Want to keep rearranging? (y/n): n

Word #3 is Fall
1: F
2: a
3: l
4: l

Enter the position numbers of the two letters you wish to swap: 1 2

F a l l
^ ^
Are these the letters you wish to swap? (y/n): y

The new word is: a F l l

Want to keep rearranging? (y/n): n

Word #4 is Winter
1: W
2: i
3: n
4: t
5: e
6: r

Enter the position numbers of the two letters you wish to swap: 1 3

W i n t e r
^   ^   
Are these the letters you wish to swap? (y/n): n
1: W
2: i
3: n
4: t
5: e
6: r

Enter the position numbers of the two letters you wish to swap: 1 4

W i n t e r
^     ^     
Are these the letters you wish to swap? (y/n): y

The new word is: t i n W e r

Want to keep rearranging? (y/n): y

1: t
2: i
3: n
4: W
5: e
6: r

Enter the position numbers of the two letters you wish to swap: 2 5

t i n W e r
^     ^       
Are these the letters you wish to swap? (y/n): y

The new word is: t e n W i r

Want to keep rearranging? (y/n): y

1: t
2: e
3: n
4: W
5: i
6: r

Enter the position numbers of the two letters you wish to swap: 3 4

t e n W i r
    ^ ^     
Are these the letters you wish to swap? (y/n): y

The new word is: t e W n i r

Want to keep rearranging? (y/n): n

Bye!

Corresponding output.txt for above example:

g p n i r S
S m u e m r
a F l l
t e W n i r

Required Error Checking

  • Your Anagram.java should also do error checking for the following cases only:
  1. The user inputs a position number that is higher than the position of the last character in the word
  2. The user reverses the order of the two positions by giving the higher number followed by the lower number
  3. The user enters the same position number twice.
  • For the above errors, the program should print the message Invalid entry! and allow the user to try again, as shown in the example below.
  • Additionally, the program should correctly handle the below error:
  1. The user enters an incorrect name for a file.
    1. Error checking should be completed using a loop to handle multiple invalid inputs
    2. Error message must be:

Sorry. I cannot find a file by that name!
Please enter the name of a valid input file:

  • Please see below for examples of how to handle invalid input.


Error Checking Example:

Welcome to the Anagram Arranger!

Please enter the name of your input file: ddd.txt

Sorry. I cannot find a file by that name!
Please enter the name of a valid input file: nnn.txt

Sorry. I cannot find a file by that name!
Please enter the name of a valid input file: splooky.txt

Sorry. I cannot find a file by that name!
Please enter the name of a valid input file: spooky.txt

Word #1 is zombie
1: z
2: o
3: m
4: b
5: i
6: e

Enter the position numbers of the two letters you wish to swap: 4 2

Invalid entry!

1: z
2: o
3: m
4: b
5: i
6: e

Enter the position numbers of the two letters you wish to swap: 1 10

Invalid entry!

1: z
2: o
3: m
4: b
5: i
6: e

Enter the position numbers of the two letters you wish to swap: 2 2

Invalid entry!

1: z
2: o
3: m
4: b
5: i
6: e

Enter the position numbers of the two letters you wish to swap: 2 3

z o m b i e
^ ^    
Are these the letters you wish to swap? (y/n): yes

The new word is: z m o b i e

Want to keep rearranging? (y/n): etc.

In: Computer Science

in each reaction box place the best reagent and conditions from the list below. hcch br br

In each reaction box, place the best reagent and conditions from the list below. \begin{array}{lll} \mathrm{H}_{2} , Lindlar catalyst & \mathrm{H}_{2} \mathrm{O}, \mathrm{H}_{2} \mathrm{SO}_{4}, \mathrm{HgSO}_{4} & \mathrm{CH}_{3} \mathrm{CH}_{2} \mathrm{Br} \\ \hline \mathrm{BH}_{3} / \mathrm{THF} & \mathrm{HBr} 2-equiv. & \mathrm{CH}_{3} \mathrm{CH}_{2} \mathrm{CH}_{2} \mathrm{Br} \\ \mathrm{H}_{2} \mathrm{O}_{2} /NaOH & \mathrm{CH}_{3} \mathrm{Br} & \mathrm{Br}_{2} 1-equiv. \\ \mathrm{NaNH}_{2} & \mathrm{NaOH} & \mathrm{Br}_{2} 2 -equiv. \end{array}

In: Chemistry