Advanced Quantitative Business Analysis.
Question: Which method of forecasting would you recommend between 4 MA & 2 WMA? Why?
|
Period |
Sales |
4 MA |
Error |
|Error| |
Error^2 |
(|Err.|/A)*100 |
|
1 |
110 |
|||||
|
2 |
115 |
|||||
|
3 |
125 |
|||||
|
4 |
120 |
|||||
|
5 |
125 |
|||||
|
6 |
120 |
|||||
|
7 |
130 |
|||||
|
8 |
115 |
|||||
|
9 |
110 |
|||||
|
10 |
130 |
|
Weights |
|
0.65 |
|
0.35 |
|
2 WMA |
In: Statistics and Probability
1- Write it with C++ program
§Write a function Rotate that rotates an array of size n by d elements to the left
§Use array as argument
§In the main function, call the function Rotate and show the rotated array
§Test your code
For example:
Input: [1 2 3 4 5 6 7], n = 7, d = 2
Output: [3 4 5 6 7 1 2]
2- Write it in C++
§Search Insert Position
•Given a sorted array in ascending order and a target value
•Use binary search algorithm to return the index if the target is found. If not, return the index where it would be if it is inserted in order
•You may assume no duplicates in the array
Example :
Input: [1,3,5,6], 5
Output: 2
Input: [1,3,5,6], 2
Output: 1
In: Computer Science
Required information
[The following information applies to the questions
displayed below.]
| Account No. | Account Title |
| (1) | Cash |
| (2) | Service Revenue |
| (3) | Accounts Receivable |
| (4) | Salaries Expense |
| (5) | Dividends |
| (6) | Common Stock |
| (7) | Salaries Payable |
| (8) | Retained Earnings |
Which of the following is a true statement? (Note: A statement may be true even if it does not identify all accounts that appear on that particular financial statement.)
Multiple Choice
Account numbers 2, 4, and 5 will appear on the income statement.
Account numbers 1, 3, and 8 will appear on the balance sheet.
Account numbers 2, 5, and 8 will appear on the statement of cash flows.
Account numbers 4, 5, and 6 will appear on the statement of changes in stockholders’ equity.
Required information
[The following information applies to the questions
displayed below.]
| Account No. | Account Title |
| (1) | Cash |
| (2) | Service Revenue |
| (3) | Accounts Receivable |
| (4) | Salaries Expense |
| (5) | Dividends |
| (6) | Common Stock |
| (7) | Salaries Payable |
| (8) | Retained Earnings |
Which of the following is a true statement? (Note: A statement may be true even if it does not identify all accounts that have debit balances on that particular financial statement).
Multiple Choice
Account numbers 1, 3, and 5 normally have debit balances.
Account numbers 2, 4, and 5 normally have debit balances.
Account numbers 2, 5, and 8 normally have debit balances.
Account numbers 4, 5, and 6 normally have debit balances.
In: Accounting
An electronic manufacturer must expand by building a second facility. The search is narrowed to four locations, all of which are acceptable to management in terms of dominant factors. Assessment of these sites in terms of seven location factors is shown in the table below.
|
Location factor |
Factor weight |
Location |
|||
|
A |
B |
C |
D |
||
|
Labour climate |
20 |
5 |
4 |
4 |
5 |
|
Quality of life |
16 |
2 |
3 |
4 |
1 |
|
Transportation system |
16 |
3 |
4 |
3 |
2 |
|
Proximity to markets |
14 |
5 |
3 |
4 |
4 |
|
Proximity to materials |
12 |
2 |
3 |
3 |
4 |
|
Taxes |
12 |
2 |
5 |
5 |
4 |
|
Utilities |
10 |
5 |
4 |
3 |
3 |
Calculate the factor rating score for each location and identify the best location.
In: Operations Management
DYNAMIC PROGRAMMING
A county chairman of a certain political party is making plans for an upcoming presidential election. He has received the services of six volunteer workers for precinct work, and he wishes to assign them to four precincts in such a way as to maximize their effectiveness. He feels that it would be inefficient to assign a worker to more than one precinct, but he is willing to assign no workers to any one of the precincts if they can accomplish more in other precincts.
The following table gives the estimated increase in the plurality (positive or negative) of the party’s candidate in each precinct if it were allocated various numbers of workers.
|
Number of Workers |
Precinct 1 |
Precinct 2 |
Precinct 3 |
Precinct 4 |
|
0 |
0 |
0 |
0 |
0 |
|
1 |
18 |
20 |
23 |
13 |
|
2 |
38 |
32 |
33 |
24 |
|
3 |
55 |
54 |
47 |
32 |
|
4 |
63 |
65 |
50 |
39 |
|
5 |
69 |
73 |
52 |
45 |
|
6 |
74 |
80 |
53 |
50 |
Define
Stage 1 = Precinct 1 only Stage 3 = Precincts 1, 2, and 3
Stage 2 = Precincts 1 and 2 Stage 4 = Precincts 1, 2, 3, and 4
State = the number of workers used in total
gn(x) = plurality from x workers in precinct n
e.g. g2(3) = plurality from 3 workers in precinct 2 = 54
fn(x) = plurality from x workers in precincts 1, 2, … , n
e.g. f3(4) = plurality from 4 workers in precincts 1, 2, and 3
Calculations
f1(x) = g1(x) for x >= 0 fn(x) = -1027 for x < 0
fn(x) = max [gn(y) + fn-1(x-y)] = max [gn(y) + fn-1(x-y)]
0 <= y <= x 0 <= y <= 6
Please solve in excel & dynamic programming
Question: A firm has just hired eight new employees and would like to determine how to allocate their time ...
A firm has just hired eight new employees and would like to determine how to allocate their time to four activities. The firm has prepared the following table, which gives the estimated profit for each activity as a function of the number of new employees allocated to it.
| Activities/Days | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| Activity 1 | 22 | 30 | 37 | 44 | 49 | 54 | 58 | 60 | 61 |
| Activity 2 | 30 | 40 | 48 | 55 | 59 | 62 | 64 | 66 | 67 |
| Activity 3 | 46 | 52 | 56 | 59 | 62 | 65 | 67 | 68 | 69 |
| Activity 4 | 5 | 22 | 36 | 48 | 52 | 55 | 58 | 60 | 61 |
a. Use
dynamic programming to determine the optimal allocation of
new employees to the activities. (Zero credit will be given
for eyeball or linear programming solutions.)
b. Suppose only six new employees were hired. What activities would you assign to these employees?
In: Operations Management
The bubble sort described in AS 7e is inefficient when perform on a larger array. To improve the efficiency, we have to observe the basic mechanism of Bubble Sort.
Each inner loop of the Bubble sort always move the largest item on the unsorted left side to the sorted right side.
When a list is sorted, we say the list is in ascending order by convention.
We can enhance the efficiency of traditional Bubble sort by making only one swapping per inner loop iteration. To accomplish this, the following simple modifications are applied:
Hint:
The inner loop finds the index of the largest item of the
unsorted region and performs no swap operation.
The outer loop index to track the range of "unsorted
region."
Example of Sorted vs Unsorted region through each inner iterations:
4, 3, 5, 7, 2, 9, 1 unsorted | sorted 4, 3, 5, 7, 2, 1| 9 (1st iteration) 4, 3, 5, 1, 2| 7, 9 (2nd iteration) 4, 3, 2, 1| 5, 7, 9 (3rd iteration) 1, 3, 2| 4, 5, 7, 9 (4th iteration) 1, 2| 3, 4, 5, 7, 9 (5th iteration) 1, 2, 3, 4, 5, 7, 9 (6th iteration)
Note:
Complexity of program is to gauge its performance of time and space. See here.
Submit
In: Computer Science
You push a 2 kg block down a ramp. You apply a force of 9 N that is directed along and down the ramp with a coefficient of kinetic friction of 0.20. The block travels from rest to 4 m/s over a distance of 2 meters. Use g = 10 m/s/s. Report using 3 significant digits.
How many Newton's second law equations can you write for this problem?
Group of answer choices
4
3
2
1
How many forces are on the block?
Group of answer choices
2
1
4
3
What is the magnitude of the acceleration of the block?
What is the angle of the ramp? (in degrees)
In: Physics
the figure shows the graph of f(x) = ex. in the exercise 1 to 4, use transformation of this graph to graph each function. be sure to give equation of this the asymptotes. use the graph to determine each function's domain and range. if applicable, use a graphing utility to confirm your graph
1). g(x) = ex-1
2). g(x) = ex+2
3) h(x) = e-x
4) g(x) = 2ex
In: Math
A composition teacher wishes to see whether a new grammar program will reduce the number of grammatical errors her student make when writing an essay. the data are shown below. At a=0.05 can it be concluded that the number of errors has been reduced?
Student- 1, 2, 3, 4, 5, 6,
Errors before- 12 9 0 5 4 3
Errors after - 9 6 1 1 2 5
In: Statistics and Probability
1) Implement the given logic function using a 4:1 MUX. F(A,B,C) = Σm(0,1,3,7) Show the truth table, the 4:1 MUX schematic with the inputs, select inputs and the output.
2) 2) For an 8:3 priority encoder:
a) Draw the schematic.
b) Write the truth table.
c) Write the Boolean expressions for each of the outputs in terms of the inputs. d) Draw the logic circuit for the outputs in terms of the inputs.
In: Electrical Engineering