In: Chemistry
This is a 3 part question but one question
(A) Discuss the probability of landing on heads if you flipped a coin 10 times?
(B) What is the probability the coin will land on heads on each of the 10 coin flips
(C) Apply this same binomial experiment to a different real-world situation. Describe a situation involving probability.
In: Math
In a Young's double-slit experiment, a set of parallel slits with a separation of 0.102 mm is illuminated by light having a wavelength of 600 nm and the interference pattern observed on a screen 4.50 m from the slits. (a) What is the difference in path lengths from the two slits to the location of a second order bright fringe on the screen?
In: Physics
(c) Powder diffraction experiment:
The incident wavelength of a neutron beam is λ = 2.662 Å. The distance between adjacent atoms in a simple cubic crystal structure is 3.26 Å. Calculate the scattering angle of the 1st,
2nd and 3rd diffraction maximum. Up to which order ’n’ can the diffraction peaks be observed?
In: Physics
Take a simple experiment of rolling a pair of balanced dice. Each die has six sides, each side contains one to six spots. Let us define the random variable x to be the sum of the spots on the two dice. Display the probability mass function and the distribution function for the random variable x.
In: Math
Now that you have worked through the rabbit Island case, you are ready to think of your own experiment to find out what microbe is causing a disease out break that could occur today. What data would you want to include? How would you control your variables?
In: Biology
What is the rate constant for a reaction based on the following experimental information?
| Experiment | Rate (M/s) | [A] (M) | [B] (M) | [C] (M) |
| 1 | 0.3126 | 0.25 | 0.53 | 0.45 |
| 2 | 0.3126 | 0.55 | 0.53 | 0.45 |
| 3 | 0.574 | 0.25 | 0.954 | 0.45 |
| 4 | 2.3217 | 0.55 | 1.484 | 1.17 |
In: Chemistry
PLEASE explain Spectrophotometry and what is soo important about 400nm
PLEASE explain how absorbance and beer's law relate
Relate Beer’s law to the equation of a line on a standard curve.
Why is the line forced through zero on the standard curve?
What does the R2 value for the graph says about the experiment?
In: Chemistry
In: Psychology
Complete the provided C++ program, by adding the following functions. Use prototypes and put your functions below main.
1. Write a function harmonicMeans that repeatedly asks the user for two int values until at least one of them is 0. For each pair, the function should calculate and display the harmonic mean of the numbers. The harmonic mean of the numbers is the inverse of the average of the inverses. The harmonic mean of x and y can be calculated as harmonic_mean = 2.0 * x * y / (x + y);. Sample output: Enter two integer values: 2 4 The harmonic mean of 2 and 4 is 2.66667 Enter two integer values: 2 6 The harmonic mean of 2 and 6 is 3 Enter two integer values: 2 9 The harmonic mean of 2 and 9 is 3.27273 Enter two integer values: 2 0
2. Write a function named capEs that takes a string reference as a parameter and changes every 'e' character to 'E'. The function should not return a value. Expected output: Hello Ernie! with cap Es: HEllo ErniE! Eeeee Eee Eeee with cap Es: EEEEE EEE EEEE
3. Write a function named binaryToDecimal that accepts an integer parameter whose digits are meant to represent binary (base-2) digits, and returns an integer of that number's representation in decimal (base-10). For example, the call of binaryToDecimal(101011) should return 43. Constraints: Do not use a string in your solution. Do not use any container such as array or vector. Also do not use any built-in base conversion functions from the system libraries.
4. Write a function named removeConsecutiveDuplicates that accepts as a parameter a reference to a vector of integers, and modifies it by removing any consecutive duplicates. For example, if a vector named v stores {1, 2, 2, 3, 2, 2, 3}, the call of removeConsecutiveDuplicates(v); should modify it to store {1, 2, 3, 2, 3}. Note: to remove an element at index i in a vector named v, use this: v.erase(v.begin() + i);
#include <iostream>
#include <string>
#include <vector>
#include <cstdlib>
// Code for the problems
using namespace std;
int main() {
// problem 1 test
harmonicMeans();
cout << endl;
// problem 2 tests
string testString1 = "Hello Ernie!";
cout << testString1 << " with cap Es: ";
capEs(testString1);
cout << testString1 << endl;
testString1 = "Eeeee Eee Eeee";
cout << testString1 << " with cap Es: ";
capEs(testString1);
cout << testString1 << endl << endl;;
// problem 3 tests
int n = 101100;
cout << n << " in binary: " << binaryToDecimal(n) << endl;
n = 1000;
cout << n << " in binary: " << binaryToDecimal(n) << endl << endl;
// problem 4 tests
vector<int> v{ 1, 2, 2, 3, 2, 2, 3 };
cout << "before removeConsecutiveDuplicates: ";
for (int i = 0; i < v.size(); ++i) {
cout << v[i] << ' ';
}
removeConsecutiveDuplicates(v);
cout << endl << "after removeConsecutiveDuplicates: ";
for (int i = 0; i < v.size(); ++i) {
cout << v[i] << ' ';
}
cout << endl;
vector<int> w{ 11, 11, 11, 44, 44, 0, 29, 33, 33, 33, 33, 33 };
cout << "before removeConsecutiveDuplicates: ";
for (int i = 0; i < w.size(); ++i) {
cout << w[i] << ' ';
}
removeConsecutiveDuplicates(w);
cout << endl << "after removeConsecutiveDuplicates: ";
for (int i = 0; i < w.size(); ++i) {
cout << w[i] << ' ';
}
cout << endl;
system("pause");
return 0;
}
In: Computer Science