What is the energy needed to cause an electron to undergo a transition from the n = 4 state to the n = 5 state in hydrogen?
In: Physics
We noted in an earlier practice exercise that at 25 celsius the decomposition position of N2O5(g) into NO2(g) follows first order kinetics with k= 3.4 x 10^-5 s^-1. How long will it take for a sample originally containing 2.0 atm of N2O5 to reach a partial pressure of 380 torr?
In: Chemistry
In: Operations Management
Using C language
0. (3pts.)
Using opendir() and readdir(), open the current directory and
output all filenames until there are no more. Include a main that
does this below.
1. (4pts.)
Parse the dirent struct to see if an entry is a directory or a
file. If it is a directory, prepend "./" to the filename before
printing it out. Include a main that does this below.
2. (3pts.)
Open a file handle to each file, use lseek to determine the file's
size in bytes and print out the file's size in bytes next to its
name. Include a main that does this below.
EX. (3pts.)
Add a color formatting element. Print out executable binaries in
bold red, regular files in light green, directories in light blue
and anything else in white. Be careful - changing the console
printout color is a durable operation that is global in scope, so
once you change the color, anything printed from anywhere in your
Process will be in in that color. It is a good practice to always
presume the color is incorrectly set before you print and to set it
to what you want before you print anywhere (especially in
informational or error outputs). You will also need to find a way
to determine if a file is executable or not
In: Computer Science
Java Assignment:
The layout of Farmer John's farm is quite peculiar, with a large circular road running around the perimeter of the main field on which his cows graze during the day. Every morning, the cows cross this road on their way towards the field, and every evening they all cross again as they leave the field and return to the barn.
As we know, cows are creatures of habit, and they each cross the road the same way every day. Each cow crosses into the field at a different point from where she crosses out of the field, and all of these crossing points are distinct from each-other. Farmer John owns exactly 26 cows, which he has lazily named A through Z (he is not sure what he will do if he ever acquires a 27th cow...), so there are precisely 52 crossing points around the road. Farmer John records these crossing points concisely by scanning around the circle clockwise, writing down the name of the cow for each crossing point, ultimately forming a string with 52 characters in which each letter of the alphabet appears exactly twice. He does not record which crossing points are entry points and which are exit points.
Looking at his map of crossing points, Farmer John is curious how many times various pairs of cows might cross paths during the day. He calls a pair of cows (a,b)(a,b) a "crossing" pair if cow aa's path from entry to exit must cross cow bb's path from entry to exit. Please help Farmer John count the total number of crossing pairs.
INPUT FORMAT (file circlecross.in):
The input consists of a single line containing a string of 52 upper-case characters. Each letter of the alphabet appears exactly twice.
OUTPUT FORMAT (file circlecross.out):
Please print the total number of crossing pairs.
SAMPLE INPUT:
ABCCABDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYYZZ
SAMPLE OUTPUT:
1
In this example, only cows A and B are a crossing pair.
In: Computer Science
- a) Show an example in where you can find paremeters of amodel using a data from a NI DAQ by ajusting it to a model. Using MatLab and “System Identification ToolBox”.
- Graph the model with exes results to find (a)
- Design a control model using MATLAB for proportional, proportional-integral and proportional-integral-derivative.
-Simulate the control design using matlab and simulink
In: Electrical Engineering
Gun Murders - Texas vs New York - Significance
Test
In 2011, New York had much stricter gun laws than Texas. For that
year, the proportion of gun murders in Texas was greater than in
New York. Here we test whether or not the proportion was
significantly greater in Texas. The table below
gives relevant information. Here, the p̂'s are population
proportions but you should treat them as sample proportions. The
standard error (SE) is given to save calculation time if
you are not using software.
Data Summary
| number of | total number | Proportion | |
| State | gun murders (x) | of murders (n) | p̂ = (x/n) |
| Texas | 689 | 1079 | 0.63855 |
| New York | 455 | 784 | 0.58036 |
Standard Error (SE) = 0.02285
The Test: Test the claim that the proportion of gun murders was significantly greater in Texas than New York in 2011. Use a 0.01 significance level.
(a) Letting p̂1 be the proportion of gun murders in Texas and p̂2 be the proportion from New York, calculate the test statistic using software or the formulaz =
| (p̂1 − p̂2) − δp |
| SE |
where δp is the hypothesized
difference in proportions from the null hypothesis and the standard
error (SE) is given with the data. Round your
answer to 2 decimal places.
z =
To account for hand calculations -vs- software, your answer
must be within 0.01 of the true answer.
(b) Use software or the z-table to get the P-value of the test
statistic. Round to 4 decimal places.
P-value =
(c) What is the conclusion regarding the null hypothesis?
reject H0
fail to reject H0
(d) Choose the appropriate concluding statement.
The data supports the claim that the proportion of gun murders was significantly greater in Texas than New York.
While the proportion of gun murders in Texas was greater than New York, the difference was not great enough to be considered significant.
We have proven that the stricter gun laws in New York actually decreased the proportion of gun murders below the rate in Texas.
We have proven there was no difference in the proportion of gun murders between Texas and New York.
In: Math
Write two Java programs and verify that they work.
Program 1 should:
Program 2 should do the same as program 1, except program 2 goes from UTF-16 to UTF-8
Note: we are supposed to write two java programs, the first program should read utf8 encoded text file and the second program should write utf16 text file. So, if you can give me the java code that can read and write utf8 and utf16 text files respectively , I would be happy. Thank you.
In: Computer Science
Linux project deployment Script
Create a script “setup.sh” to automate the deployment of a flask application. The script must install all software dependencies such as:
Python3
Pip3
Git
Use github to clone this repository.
Install the dependencies given in requirements.txt
Start the server by executing the following command “gunicorn wsgi:app”
requirements.txt
Click==7.0
Flask==1.0.2
Flask-Cors==3.0.7
Flask-JWT==0.3.2
Flask-SQLAlchemy==2.3.2
gunicorn==19.9.0
itsdangerous==1.1.0
Jinja2>=2.10.1
MarkupSafe==1.1.1
PyJWT==1.4.2
six==1.12.0
SQLAlchemy==1.3.1
werkzeug>=0.15.3
In: Computer Science
You have developed the overall Virtual Private Cloud (VPC) design for the cloud initiative for Get-Sole Shoes. Now it is time to examine the infrastructure that would be used within the VPC.
From this week’s reading, review the use of Elastic Compute Cloud (EC2) within a VPC for the servers that will be needed for the company.
Respond to the following in a minimum of 175 words:
In: Computer Science
1)If an algorithm performs N steps then we say it is O(N) ?
2) An example of something that is O(N) is(chose one)
A)printing to the screen.B)executing a conditional statement. C) initializing an integer variable. D) looping through an array of size N.
3)Suppose we found the run time of an algorithm was O(2N3 + 4N2 + 5N + 3). What is the Big O notation for the algorithm?
A) O(5N), B) O(4N^2), C) O(N^3), D) O(2N^3)
In: Computer Science
Think of one knowledge area and one skill that you would like to improve on. Report what those are.
1.) Develop a training program for either the knowledge area or the skill. You do not need to do both.
2.) Develop / set the criteria. What criteria will you examine?
3.) Choose a study design
4.) Choose a criteria measure.
5.) How will you measure that criteria? Explain how your measure assesses the criteria.
In: Psychology
In: Psychology
Multiplication of Matrix is one of the tasks that takes time to compute. Note that the time complexity of multiplying two square matrix is o(n^3) using the nested loops method, and Strassen algorithm improves it to O(n^2.8074). Multi-threading can be used to further enhance this.
Using the matrices below, write
(a) a serial program (the normal nested loops method) to perform the multiplication.
(b) a multithreaded program using pthreads to perform this computation.
(c) compare the execution times of (a) and (b) in a table.
In: Computer Science
|
Sunnry Day Manufacturing Company has just started operation on September 1, 2020. The following are the transactions for the month of September.
|
||||||||||||||||||||||||||||||||||||
|
2. Prepare summary of accounts. |
| 3. Prepare the cost of each job. |
In: Accounting