What is a z-test, when is it used, and what does it tell us?
In: Math
Fill in the following table to show how the given integers are represented, assuming 16 bits are used to store values and the machine uses 2’s complement notation. (This is not necessarily MARIE.) Give values in the last two columns in hexadecimal as they would appear memory assuming the byte at address a is on the left and the byte at the address a+1 is on the right.
2-Byte Big |
2-Byte Little |
||||
Integer |
Binary |
Hex |
Endian (hex) |
Endian (hex) |
|
Example |
-540 |
1111 1101 1110 0100 |
FDE4 |
FD E4 |
E4 FD |
a) |
12 |
||||
b) |
-12 |
||||
c) |
128 |
||||
d) |
-128 |
||||
e) |
65,000 |
||||
f) |
-65,000 |
||||
byte a | byte a+1 |
byte a | byte a+1 |
In: Computer Science
You need to determine the kind of class a particular variable is. How can you determine this? How can you determine its identifier?
Explain the operations performed and their order in evaluating the following expression, and give the result of that evaluation. -- var = -8.0 + 3.0 * 4.5 – 2.0 / 33.0
Write a statement that assigns the integer portion of a floating point variable named wraps to wholewraps as a floating point variable.
Show by a Python code example how to load the Python math library and then determine the square root of the variable gross.
In: Computer Science
C++ programming question
theNumbers.txt
144 + 26
3 * 18
88 / 4
22 – 8
16 / 2
20 * 20
-Your Program should read in all items, compute the answer to each expression (any decimals should be rounded to the nearest tenth), and output the answers to an output file of the user's choosing. The formatting of the output is that there is a set width of 10 characters for each answer, left aligned, with a new line character every 3 answers. A sample “answers.txt” is provided below. (not drawn to scale)
answers.txt
17000 54 22
14 8 400
-You may assume that the name of the text file that will be outputted to is always 20 characters or less.
-You may assume that there are only 4 possible operations ( + - * /), add, subtract, multiply, and decimal division, and that no other characters will show up as the middle symbol.
- Appropriate error messages should be displayed if the file cannot be opened.
- Extra Credit: The answers in the output file ONLY show a decimal if the answer is not a whole number answer.
In: Computer Science
A criminologist conducted a survey to determine whether the incidence of certain types of crime varied from one district of a large city to another. The particular crimes of interest were assault, burglary, larceny, and homicide. The following table shows the number of crimes committed in four districts of the city during the past year.
Type of Crime
District |
Assault |
Burglary |
Larceny |
Homicide |
Total |
1 |
164 |
120 |
453 |
20 |
|
2 |
312 |
198 |
998 |
27 |
|
3 |
260 |
195 |
460 |
12 |
|
4 |
282 |
177 |
392 |
21 |
|
Total |
Can we conclude from the data at the 0.01 significance level that the occurrence of these types of crime is dependent on the city district?
Can we conclude from the data at the 0.01 significance level that the occurrence of these types of crime is dependent on the city district?
Note: The confidence level is equivalent to 1 – α. So, if your significance
level is 0.05, the corresponding confidence level is 95%.
Note: You can use the functions qchisq() in R to help you in solving the following.
Why we are using qchisq() function in R?
The qchisq() function in R allows us to specify a desired area in a tail and the number of degrees of freedom. From that information, qchisq() computes the required x-value to get the specified area in the specified tail with the specified number of degrees of freedom.
Note: Round the numbers to two decimals.
E |
Assault |
Burglary |
Larceny |
Homicide |
Total |
1 |
|||||
2 |
|||||
3 |
|||||
4 |
|||||
Total |
C. (2 points) Write your conclusion using the rejection region method “critical value method” include both statistical and related to the topic of the question (practical) interpretation use the function qchisq() in R
In: Math
Political Thought
For this discussion, please identify and discuss two of the major differences between Marxism and Capitalism. In your discussion, provide specific examples of how each are implemented or used today (cite your sources as necessary).
In: Psychology
Question 41: From the information given below about Red Diamond Almond factory, calculate the following:
Red Diamond Almond factory makes special almond butter supplied to local stores. It costs $175 every time the factory makes almond butter to set up the production process. The demand at the local stores for this almond butter is 205lbs per day. The factory can make 350lbs of almond butter per day. Annual cost: It costs $12 annually (365 days) to carry a pound of almond butter in a storage area that is refrigerated.
In: Operations Management
Using python, please complete these 4 exercises. Please limit your code to these skills:
For loop
While loop
Input function
F strings
Tuples
Lists
Nested ifs
Elias
Exercise 1
Using the following list, do the following:
[15, 70, 15, 38, 49, 98, 62, 89, 2, 21, 40, 74, 36, 36, 65, 1, 55, 16, 24, 56]
Exercise 2 (1 Point):
Using the following list, do the following:
1. Iterate through each element in the list
2. Print out whether the element is positive or negative or zero on a new line for each element.
[-2, 1, -2, 7, -8, -5, 5, 10, -6, 7]
Exercise 3 (2 Points):
Create a new list using the range function, appending the values from the range function's output into the list.
The range function must:
Hint: Use either a for loop or a list comprehension
Exercise 4 (6 Points):
In this exercise, you will be required to do the following:
Take the following phrase: The only thing we have to fear is fear itself
So, the end result should be:
Hetay onlyway hingtay eway avehay otay earfay isway earfay itselfway
In: Computer Science
Briefly write about your thoughts about Freedom of Speech on the Internet.
In: Computer Science
Predict the order of reactivity for the following monomers in anionic polymerization for the following monomers a) styrene b) methyl methacrylate c) acrylonitrile d) cyanoacrylate?
In: Chemistry
Can you think of a way that Excel can be used unethically and give an example?
Your answer must be a minimum of 2 paragraphs, no spelling errors, and complete sentences.
In: Computer Science
Over the past couple of weeks, there has been tremendous volatility in the global equity markets. Assume that you own an investment portfolio valued at $250,000 on January 1, 2020. What could you have done to protect the value of your portfolio from these market conditions? What type of stock orders or derivatives would you have used and why? Please explain in detail.
In: Finance
Now that GlaxoSmithKline has decided not to pay its salespeople based on number of prescriptions written, how do you propose they motivate their salespeople? What motivational approaches do you recommend and why do you think they are appropriate?
In: Operations Management
Which of the case studies that you read (Walmart, Target or 5 Big Data Industries) caught your attention and why? Before reading the articles, did you think about data being used in the manner that it is? Name one other organization that may be using data warehousing and data mining techniques and explain how it is being used. Or explain how after years of collecting data how the data in the Academic Database that was implemented in Modules 6 and 7 can be useful to the academic institution? Explain your answer in 100 to 150.
In: Computer Science
In our discussion of Newell's article on privacy we emphasized the types of privacy she listed (such as solitude). What types of privacy were mentioned in the article? Define each and explain how each is related to the concepts of choice and control. How do Evans and Cohen define stress? According to Evans and Cohen's article on stress, what effect would possessing these different types of privacy have on our experience of stress? Justify your answer.
In: Psychology