Questions
Using Perl; Part 1: Allow the user to enter a full name in the “first last”...

Using Perl;

Part 1:
Allow the user to enter a full name in the “first last” format
Print just the first name
Print just the last name
Print the name in “last, first” format
Print the entire name out in all capital letters
Use a single print statement to print out the first name on one line and the last name on
the next line.
There should be 5 print statements generating 6 lines of output.


Part 2:
Enter a three digit number (such as 316)
Print out the number from the hundreds place (for example, 3 in 316)
Print out the number from the ten’s place (for example, 1 in 316)
Print out the number from the one’s place (for example, 6 in 316)
Print out the original number
All output will be appropriately labeled and on a separate line, such as “hundreds
place”, “tens place”, and so on.
ALL the numeric values MUST be right justified in the output using formatted output
All work done for this part MUST treat the information as numeric values – do not treat
the input as a string or as an array.
There should be 4 print statements generating 4 lines of output.

In: Computer Science

Steven says that the period T of an object on a spring is depends on the...

Steven says that the period T of an object on a spring is depends on the mass m of the object and the spring constant k of the spring in the following way: T=2π k m ​  . Jessica says that the period T of an object on a spring is depends on the mass m of the object and the spring constant k of the spring in the following way: T=2π k m ​ ​  .

1.What are two different ways you can test and which of the two mathematical models above is correct? Note: the one spring has a spring constant that is twice as big as the other. Once you've done brainstorming, describe your two experiments in detail in the text box below.

Hint: Make sure you address the following points in your discussion: a. What are the mathematical models you're testing? b. What quantities can you vary or change to test the two models? c. What quantities will you measure and how will you measure them?

2.For each of your experiments, describe the 2 predicted outcomes of the experiment based on the 2 mathematical models that you're testing. Include a discussion of any simplifying assumptions about the experiment that you're making in making each prediction. Hint: a. A prediction should be based on the model being tested. One experiment needs 2 predictions because you're testing two competing models. b. An assumption is an experimental factor that you're choosing to ignore in applying the mathematical model to make a prediction. 3.Discuss:

3.What is/are the source(s) of experimental uncertainty in each of your experiments? How will you minimize these uncertainties in your experimental design? For EACH experiment: If you are using measured quantities to make a prediction, estimate the uncertainty in your predicted quantity using the weakest link rule.

In: Physics

In this experiment the concentration of Vitamin C/ascorbic acid is used to find the amount of...

In this experiment the concentration of Vitamin C/ascorbic acid is used to find the amount of iodine present through titration and the stoichiometric ratio. Furthermore, by finding the amount of iodine present before and after the equivalence point, the experiment presents us with the amount of iodine that reacts with the Vitamin C in “unknown B”.There were two titrations performed in this experiment, three times each. The first began with 50mL of Sodium Thiosulphate put in a burette. Approximately 2g of Potassium Iodide was stirred in a 250mL Erlenmeyer flask, with 10mL of 0.3M Sulphuric Acid, followed by 20mL of 1.0003x10-2M Potassium Iodate. The solution was initially a brown color, titrated until the solution becomes lighter. 1mL of starch indicator to the solution turned the lighter solution blue, and was titrated until the blue disappeared. The second titration began with 50mL of Sodium Thiosulphate in a burette. Placing approximately 2g of Potassium Iodide in a 250mL Erlenmeyer flask, 20mL of “Pink Drink”, with 10mL of 0.3M Sulphuric Acid, and 20mL of 1.0003x10-2M Potassium Iodate was stirred together. The brown mixture was titrated until it lightened; with 1mL of starch indicator added it changed to blue. The titration was carried out until the blue disappeared.

Using these equations
IO3 + 5I + 6H = 3I2 + 3H2O
I2 + 2S2O3 = 2I + S4O6

How do I go about finding the amount of vitamin C and iodine? I have equations but I'm told they're the wrong ones. Quite frankly I'm lost. This is the data I collected during the experiment.

Titration 1(Na2SO3 mL)

Titration 2(Na2SO3 mL)

Titration 1(KI g)

Titration 2(KI g)

Trial 1

17.7

13.7

2.080

2.044

Trial 2

17.0

13.5

2.047

2.085

Trial 3

17.6

13.5

2.013

2.082

Avg

17.5

13.6

2.047

2.070

In: Chemistry

You have a large barrel full of coins. 5 percent of the coins in the barrel...

You have a large barrel full of coins. 5 percent of the coins in the barrel are “type X” and 95 percent are “type Y.” When you flip them, type X coins come up heads 90 percent of the time and tails 10 percent of the time. Type Y coins come up heads 3 percent of the time and tails 97 percent of the time.

Suppose you do a three part experiment: (i) Take a coin at random from the barrel [in this context, choosing a coin “at random” from the barrel means that there is a 5 percent chance you will select a type X coin and a 95 percent chance you will select a type Y coin] , (ii) flip the coin you selected once and observe whether it comes up heads or tails, and (iii) flip the same coin a second time and observe whether it comes up heads or tails.

a) Represent this experiment in a tree, showing all the possible outcomes, along with the probability of each outcome. [For example, one possible outcome is "the coin is type Y, the first flip is tails, and the second flip is heads," which you could abbreviate as YTH.]

b) What is the probability that the two tosses of the coin do not give the same result? (That is, what is the probability that either the first toss is heads and the second toss is tails, or the first toss is tails and the second toss is heads?)

c) If the two tosses of the coin do not give the same result, what is the probability that the coin chosen at random is type Y?

d) Define event A to be the set of all outcomes of this experiment in which the first flip comes up Heads. Define event B to be the set of all outcomes of this experiment in which the second flip comes up Heads. Are A and B independent events? Justify your answer carefully, using an argument based on the definition of statistical independence, not just intuition.

In: Statistics and Probability

Hypothesis testing, and confidence intervals are the most common inferential tools used in statistics. Imagine that...

  1. Hypothesis testing, and confidence intervals are the most common inferential tools used in statistics. Imagine that you have been tasked with designing an experiment to determine reliably if a patient should be diagnosed with diabetes based on their blood test results. A patient is classified as having gestational diabetes if their average glucose level is above 140 milligrams per deciliter (mg/dl) one hour after a sugary drink is ingested. We are told that the blood test is 98 percent reliable and gestational diabetes affects 9 percent of the population in our patient’s age group, and that our test has a false positive rate of 12 percent. Create a short outline of your experiment, including all the following:
    1. A detailed discussion of your experimental design. Detailed experimental design should include the type of experiment, how you chose your sample size, what data is being collected, and how you would collect that data.
    1. How is randomization used in your sampling or assignment strategy? Remember to discuss how you would randomize for sampling and assignment, what type of randomization are you using?
    1. The type of inferential test utilized in your experiment. Include type of test used, number of tails, and a justification for this choice.
    1. A formal statement of the null and alternative hypothesis for your test. Make sure to include correct statistical notation for the formal null and alternative, do not just state this in words.
    1. A confidence interval for estimating the parameter in your test. State and discuss your chosen confidence level, why this is appropriate, and interpret the lower and upper limits.
    1. An interpretation of your p-value and confidence interval, including what they mean in the context of your experimental design. Answer each part below. State your significance level, interpret your p-value, and make a decision on the null.

In: Statistics and Probability

To illustrate the effects of driving under the influence​ (DUI) of​ alcohol, a police officer brought...

To illustrate the effects of driving under the influence​ (DUI) of​ alcohol, a police officer brought a DUI simulator to a local high school. Student reaction time in an emergency was measured with unimpaired vision and also while wearing a pair of special goggles to simulate the effects of alcohol on vision. For a random sample of nine​ teenagers, the time​ (in seconds) required to bring the vehicle to a stop from a speed of 60 miles per hour was recorded. Complete parts​ (a) and​ (b).

​Note: A normal probability plot and boxplot of the data indicate that the differences are approximately normally distributed with no outliers.

TABLE IS BELOW.

​(a) Whether the student had unimpaired vision or wore goggles first was randomly selected. Why is this a good idea in designing the​ experiment?

A.

This is a good idea in designing the experiment because it controls for any​ "learning" that may occur in using the simulator.

B.

This is a good idea in designing the experiment because the sample size is not large enough.

C.

This is a good idea in designing the experiment because reaction times are different.

​(b) Use a​ 95% confidence interval to test if there is a difference in braking time with impaired vision and normal vision where the differences are computed as​ "impaired minus​ normal."

The lower bound is

?

The upper bound is

?

​(Round to the nearest thousandth as​ needed.)

State the appropriate conclusion. Choose the correct answer below.

There is sufficient evidence to conclude there is a difference in braking time with impaired vision and normal vision.

There is insufficient evidence to conclude there is a difference in braking time with impaired vision and normal vision.

Click to select your answer(s).

Data Table

Subject

1

2

3

4

5

6

7

8

9

​Normal, Upper X Subscript iXi

4.47

4.24

4.58

4.56

4.31

4.80

4.55

5.00

4.79

​Impaired, Upper Y Subscript iYi

5.86

5.85

5.45

5.32

5.83

5.49

5.23

5.61

5.63

PrintDone

In: Statistics and Probability

A pet food company has a business objective of expanding its product line beyond its current...

A pet food company has a business objective of expanding its product line beyond its current kidney and shrimp-based cat foods. The company developed two new products, one based on chicken liver and the other based on salmon.  The company conducted an experiment to compare the two new products with its existing ones , as well as a generic beef-based product sold at a supermarket chain.

For the experiment, a sample of 35 cats from the population at a local animal shelter was selected. Seven cats were randomly assigned to each of the five products being tested.  Each of the cats was then presented with 3 ounces of the selected food in a dish at feeding time.  The researches defined the variable to be measured as the number of ounces of food that the cat consumed within a 10 minute time interval that began when the filled dish was presented.  The results of the experiment are summarized in the table below;

Kidney

Shrimp

Chicken Liver

Salmon

Beef

2.37

2.26

2.29

1.79

2.09

2.62

2.69

2.23

2.33

1.87

2.31

2.25

2.41

1.96

1.67

2.47

2.45

2.68

2.05

1.64

2.59

2.34

2.25

2.26

2.16

2.62

2.37

2.17

2.24

1.75

2.34

2.22

2.37

1.96

1.18

a)  State the appropriate null and alternative hypotheses for this experiment.

b) Use r coding to generate an ANOVAtable. Identify the Sum of Squares between (among) Groups, the Mean of Squares within Groups , the F statistic, and the p value.

c) Use your p value to determine if you are going to reject or fail to reject the null hypothesis at the .05 significance level.

d) Use the F statistic and the F critical value  Fc , to determine if you fail to reject the null hypothesis.  (Remember that the Fcvalue, and you reject  the null hypothesis if  Fstat> Fc.   You fail to reject the null hypothesis if  Fstat< Fc. )

In: Statistics and Probability

Which effect size index is used frequently? A. Cohen’s d B. F-ratio C. Cramér’s V D....

Which effect size index is used frequently?

A.

Cohen’s d

B.

F-ratio

C.

Cramér’s V

D.

t

In: Nursing

The voltage across an inductor is 65 V and has a frequency of 430 Hz. If...

The voltage across an inductor is 65 V and has a frequency of 430 Hz. If the current in the inductor is 0.27 A, what is the value of its inductance?

In: Physics

What were the Civil Rights Cases? How did the Supreme Court's ruling in Plessy v. Ferguson...

What were the Civil Rights Cases? How did the Supreme Court's ruling in Plessy v. Ferguson affect the Fourteenth Amendment?

In: Economics