Bohr’s Model can be used to find the wavelengths of the photons in the absorption or emission spectrum of hydrogen atom.
Using that model, find the wavelengths of the 5→2, 4→2, 3→2 and 2→1 transitions. Specify the colour associated with these wavelengths when possible. To determine the colours, use tables. If the wavelength is not part of the visible spectrum, specify if it is ultraviolet or infrared.
In: Physics
Java Programming
Using the class below, please
parse(“{3 + {4/2} }”) would return -1
parse(“{ { 4*X}”) would return 6 since at position 6 we expected another “}”
parse(“{3+4}}”) would also return a 6
In: Computer Science
Write a program that simulates a vending machine. The machine holds six snack items labeled them 1 through 6. The program should initially display a menu of items along with their prices:
Vending Machine 1. Roasted Almonds --> $1.25 2. Pretzels --> $1.75 3. Chewing Gum --> $0.90 4. Mints --> $0.75 5. Chocolate bar --> $1.50 6. Cookies --> $2.00
The program then should ask the user to enter the item to purchase along with a sum of money. If the money is enough to buy the item, your program should display the name of item purchased along with the change owed to the user (if any). If the money inserted is insufficient, then your program should say so and let the user know how much additional money is needed. Your program must display the money amounts using the dollar sign and two decimal places after the decimal point.
Please note that your program must validate the input given by the user:
Here are a few sample runs:
Vending Machine 1. Roasted Almonds --> $1.25 2. Pretzels --> $1.75 3. Chewing Gum --> $0.90 4. Mints --> $0.75 5. Chocolate bar --> $1.50 6. Cookies --> $2.00 Enter your choice of item: 1 Enter money to purchase item: 10 Thanks for buying Roasted Almonds. Your change is $8.75.
Vending Machine 1. Roasted Almonds --> $1.25 2. Pretzels --> $1.75 3. Chewing Gum --> $0.90 4. Mints --> $0.75 5. Chocolate bar --> $1.50 6. Cookies --> $2.00 Enter your choice of item: 6 Enter money to purchase item: 1.50 You are $0.50 short.
Vending Machine 1. Roasted Almonds --> $1.25 2. Pretzels --> $1.75 3. Chewing Gum --> $0.90 4. Mints --> $0.75 5. Chocolate bar --> $1.50 6. Cookies --> $2.00 Enter your choice of item: 9 Invalid item choice.
Vending Machine 1. Roasted Almonds --> $1.25 2. Pretzels --> $1.75 3. Chewing Gum --> $0.90 4. Mints --> $0.75 5. Chocolate bar --> $1.50 6. Cookies --> $2.00 Enter your choice of item: A Value entered was not a number.
Vending Machine 1. Roasted Almonds --> $1.25 2. Pretzels --> $1.75 3. Chewing Gum --> $0.90 4. Mints --> $0.75 5. Chocolate bar --> $1.50 6. Cookies --> $2.00 Enter your choice of item: 2 Enter money to purchase item: abc Value entered was not a number.
Vending Machine 1. Roasted Almonds --> $1.25 2. Pretzels --> $1.75 3. Chewing Gum --> $0.90 4. Mints --> $0.75 5. Chocolate bar --> $1.50 6. Cookies --> $2.00 Enter your choice of item: 4 Enter money to purchase item: -2.00 Amount of money cannot be a negative value.
Notes:
How your program will be graded:
Please use python 3
In: Computer Science
Given the plot of y=f(x) below, find the plot of y=f−1(x).
A coordinate plane has a horizontal x-axis labeled from negative 7 to 7 in increments of 1 and a vertical y-axis labeled from negative 7 to 7 in increments of 1. A curve starts at the point left-parenthesis negative 1 comma 0 right-parenthesis, rises at an increasing rate from left to right and passes through left-parenthesis 1 comma 1 right-parenthesis and left-parenthesis 4 comma 6 right-parenthesis.
Select the correct answer below:
A coordinate plane has a horizontal x-axis labeled from negative 7 to 7 in increments of 1 and a vertical y-axis labeled from negative 7 to 7 in increments of 1. A curve starts at the point left-parenthesis 0 comma negative 1 right-parenthesis, rises at a decreasing rate from left to right and passes through left-parenthesis 1 comma 1 right-parenthesis and left-parenthesis 4 comma 3 right-parenthesis.
A coordinate plane has a horizontal x-axis labeled from negative 7 to 7 in increments of 1 and a vertical y-axis labeled from negative 7 to 7 in increments of 1. A curve starts at the point left-parenthesis 0 comma 1 right-parenthesis, rises at a decreasing rate from left to right and passes through left-parenthesis 1 comma 3 right-parenthesis and left-parenthesis 4 comma 5 right-parenthesis.
A coordinate plane has a horizontal x-axis labeled from negative 7 to 7 in increments of 1 and a vertical y-axis labeled from negative 7 to 7 in increments of 1. A curve starts at the point left-parenthesis 1 comma 0 right-parenthesis, falls at an increasing rate from right to left and passes through left-parenthesis negative 1 comma negative 1 right-parenthesis and left-parenthesis negative 3 comma negative 4 right-parenthesis.
A coordinate plane has a horizontal x-axis labeled from negative 7 to 7 in increments of 1 and a vertical y-axis labeled from negative 7 to 7 in increments of 1. From left to right, a curve falls shallowly in quadrant 2, passing through the points left-parenthesis negative 4 comma 6 right-parenthesis and left-parenthesis negative 2 comma 2 right-parenthesis, crosses the positive y axis at 0.5, and ends at left-parenthesis 1 comma 0 right-parenthesis.
In: Advanced Math
Question 2 (1 point)
The owner of a local phone store wanted to determine how much customers are willing to spend on the purchase of a new phone. In a random sample of 15 phones purchased that day, the sample mean was $302.071 and the standard deviation was $27.9396. Calculate a 99% confidence interval to estimate the average price customers are willing to pay per phone.
Question 2 options:
|
|||
|
|||
|
|||
|
|||
|
Question 3 (1 point)
You own a small storefront retail business and are interested in determining the average amount of money a typical customer spends per visit to your store. You take a random sample over the course of a month for 12 customers and find that the average dollar amount spent per transaction per customer is $102.028 with a standard deviation of $15.1769. Create a 99% confidence interval for the true average spent for all customers per transaction.
Question 3 options:
|
|||
|
|||
|
|||
|
|||
|
Question 4 (1 point)
The owner of a local golf course wanted to determine the average age (in years) of the golfers that played on the course. In a random sample of 27 golfers that visited his course, the sample mean was 41.1 years old and the standard deviation was 5.19 years. Using this information, the owner calculated the confidence interval of (39, 43.2) with a confidence level of 95% for the average age. Which of the following is an appropriate interpretation of this confidence interval?
Question 4 options:
|
|||
|
|||
|
|||
|
|||
|
In: Statistics and Probability
Does the use of sweetener xylitol reduce the incidence of ear
infections? Some children are randomly allocated t xylitol
treatment group and other children to the control group (who are
treated with placebo). Of 214 children on xylitol, 54 got ear
infection, while of 292 children on placebo, 73 got ear
infection.
Suppose p1 and p2 represent
population proportions with ear infections on xylitol and placebo,
respectively. Again [^(p)]1 and
[^(p)]2 represent sample proportions with ear
infections on xylitol and placebo, respectively.
1. What are the appropriate hypotheses one should test?
H0: p1 =
p2 against
Ha: p1
> p2.
H0: [^(p)]1 =
[^(p)]2 against
Ha:
[^(p)]1 ≠ [^(p)]2.
H0: p1 =
p2 against
Ha: p1
< p2.
H0: p1 =
p2 against
Ha: p1
≠ p2.
H0: [^(p)]1 =
[^(p)]2 against
Ha:
[^(p)]1 > [^(p)]2.
H0: [^(p)]1 =
[^(p)]2 against
Ha:
[^(p)]1 < [^(p)]2.
| Tries 0/3 |
2. Rejection region: We reject H0 at 1%
level of significance if:
z < −2.326.
|z| > 2.326.
z > 2.326.
z < −2.576.
|z| > 2.576.
None of the above
| Tries 0/3 |
3. The value of the test-statistic is: Answer to 2 decimal places.
| Tries 0/5 |
4. If α = 0.01, what will be your conclusion?
Reject H0.
There is not enough information to conclude.
Do not reject H0.
| Tries 0/3 |
5. The p-value of the test is: Answer to 4 decimal places.
| Tries 0/5 |
6. We should reject H0 for all significance
level (α) which are
larger than p-value.
smaller than p-value.
not equal to p-value.
In: Statistics and Probability
Simple Linear Regression Hypothesis Test
A researcher was interested in whether there was a positive predictive relationship between the number of years employed at a company and the annual salary in dollars. The following data was obtained for 10 participants:
Table 1
Data for Salary/Years of Job Experience
|
Case |
Years |
Salary (x 1000 $) |
|
1 |
1 |
27.314 |
|
2 |
4 |
61.870 |
|
3 |
6 |
42.755 |
|
4 |
10 |
78.096 |
|
5 |
15 |
54.180 |
|
6 |
20 |
95.735 |
|
7 |
22 |
94.320 |
|
8 |
3 |
45.720 |
|
9 |
8 |
38.640 |
|
10 |
14 |
85.162 |
Conduct the 4 steps of hypothesis testing to evaluate whether the number of years is a statistically significant positive predictor of the annual gross salary.
In: Statistics and Probability
A company produces and sells 3 types of organic fertilizer. A pound of Brand 1 earns a profit of $3 per pound. Brand II earns a profit of $4 per pound, and Brand III earns a profit of $3 per pound. 1 pound of Brand I requires 3 pounds of raw material and takes 2 hours of labor to produce it. 1 pound of Brand II requires 4 pounds of raw material and takes 3 hours of labor to produce it. 1 pound of Brand III requires 2 pounds of raw material and takes 2 hours of labor to produce it. Each day the company has 250 pounds of raw materials to use and because of union rules must have at least 100 labor hours for its workers. In addition since Brand II is the most popular they need to produce at least 15 pounds of it.
How many pounds of each Brand of fertilizer should they produce each day to maximize their profit? And what is their profit?
In: Math
In: Nursing
The analyst took four batches of water bottles at different times of the day and recorded the average amount filled.
Use the data set below to create the control chart indicated to check if the water filling process is in control.
Create the control charts and answer the questions in Excel and upload the file.
1. Create the xbar control chart for this data set. Assume that σ = 0.75.
Discuss why or why not the water filling process is in control.
2. Create the R control chart using this data set.
Discuss why or why not the water filling process is consistent. This is the same data set as in question 8, number 1.
| Water bottle filling process | |||||
| sample | batch 1 | batch 2 | batch 3 | batch 4 | |
| 1 | 20.4 | 19.8 | 19.3 | 21.0 | |
| 2 | 20.0 | 19.2 | 21.2 | 19.5 | |
| 3 | 20.1 | 21.1 | 19.8 | 20.9 | |
| 4 | 19.9 | 21.0 | 20.0 | 20.5 | |
| 5 | 19.0 | 21.1 | 20.6 | 21.8 | |
| 6 | 20.0 | 20.3 | 20.1 | 19.0 | |
In: Statistics and Probability