For your analysis of this module's material, think about the growing capabilities of technology to connect people and the potential opportunities and challenges of the increasing connectivity throughout the world. What is your outlook on the importance of the Internet, IoT (the Internet of Things) and other connectivity technology? Do you agree with Gilder's concept of the "Telecosm" (see module Overview)? In your discussion share an example of at least one benefit and one challenge (that weren't already covered in the module) of the continued development of global connectivity.
In: Computer Science
1. Write a function named ”ThreeDicesAdd” to perform the
following ”experiment” 1000 times: roll 3
six-sided dice and add their values. Put the outcomes in a list
called addDiceList. So addDiceList should
have length 1000, and each of the 1000 elements should be an
integer from 3 to 18. Plot the histogram of
the outcomes.
2. For the same experiment as in question 1, write a function named
”ThreeDicesAdd2” to increase the
experiment times (N) and see how the histogram of the outcomes
changes. For each N, you will have one
histogram plot. Output all plots as a GIF file. (Choose N= 1000 :
10,000 : 1,000,000). matlab question
In: Computer Science
4 visa
5 mastercard
34 and 37 amex
30, 36, 38, 39 diners
60, 64, 65 discover
In: Computer Science
Case Study Analysis on Karen Carpenter (eating disorder - anorexia nervosa).
Provide a detailed and long answer with reliable sources.
In: Psychology
movie:A girl walks home alone at night In 250 words how might you interpret the film's ending ? What epiphany causes Arash to leave the car,and what causes him to return ? If the film were to continue, what do you think would happen to him.
link about movie:https://en.wikipedia.org/wiki/A_Girl_Walks_Home_Alone_at_Night
In: Psychology
A Company is planning to undertake a project requiring initial investment of $50 million and is expected to generate $10 million in Year 1, $13 million in Year 2, $16 million in year 3, $19 million in Year 4 and $22 million in Year 5.
In: Economics
The following code must be written in Matlab
I want to print the following in Matlab (x1,x2, x3) = (0.33333, 0.33333, 0.33333) . The whole thing should be on the same line.
I need to use fprintf and write out the coordinates with 5 decimal places of variable x = (0.33333, 0.33333, 0.33333)
Thanks!
In: Computer Science
I WANT TO IMPLEMENT THIS IN JAVA PLEASE I want to create a small user input system for a university student, where they put the season and year of when they started their uni course. For example the system will ask "What year did you start your degree?", the user will input "Autumn/2022" as a string. Now from a string format as shown, it should take that user input and calculate for example +2 or +3 years to the date. Also it needs to be able to change from Autumn, to another season depending on the amount of years it takes. So if the course will take 3 years, the student will finish "Summer/2025". How can I implement this?
In: Computer Science
What should an HR Manager do when extending a job offer to a candidate?
In: Operations Management
write a short paper summarizing an important employment law that affects human resources. You will:
In: Operations Management
I made the command cp code in c language. But when I copy a file, file permissions are not copied equally. So I want to copy the file authority as well. What should I do?
#include
#include
#include
#include
#include
#include
#include
#include
#include
int main(int argc, char *argv[])
{
struct stat st;
char ch;
int src, dst;
if(argc != 3)
{
printf("argument error \n");
printf("usage: ./a.out src dest \n");
exit(0);
}
src = open(argv[1], O_RDONLY);
if(src == -1){
perror("open source");
exit(errno);
}
dst = open(argv[2], O_WRONLY | O_CREAT|O_TRUNC,
st.st_mode&(S_IRWXU | S_IRWXG | S_IRWXO));
if(dst == -1){
perror("open source");
exit(errno);
}
while(read(src, &ch,1))
write(dst,&ch,1);
close(src);
close(dst);
return 0;
}
In: Computer Science
For this assignment, implement a simple stack calculator which can compute an infix expression. It should take in a string containing an infix expression, compute the result, and print it out. It should handle operators +, -, *, / and parenthesis.
Your program must have two main steps -- first convert the expression to postfix, and then compute the result using the algorithms discussed in class and textbook. These algorithms require that you use a stack. You must implement your own stack, you may not use a library that implements a stack. No credit will be given if you don't implement your own stack.
Although your textbook contains implementations of a stack, I encourage you to try and implement your own stack, using the textbook as a reference if you need it. You can keep your stack simple if you wish -- e.g. it doesn’t need to be templated, it can just hold a simple data type like char. Additionally, it doesn’t need to handle error conditions because we are guaranteed a string containing a syntactically correct infix expression. You may implement either an array-based stack or a link-based stack.
To keep things simple, you may make the following assumptions:
- there are no spaces or other whitespace in the string
- all the operands are single digits
- the result of every operation is a single digit. For example, 2+3 is allowed because the result is 5. 5*3 is not allowed because the result is 15, which is two digits. 5+3+4 is not allowed because even though the first operation is 8, a single digit, the result of the second operation is 12, two digits. 5+3-4 is allowed because the result of the first operation is 8, and the result of the second operation is 4
- any string entered contains a valid, syntactically correct infix expression with balanced parenthesis (if any)
Conversion between int and char
The expression contains both char and int data, because each operator is a char and each operand is a digit. The easiest way to handle this is to implement a stack which supports char data. Since we know all our operands are single digits, we can simply push the character representing the digit onto the stack. Note this character will be the ASCII value of the character, not the integer value! As an example, the character '7' is ASCII value 55, '8' is 56, etc. If you need the actual integer value of the character, in this case 7, there is a convenient way to determine it. You can subtract the ASCII value of zero, '0' from the character. For example,, the following code will store 7 in i:
char c = '7';
int i = c - '0';
To get the character back, you can add '0' to an integer.
Extra Credit
For up to 10% extra credit, modify your program to remove the assumption that the string contains a valid, syntactically correct infix expression. It should compute the value if the string is valid, and gracefully handle an invalid string.
In: Computer Science
Charles (age 38) has just died. He has been credited with the last 30 consecutive credits of Social Security coverage in the last 30 quarters since he left school and began full-time employment. He had never worked before leaving school. Which of the following persons are eligible to receive Social Security survivor benefits as a result of Charles’s death?
1. Charles’s child, Bill, age 16
2. Charles’s child, Dawn, age 19
3. Charles’s widow, Maggie, age 38
4. Charles’s dependent mother, Betty, age 60
Group of answer choices
1 only
1, 2 and 4
1 and 2
2, 3 and 4
In: Finance
In: Operations Management
While death maybe an unfortunate and inevitable occurrence in human life, the death of government policies was originally thought of as so or near impossible. Many researchers considered that termination can cause difficulties when trying to identify causal and predictable relationships. Possibly even more troublesome is the misunderstanding of what constitutes termination (Kinney, N, 2013).
However, the government of Malaysia have terminated several policies such as Teaching Science and Mathematics in English (PPSMI), Goods and Services Taxes (GST) and bend bridge project.
Based on the examples given above, do you agree with the author? Justify your answer
If you were hired as a public official and you were given instructions to terminate a program or a policy,
i) how would you proceed?
ii) would you apply the ‘big bang’ or the long whimper approach? Justify your answer?
In: Operations Management