Health insurers are beginning to offer telemedicine services online that replace the common office visit. Wellpoint provides a video service that allows subscribers to connect with a physician online and receive prescribed treatments. Wellpoint claims that users of its LiveHealth Online service saved a significant amount of money on a typical visit. The data shown below ($), for a sample of 20 online doctor visits, are consistent with the savings per visit reported by Wellpoint.
| 93 | 33 | 40 |
| 104 | 84 | 55 |
| 56 | 48 | 37 |
| 76 | 49 | 94 |
| 94 | 74 | 74 |
| 79 | 93 | 99 |
| 54 | 81 |
Assuming the population is roughly symmetric, construct a 95% confidence interval for the mean savings for a televisit to the doctor as opposed to an office visit (to 2 decimals).
95% confidence interval: $ to $ per visit
In: Finance
For a discussion forum post that provides one example for each of the four adjusting entries you learned. For instance, you are to post a scenario that would represent an accrued revenue adjusting entry. You will then complete a scenario for the remaining three adjusting entries: accrued expenses, prepaid assets (deferred expenses), and deferred revenues.
In: Accounting
In: Economics
It is a general belief that in the United States there is a strong relationship between education and smoking: well-educated people are less likely to smoke. Does a similar relationship hold in France? To find out, researchers recorded the level of education and status of a random sample 459 French men aged 20 to 60. The two-way table below displays the data.
|
Smoking Status |
||||
|
Education |
Nonsmoker |
Former |
Moderate |
Heavy |
|
Primary school Secondary school University |
56 37 53 |
54 43 28 |
41 27 36 |
36 32 16 |
a. State the test you plan to use and determine whether the
conditions for test are satisfied.
b. State the hypotheses for this test.
c. At alpha = 0.05, determine whether there is a significant relationship between smoking status and educational level.
In: Statistics and Probability
Answer the following:
25. Intelligence tests can be utilized to identify vocational and educational opportunities. T F
26. What are drive reduction impulses? ___________________________________________________________________________________________
___________________________________________________________________________________________
27. Human behavior is primarily instinctual. T F
28. What are gut reactions? _________________________________________________________
___________________________________________________________________________________________
29. Explain the stages of Maslow’s theory of hierarchy:
___________________________________________________________________________________________
___________________________________________________________________________________________
___________________________________________________________________________________________
___________________________________________________________________________________________
___________________________________________________________________________________________
30. Men on the average earn less than women on the job. T F
31. The degree of aggressive behavior between men and women is identical.
T F
32. There are not any general differences between men and women regarding IQ scores. T F
33. A mother who drinks alcohol regularly may possibly give birth to a child with cognitive issues. T F
34. One in 10 people in the United states will be infected with a STI at some point or another. T F
In: Psychology
Snow Geese lay 4 eggs in a nest. A field biologist wanted to know if there is a relationship between the order in which the eggs are laid and the sex of each egg. Please see the table below.
| Egg order -> | 1 | 2 | 3 | 4 | Total |
| Male | 17 | 16 | 7 | 5 | 45 |
| Female | 10 | 9 | 17 | 14 | 50 |
| Total | 27 | 25 | 24 | 19 | 95 |
Is there a relationship between sex and laying order in snow geese?
1. What are the null and alternate hypotheses for the chi-square goodness of fit test?
2. What are the expected counts under the null hypothesis?
3. Use Minitab to determine a chi-square test statistic and P value
4. Do you accept or reject the null?
In: Statistics and Probability
1. Generally, the _______ the uncertainty about an asset's future benefits, the _______ the discount rate investors will apply when discounting those benefits to the present.
a. greater; lower
b. smaller; higher
c. greater; more uncertain will be
d. greater; higher
2. When valuing asset adjustments for risk are made by adjusting:
a. the asset's required return
b. the asset's expected cash flows
c. the number of time periods
d. the asset's terminal value
3. The internal rate of return (IRR) on a project:
a. is the compound annual return on the project, given its up-front costs and subsequent cash
flows
b. is the discount rate that causes the NPV of the project to equal initial outlay
c. is analogous to a bond's yield to maturity (YTM)
d. all of the above
4. The primary goal of a publicly-owned corporation should be to:
a. maximize total corporate revenue
b. maximize shareholder wealth
c. minimize the chance of losses
d. maximize earnings per share
5. On December 31, 2005, XYZ had a stock price of $50. Calculate the return for XYZ Corp. over th
previous year if the stock paid a dividend of $3 today (December 31, 2006), and the current stock
$58.
a. 22.00%
b. 18.04%
c. 21.78%
d. 19.58%
6. _______ activities allow corporations to raise capital by selling stock to investors.
a. NYSE
b. Secondary market
c. Primary market
d. Money market
In: Operations Management
Stacks & Queues
C++
You are given a stack of N integers such that the first element represents the top of the stack and the last element represents the bottom of the stack. You need to pop at least one element from the stack. At any one moment, you can convert stack into a queue. The bottom of the stack represents the front of the queue. You cannot convert the queue back into a stack. Your task is to remove exactly K elements such that the sum of the K removed elements is maximized.
Input format :
The first line consists of two space-separated integers N and K.
The second line consists of N space-separated integers denoting the
elements of the stack.
Output format : Print the maximum possible sum of the K removed elements
Sample Input:
10 5 10 9 1 2 3 4 5 6 7 8
Sample Output:
40
Explanation Pop two elements from the stack. i.e {10,9} Then
convert the stack into queue and remove first three elements from
the queue. i.e {8,7,6}. The maximum possible sum is 10+9+8+7+6 =
40
This is my code so far
#include <iostream>
#include <deque>
std::deque<int> stacque;
using namespace std;
void printDeque(deque<int> vector) {
for(int i=0;(unsigned)i<vector.size();i++) {
cout<<vector.at(i)<<" ";
}
cout<<endl;
}
int main() {
int n,q;
cin>>n;
cin>>q;
for(int i=0;i<n;i++){
int x;
cin>>x;
stacque.push_back(x);
}
/*cout<<n<<" "<<q<<endl;
printDeque(stacque);*/
int sum=0;
for(int i=0;i<q;i++){
if(stacque.front()>stacque.back()){
int a;
a=stacque.front();
sum+=a;
stacque.pop_front();
}
else {
int b;
b=stacque.back();
sum+=b;
stacque.pop_back();
}
}
cout<<sum<<endl;
return 0;
}
my output for the test is nearly correct but its only slightly
off
input test 1
420 135
46 1 19 60 86 64 5 98 4 85 93 25 82 56 83 31 92 23 77 36 17 63 31
61 92 31 86 82 91 84 26 54 27 61 95 87 53 50 72 30 73 49 35 4 21 36
73 50 97 70 95 7 81 92 76 33 77 48 50 100 80 22 35 67 40 56 28 31
31 60 8 10 31 76 99 69 56 65 2 79 15 5 68 82 55 60 16 95 44 34 2 54
71 88 100 100 76 16 49 46 69 90 41 11 33 45 8 58 37 40 9 65 50 79
15 54 6 98 11 56 77 20 89 22 18 24 33 12 52 33 31 31 71 1 26 68 62
53 14 5 70 79 18 12 71 93 60 37 23 86 8 31 73 71 76 70 51 88 55 68
59 100 45 49 16 35 61 78 29 80 74 19 56 72 92 49 17 86 17 48 58 68
57 100 31 87 38 11 63 7 48 59 73 69 84 58 77 74 1 4 55 53 52 96 99
74 77 8 44 40 55 50 99 28 13 40 83 43 68 97 53 81 53 49 86 68 87 92
22 65 26 2 14 62 51 76 67 1 20 99 60 13 72 69 17 55 92 94 1 28 69
72 71 42 31 79 83 100 71 56 91 40 20 33 1 12 96 27 95 29 57 40 70
57 8 80 93 4 30 31 82 53 98 67 75 6 60 49 23 54 52 67 84 71 67 85
92 58 42 80 40 87 60 55 17 73 90 3 55 2 63 86 53 60 71 16 34 46 1
49 10 82 4 67 64 3 91 20 56 98 22 45 14 85 93 3 54 77 31 49 67 15
32 31 18 7 95 34 12 96 99 30 88 91 42 85 72 74 12 4 40 97 79 65 29
29 48 76 35 73 66 39 9 86 7 99 22 46 66 48 21 30 52 69 22 26 16 52
48 62 55 97 60 86 86 59 68 94 21 51 90 32 32 94 12 96 29 73 4 98 13
80 72 67 18 68 15 26 79 38
Your output
7033
Your output does not contain
7510
input test 2
Input
490 231
68 51 46 65 74 64 38 94 96 65 39 9 26 86 99 93 37 65 11 86 53 45 40
56 43 32 98 70 57 89 36 38 51 62 23 86 18 55 30 37 52 21 59 60 15
78 84 23 98 44 78 68 94 49 59 43 63 91 71 9 75 89 76 23 100 59 18
97 89 2 25 33 59 48 84 50 78 71 84 3 96 60 7 38 11 16 99 41 11 91
65 8 10 29 14 88 7 70 80 56 38 54 16 42 1 70 1 96 97 62 82 42 17 84
96 73 77 78 85 82 27 72 33 57 38 57 95 76 59 32 26 76 9 22 19 88 14
43 46 13 20 7 7 62 58 76 54 92 35 78 17 86 5 86 27 44 75 76 15 21
34 15 14 83 62 95 40 42 45 16 10 38 77 1 90 72 27 72 22 75 93 49 82
52 95 6 76 55 66 66 53 85 70 61 38 64 22 33 58 50 63 39 35 90 54 53
45 71 95 93 78 51 47 94 81 6 26 22 18 1 82 77 86 49 100 5 88 40 4
60 79 26 88 38 12 81 70 95 80 37 28 57 80 68 1 43 9 10 42 16 18 67
99 3 41 50 35 48 42 42 16 47 11 75 52 76 33 60 10 47 96 5 12 10 86
61 80 86 58 45 63 95 33 51 38 45 95 2 49 76 10 50 3 62 39 94 47 33
54 99 76 60 57 2 8 47 18 90 28 99 66 47 8 95 85 25 42 90 27 66 100
22 18 93 95 83 27 89 4 21 39 80 46 14 46 58 55 12 83 95 99 3 86 8
43 92 24 72 7 47 34 78 77 87 100 3 11 72 86 37 48 68 28 9 92 59 95
39 59 97 64 21 95 94 25 48 42 91 76 16 97 72 71 49 24 30 18 90 64
10 44 6 87 95 37 90 52 37 53 86 54 95 11 28 83 12 65 87 73 58 83 9
85 20 15 73 21 39 87 73 75 44 50 99 37 92 82 66 68 60 72 60 25 72
35 11 67 4 86 1 10 3 79 28 2 44 29 33 71 22 99 13 77 3 36 54 17 61
79 77 83 34 39 31 100 46 23 54 83 3 13 62 31 81 58 17 16 92 54 92
39 51 37 68 94 63 73 26 45 1
Your output
12257
Your output does not contain
12595
i passed one of the tests but these 2 are only slightly off and i
dont know why.
please provide a solution in C++
In: Computer Science
(a) The directors of Happy Trails are keen to purchase a block of land next door to the company’s business premises for $150,000 which will allow the company to expand. They set up a subsidiary company to purchase the land with the intention that Happy Trails would become the sole shareholder of the subsidiary. Happy Trails contributed $10,000 capital as a deposit to the subsidiary with the intention that the balance of the purchase price would be raised by way of a bank loan. However, the bank wanted $40,000 deposit and Happy Trails did not have enough cash to make up the shortfall. The three directors of Happy Trails decide to contribute $10,000 each personally in order for the sale to proceed. By doing so, they became shareholders of the subsidiary. One year later Happy Trails decides that they don’t need to expand, and the land is sold for $300,000 and the directors who had put in their own money to finance the deal made a large profit. Miss Eli and Mr Wu argue that the whole of the profit belonged to Happy Trails and that the three directors should not be allowed to keep their profit. Advise Miss Eli and Mr Wu. b) The three directors recently had a serious disagreement about the direction the company should take and as a result they are hardly speaking to each other. This means that it is very difficult for any business decisions to be made and the company is suffering financially. Mr Wu is very concerned as a shareholder. Advise Mr Wu
In: Accounting
The directors of Happy Trails are keen to purchase a block of land next door to the company’s business premises for $150,000 which will allow the company to expand. They set up a subsidiary company to purchase the land with the intention that Happy Trails would become the sole shareholder of the subsidiary. Happy Trails contributed $10,000 capital as a deposit to the subsidiary with the intention that the balance of the purchase price would be raised by way of a bank loan. However, the bank wanted $40,000 deposit and Happy Trails did not have enough cash to make up the shortfall. The three directors of Happy Trails decide to contribute $10,000 each personally in order for the sale to proceed. By doing so, they became shareholders of the subsidiary. One year later Happy Trails decides that they don’t need to expand, and the land is sold for $300,000 and the directors who had put in their own money to finance the deal made a large profit. Miss Eli and Mr Wu argue that the whole of the profit belonged to Happy Trails and that the three directors should not be allowed to keep their profit. Advise Miss Eli and Mr Wu. a) (b) The three directors recently had a serious disagreement about the direction the company should take and as a result they are hardly speaking to each other. This means that it is very difficult for any business decisions to be made and the company is suffering financially. Mr Wu is very concerned as a shareholder. Advise Mr Wu.
In: Accounting