III. Buffer Solutions
A. Buffer 1
i. Measure out 10.0 mL of 1.0 M CH3COOH and 25.0 mL of 1.0 M sodium acetate (NaCH3COO) into a beaker
2. What is the concentration of acetic acid in this solution after mixing. (include units) [CH3COOH] ?
3. What is the concentration of acetate ion in this solution after mixing.(include units) [CH3COO-] ?
4. Calculate the expected pH of this buffer solution.
5. Measured pH of this buffer solution pH: 5.31
I have no idea how to do number 2,3,4 and I have to repeat these processes/ questions for different solutions. If you could show me how to do these, I would greatly appreciate it! Thank you so much in advance.
In: Chemistry
Sketch a PV diagram and find the work done by the gas during the following stages. (Draw the PV diagram on paper. Your instructor may ask you to turn in this work.)
(a) A gas is expanded from a volume of 1.0 L to 2.6 L at a
constant pressure of 3.1 atm.
J
(b) The gas is then cooled at constant volume until the pressure
falls to 1.8 atm.
J
(c) The gas is then compressed at a constant pressure of 1.8 atm
from a volume of 2.6 L to 1.0 L. [Note: Be careful of the
signs.]
J
(d) The gas is heated until its pressure increases from 1.8 atm to
3.1 atm at a constant volume.
J
(e) Find the net work done during the complete cycle.
J
In: Physics
REQUIREMENTS:
int InRectangle( float pt[2], float rect[4] );
TESTS:
In: Computer Science
Write a JavaScript program to implement the Least-Squares Linear Regression algorithm shown below, for an arbitrary set of ( x, y ) data points entered by the user.
Least-Squares Linear Regression: • Linear regression basically means finding the ( equation for the ) straight line that is the closest “fit” to a set of ( x, y ) data points.
• Least-squares is a means of identifying the “best” fit between the line and the data. For each data point, the distance between the point and the line is calculated and squared, and the total of these squared distances is added up over all the data points. The straight line that yields the minimum value for this sum of squares is defined as the best fit.
• calculate the correlation coefficient, r, which is a metric for how well the line fits the data, and if the correlation is positive or negative. This value always lies between -1.0 and 1.0 inclusive. The closer it is to 1.0, the stronger the positive correlation; The closer to -1.0 the stronger the negative correlation; and if the coefficient is close to zero, then it shows a weak correlation ( if any ) between x and y.
The Algorithm: 1. Read in a series of ( x, y ) data pairs. While doing so, calculate the following sums:
• N = number of data pairs.
• Sx = ∑ x = Summation ( total ) of all X values.
• Sy = ∑ y = Summation ( total ) of all Y values.
• Sxx = ∑ x2 = Summation ( total ) of all X2 values.
• Syy = ∑ y2 = Summation ( total ) of all Y2 values.
• Sxy = ∑ xy = Summation ( total ) of all X∙Y values.
2. Then calculate: • Slope, m = ( N ∙ Sxy – Sx ∙ Sy ) / ( N ∙ Sxx – Sx ∙ Sx ) • Intercept, b = ( Sy – m ∙ Sx ) / N
3. Report the best-fit line as y = m x + b
4. Finally calculate and report the correlation coefficient, r, as:
• ? = ? ∙ ???−?? ∙ ?? /√( ? ∙ ???−?? ∙ ?? ) ∙ ( ? ∙ ???−?? ∙ ?? )
In: Computer Science
You have to write a program that computes the area of a triangle. Input consists of the three points that represent the vertices of the triangle. Points are represented as Cartesian units i.e. X,Y coordinates as in (3,5). Output must be the three points, the three distances between vertices, and the area of the triangle formed by these points. The program must read the coordinates of each point, compute the distances between each pair of them and print these values. Next, it must calculate the area and print its value. All input are read from keyboard. All output must be printed out on the terminal. Solution requirements: 1) Your program must solve the problem using the following functions: 10 points. getPoint(): Receives the input data. It reads from the keyboard the coordinates (x, y) corresponding to a single vertex of the triangle and returns both of them rounded to a single decimal place to the caller. 15 points. calcLength(): Receives the coordinates of two points and returns the distance between them (calculated using the equation provided below) rounded to ten decimal places. ________________ Length between points (x1,y1) and (x2,y2) = √(x1-x2)2+(y1-y2)2 That is, the length is the square root of the square of the distance between the x coordinates plus the square of the distance between the y coordinates. 15 points. semiPerimeter(): Receives three lengths and returns the value of the semi perimeter (calculated using the equation provided below) rounded to ten decimal places. Semi perimeter = ½ * (ab + bc + ca) Where ab, bc and ca are the lengths between points a and b, b and c, and c and a respectively. 15 points. calcArea(): Receives three lengths and returns the area of the triangle (calculated using the equation provided below) rounded to two decimal places. This function must call semiPerimeter() to calculate the value for s before calculating the area of the triangle. ________________________ Area = √(s*(s-ab)*(s-bc)*(s-ca)) Where s is the semi perimeter and ab, bc, and ca are the three distances between the three points. 10 points. printDistance(): Receives the output file, the coordinates of two points, and the distance between them and prints a message similar to the following one: The distance between (1.0,1.2) and (6.0,6.0) is 6.93 20 points. square(): Receives a value and returns its square rounded to two decimal places. You must use it to calculate the squares of the distances of the x and y coordinates in calcLength(). Do NOT use pow() to implement this function. 15 points. round_off(value, places): Receives a value (double precision real number) and a number indicating a quantity of decimal places (whole number) and returns the value rounded to the specified number of places. Your main() function must: • Call getPoint(), calcLength(), and printDistance() as many times as needed • Call calcArea() • Format the output so real numbers are printed in fixed format • Print the area of the triangle to the terminal. Note: The coordinates of vertices must be printed with a single decimal digit while the distances and the area must be printed with 2 decimal digits. Unless specified otherwise all the values are double precision real numbers. You can declare all the variables that you need. All the functions must be declared below main().
2) You can use ONLY the material learned and used in the lectures/Pas/lab assignments.
3) Your program must pass all my tests.
4) You must choose the most appropriate type of function and type of parameters for each of the functions described above
Must be in C++ please insert into code below
#include <iostream> // to use cin and cout
#include <typeinfo> // to be able to use operator typeid
// Include here the libraries that your program needs to compile
using namespace std;
// Ignore this; it's a little function used for making tests
inline void _test(const char* expression, const char* file, int line)
{
cerr << "test(" << expression << ") failed in file " << file;
cerr << ", line " << line << "." << endl << endl;
}
// This goes along with the above function...don't worry about it
#define test(EXPRESSION) ((EXPRESSION) ? (void)0 : _test(#EXPRESSION, __FILE__, __LINE__))
// Insert here the prototypes of the functions
int main()
{
system("pause");
// Do NOT remove or modify the following statements
cout << endl << "Testing your solution" << endl << endl;
test(fabs(round_off(calcLength(1.0, 1.2, 6.0, 6.1), 2) - 7.00) < .001); // Incorrect calculation of length
test(fabs(round_off(calcLength(6.0, 6.1, 3.2, 6.5), 2) - 2.83) < .001); // Incorrect calculation of length
test(fabs(round_off(calcLength(1.0, 1.2, 3.2, 6.5), 2) - 5.74) < .001); // Incorrect calculation of length
test(fabs(calcArea(calcLength(1.0, 1.2, 6.0, 6.1), calcLength(6.0, 6.1, 3.2, 6.5), calcLength(1.0, 1.2, 3.2, 6.5)) - 7.86) < .001); // Incorrect calculation of area
test(fabs(round_off(calcLength(1.2, 1.2, 7.6, 4.3), 2) - 7.11) < .001); // Incorrect calculation of length
test(fabs(round_off(calcLength(7.6, 4.3, 9.2, 3.4), 2) - 1.84) < .001); // Incorrect calculation of length
test(fabs(round_off(calcLength(1.2, 1.2, 9.2, 3.4), 2) - 8.30) < .001); // Incorrect calculation of length
test(fabs(calcArea(calcLength(1.2, 1.2, 7.6, 4.3), calcLength(7.6, 4.3, 9.2, 3.4), calcLength(1.2, 1.2, 9.2, 3.4)) - 5.36) < .001); // Incorrect calculation of area
test(fabs(round_off(calcLength(1.0, 1.0, 5.0, 5.0), 2) - 5.66) < .001); // Incorrect calculation of length
test(fabs(round_off(calcLength(5.0, 5.0, 9.0, 9.0), 2) - 5.66) < .001); // Incorrect calculation of length
test(fabs(round_off(calcLength(1.0, 1.0, 9.0, 9.0), 2) - 11.31) < .001); // Incorrect calculation of length
test(fabs(calcArea(calcLength(1.0, 1.0, 5.0, 5.0), calcLength(5.0, 5.0, 9.0, 9.0), calcLength(1.0, 1.0, 9.0, 9.0)) - 0.00) < .001); // Incorrect calculation of area
system("pause");
return 0;
}
//************************ Function definition *************************
// Read the handout carefully for detailed description of the functions that you have to implement
In: Computer Science
| PRIMARY REASON FOR NOT RETURNING | Golden Palm | Palm Royal | Palm Princess |
| price | 32 | 27 | 37 |
| location | 39 | 13 | 18 |
| Accommodations | 25 | 15 | 14 |
| Other | 23 | 8 | 8 |
I wanted to know what Kind of Anova do I run for those two tables. and how my anova would look like.
| Choose hotel Again | Golden Palm | Palm Royal | Palm Princess |
| yes | 133 | 201 | 179 |
| No | 32 | 89 | 66 |
In: Statistics and Probability
| PRIMARY REASON FOR NOT RETURNING | Golden Palm | Palm Royal | Palm Princess |
| price | 32 | 27 | 37 |
| location | 39 | 13 | 18 |
| Accommodations | 25 | 15 | 14 |
| Other | 23 | 8 | 8 |
I wanted to know what Kind of Anova do I run for those two tables. and how my anova would look like.
| Choose hotel Again | Golden Palm | Palm Royal | Palm Princess |
| yes | 133 | 201 | 179 |
| No | 32 | 89 | 66 |
In: Statistics and Probability
QUESTION NO 1
A)For the following given research title come up with the research hypothetical model, describe specifically about dependent and independent variables? (100 Words)
• The impact of sleep deprivation on stress at workplace and employee performance
. • The impact of video games on child behavior and their mental health.
• The impact of flexible environment on employee motivation and his performance at workplace.
•Consumer Buying Behavior in Shopping Stores: Impact of Store Dimensions and Demographics
. • Effects of Coaching and Mentoring On Employee Performance in The Uk Hotel Industry.
In: Economics
Many hotel chains that offer free Wi-Fi service to their customers have experienced issues regarding demand for Internet bandwidth and costs. Marriott International would like to test the hypothesis that the proportion of customers that are carrying two Wi-Fi devices is equal to 0.40. A random sample of 200 Marriott customers found that 82 have two Wi-Fi devices. Marriott International would like to set the level of significance equal to 0.05.
Determine the level of significance
Determine the rejection region
In: Statistics and Probability
Q. In how many ways can seven businessmen attending a convention be assigned to one triple and two double hotel rooms?
Q. On a Friday morning, the pro shop of a tennis club has 10 identical cans of tennis balls. If they are all sold by Sunday night and we are interested only in how many were sold on each day, in how many different ways could the cans of tennis balls has been sold on Friday, Saturday, and Sunday?
In: Statistics and Probability