Questions
Bohr’s Model can be used to find the wavelengths of the photons in the absorption or...

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, 42, 3→2 and 21 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 ), write a static method called parse that parses...

Java Programming

Using the class below, please

  1. ), write a static method called parse that parses a String for balanced parentheses. we seek only to determine that the symbol ‘{‘ is balanced with ‘}’. parse accepts a single String parameter and returns an int. If parse returns a minus 1, then there are no errors, otherwise, parse should return the position within the String where an error occurred. For example

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...

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:

  • The item to purchase an the amount of money are numeric values (e.g. int and float)
  • If the user enters an invalid choice for an item to purchase, your program should alert the user of the error.
  • The program should not accept negative values for the sum of money.

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:

  • The purpose of this problem is to practice using conditional branching and the try/except clause. Do not use loops.
  • Please make sure to submit a well-written program. Good identifier names, useful comments, and spacing will be some of the criteria that will be used when grading this assignment.
  • This assignment can be and must be solved using only the materials that have been discussed in class. Do not look for alternative methods that have not been covered as part of this course.

How your program will be graded:

  • correctness: it performs the conversion correctly: 40%
  • complies with requirements: correct use of conditional branching: 40%
  • code style: good variable names, comments, proper indentation and spacing, : 20%

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...

Given the plot of y=f(x) below, find the plot of y=f1(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...

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:

1)

( -280.596 , 323.546 )

2)

( 280.596 , 323.546 )

3)

( 280.811 , 323.331 )

4)

( 294.857 , 309.285 )

5)

( 299.094 , 305.048 )

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:

1)

( -88.421 , 115.635 )

2)

( 98.922 , 105.134 )

3)

( 88.421 , 115.635 )

4)

( 88.643 , 115.413 )

5)

( 97.647 , 106.409 )

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:

1)

We are 95% confident that the average age of the golfers surveyed is between 39 and 43.2 years old.

2)

We are 95% confident that the proportion of the ages of all golfers is between 39 and 43.2 years old.

3)

We cannot determine the proper interpretation of this interval.

4)

We are certain that 95% of the average ages of all golfers will be between 39 and 43.2 years old.

5)

We are 95% confident that the average age of all golfers that play on the golf course is between 39 and 43.2 years old.

In: Statistics and Probability

Does the use of sweetener xylitol reduce the incidence of ear infections? Some children are randomly...

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: p1p2.
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...

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 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

1. Name 6 different types of nutritional supplements ​_______________________________________ _______________________________________ _______________________________________ _______________________________________ _______________________________________ _

1. Name 6 different types of nutritional supplements
​_______________________________________
_______________________________________
_______________________________________
_______________________________________
_______________________________________
_______________________________________
2. Describe available supplemental forms.
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
3. Discuss specific uses for the different types of supplements.
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
4. Properly choose the correct supplement for a client with
• renal disease​_______________________________________
• diabetes​_______________________________________
• pulmonary disease​_______________________________________
• wound healing​_______________________________________
5. Advise clients of cost and availability of above nutritional supplements
• renal disease​_______________________________________
• diabetes​_______________________________________
• pulmonary disease​_______________________________________
• wound healing​_______________________________________
Required Learning Activity
1. List 3 different stores and list 6 available nutritional supplements and the cost of each.
Store # 1 name ____________________________________________ Cost
_______________________________________​________________________
_______________________________________ ________________________
_______________________________________ ________________________
_______________________________________ ________________________
_______________________________________ ________________________
_______________________________________ ________________________
Store # 2 name ______________________________________________ Cost
_______________________________________ ________________________
_______________________________________ ________________________
_______________________________________ ________________________
_______________________________________ ________________________
_______________________________________ ________________________
_______________________________________ ________________________
Store # 3 name _______________________________________________ Cost
_______________________________________ ________________________
_______________________________________ ________________________
_______________________________________ ________________________
_______________________________________ ________________________
_______________________________________ ________________________
_______________________________________ ________________________
2. List available forms of each supplement
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
3. State specific use for each supplement
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
4. List calorie count for each supplement
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
5. List cost for each supplement for each store visited (Answers placed in Required Leaning Activity # 1)
6. Design a chart depicting and comparing the above information and present to class.

In: Nursing

The analyst took four batches of water bottles at different times of the day and recorded...

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