Write a C program that outputs a formatted header line and creates 10 children processes each of which displays a line of the output as shown below. Notice the values of Child no and x, they have to be the same as shown here while the processes PIDs values are based on the what your system assigns to these processes.
Child
PID
PPID X
0
13654 13653 5
1
13655 13653 10
2
13656 13653 15
3
13657 13653 20
4
13658 13653 25
5
13659 13653 30
6 13660
13653 35
7
13661 13653 40
8
13662 13653 45
9
13663 13653 50
In: Computer Science
|
Rate of Return |
|||||
| Scenario | Probability | Stocks | Bonds | ||
| Recession | .40 | −4 | % | +19 | % |
| Normal economy | .50 | +20 | +9 | ||
| Boom | .10 | +26 | +8 | ||
| Consider a portfolio with weights of .7 in stocks and .3 in bonds. |
| a. |
What is the rate of return on the portfolio in each scenario? (Do not round intermediate calculations. Round your answers to 1 decimal place.) |
| Scenario | Rate of Return |
| Recession | % |
| Normal economy | % |
| Boom | % |
| b. |
What are the expected rate of return and standard deviation of the portfolio? (Do not round intermediate calculations. Round your answers to 2 decimal places.) |
| Expected rate of return | % |
| Standard deviation | % |
| c. | Which investment would you prefer? |
|
In: Finance
Add each element in origList with the corresponding value in
offsetAmount. Print each sum followed by a space.
Ex: If origList = {4, 5, 10, 12} and offsetAmount = {2, 4, 7, 3},
print:
6 9 17 15
import java.util.Scanner;
public class VectorElementOperations {
public static void main (String [] args) {
final int NUM_VALS = 4;
int[] origList = new int[NUM_VALS];
int[] offsetAmount = new int[NUM_VALS];
int i;
origList[0] = 20;
origList[1] = 30;
origList[2] = 40;
origList[3] = 50;
offsetAmount[0] = 4;
offsetAmount[1] = 6;
offsetAmount[2] = 2;
offsetAmount[3] = 8;
*insert code*
System.out.println("");
}
}
In: Computer Science
***Please DRAW CASH FLOW diagram***
A small commercial building contractor purchased a used crane 2 years ago for $60,000. Its operating cost was $2,500 in month one, $2,550 in month two, and amounts increasing by $50 per month through the end of year two (now). If the crane was sold for $48,000 now, what was its equivalent monthly cost at an interest rate of 1% per month?
In: Finance
Which of the following cost functions exhibits economies of scope when three (3) units of good one and two (2) units of good two are produced?
1) C = 50 − 5Q1Q2 + 0.5Q12 + Q22.
2) C = 15 + 5Q1Q2 + 2Q1 + 4Q2.
3)C = 5 + Q1Q2 + Q12Q22.
4)C = 10 + 4Q1Q2 + Q12 + Q22.
Please tell me the # of the answer.and explain thanks.
In: Economics
Please open “LIFE” data. The data is related to results of a survey that asks people to grade themselves in terms of Conscientiousness and Life satisfaction. Conscientiousness grading scale is from 1 to 10 whereas Life satisfaction criteria was graded from 1 to 80. And each person, surveyed grade himself by own for both criteria. Gender information is included in data as well. The objective of survey is whether life satisfaction can be explained with conscientiousness and gender. So, the dependent variable is defined as life satisfaction and the independent variables are gender and conscientiousness. Please do the following steps:
1) Test if conscientiousness has no significant effect on life satisfaction at alpha=0.05 significance level.
2) Give a complete interpretation of the slope coefficient of conscientiousness.
3) Find Adjusted R^2 and give a complete interpretation.
4) Create a plot that shows how residuals vary by predicted values (ZRESID vs ZPREDIC)
LIFE DATA
| Conscientiousness | Life Satisfaction | Gender(1 Female, 0 Male) | |
| 6 | 45 | 0 | |
| 5 | 30 | 1 | |
| 2 | 38 | 1 | |
| 1 | 50 | 0 | |
| 2 | 30 | 1 | |
| 5 | 34 | 1 | |
| 2 | 40 | 0 | |
| 7 | 57 | 0 | |
| 2 | 35 | 0 | |
| 7 | 51 | 0 | |
| 5 | 30 | 0 | |
| 6 | 39 | 1 | |
| 2 | 40 | 1 | |
| 5 | 30 | 0 | |
| 3 | 10 | 0 | |
| 2 | 40 | 1 | |
| 1 | 45 | 0 | |
| 3 | 14 | 0 | |
| 7 | 54 | 1 | |
| 1 | 50 | 1 | |
| 5 | 31 | 0 | |
| 6 | 43 | 1 | |
| 5 | 27 | 1 | |
| 7 | 51 | 0 | |
| 7 | 50 | 1 | |
| 7 | 51 | 0 | |
| 4 | 10 | 0 | |
| 5 | 34 | 0 | |
| 5 | 28 | 1 | |
| 2 | 35 | 0 | |
In: Statistics and Probability
What is the probability of getting a total of 7 or 11 when two dies are rolled
In: Statistics and Probability
7) There are only two securities (A and B, no risk free asset) in the market. Expected returns and standard deviations are as follows:
|
Security |
Expected return |
standard Deviation |
|
Stock A |
25% |
20% |
|
Stock B |
15% |
25% |
−0.8.
In: Finance
This problem is to be done in R.
Consider two populations A = {3, 5, 7, 9, 10, 16} and B = {8, 10, 11, 15, 18, 25, 28}.
a) Using R, draw random samples (without replacement) of size 3 from each population, and simulate the sampling distribution of the sum of their maximum. Describe the distribution.
b) Use your simulation to estimate the probability that the sum of the maximums is less than 20.
c) Draw random samples of size 3 from each population, and find the maximum of the union of these two sets. Simulate the sampling distribution of the maximum of this union. Compare the distribution to part (a). In R, max(union(a, b)) returns the maximum of the union of sets a and b.
d) Use simulation to find the probability that the maximum of the union is less than 20.
In: Statistics and Probability
Suppose that there are two schools in a region. 7% of students will move from school A to school B at the end of each year, while 11% of students will move from school B to school A. Suppose that initially 30% of students attend school A and 70% attend school B.
a) Determine the transition matrix and the initial probability vector which can be used to represent this information.
b) Find the percentage of students attending each school at the end of 3 years ( give answers to four decimal places)
In: Math