Compute the determinant of A, where A= a 4x4 matrix [1 -3 0 0; 2 1 0 0; 0 0 1 2; 0 0 2 1] a 4x4 matrix [2 5 4 2; 0 0 0 2; 0 -3 0 -4; 1 0 -1 1] and a 4x4 matrix [1 -3 0 0; 2 1 0 0; 0 0 1 2; 0 0 2 1]^-1.
a) det(A)= -36
b) det(A)= 5
c) det(A)= 0
d) det(A)= -13
e)det(A)= 36
In: Advanced Math
1. Write a program in C++ that takes as inputs a positive integer n and a positive double a. The function should compute the geometric sum with base a up to the powern and stores the result as a protected variable. That is, the sum is: 1 + ? + ? ^2 + ? ^3 + ? ^4 + ⋯ + ? ^?
2. Write a program in C++ that takes as input a positive integer n and computes the following productsum mix: 1 * (1+2) * (1+2+3) * (1+2+3+4)*…*(1+2+3+…+n) and stores the result as a protected variable.
In: Computer Science
Using JavaScript for the following assignment
Design and code a function named "intersection" that
takes two arrays of numbers in parameter and returns a new
array containing only the values that are both in the
two arrays. A value must not be found more than once in
the resulting array but can be found more than once in
the arrays in parameter. The order of the elements in the resulting array
must respect the order of the first parameter. For example :
intersection ([3, 1, 4, 1, 5], [2, 4, 4, 3])
must return [3, 4].
You also need to design and code a unit test function and
call it. To test that the result of
intersection ([3, 1, 4, 1, 5], [2, 4, 4, 3])
which returns [3, 4], you can use a test like this:
assert (intersection ([3, 1, 4, 1, 5], [2, 4, 4, 3]) == "3,4");
This works because the == operator does the automatic conversion
from arrays to text (if one of the two operands are a text).
In: Computer Science
In JAVA
Use a two-dimensional array to solve the following problem:
A company has four salespeople - Sales Person 1, Sales Person 2, Sales Person 3, and Sales Person 4.
The company sells 5 products - Product 1, Product 2, Product 3, Product 4, and Product 5.
Each day, a sales person hands in a slip with the following information: Sales Person Number (1,2,3, or 4), Product Number (1,2,3,4, or 5), and dollar value of that product sold. This dollar value should be entered in the appropriate place in the multi-dimensional array with rows representing sales person (1-4) and columns representing products (1-5). Keep asking for data input until -1 is entered for the sales person number (sentinel).
Output: Your output should reflect the array in tabular format ALONG with cross-sectional totals. For example, your program should look something like this:
Enter Sales Person Number (1-4) or -1 to quit and view data:
1
Enter the Product Number (1-5):
1
Enter the dollar value:
1000
Enter Sales Person Number (1-4) or -1 to quit and view data:
2
Enter the Product Number (1-5):
1
Enter the dollar value:
2000
Enter Sales Person Number (1-4) or -1 to quit and view data:
2
Enter the Product Number (1-5):
2
Enter the dollar value:
500
Enter Sales Person Number (1-4) or -1 to quit and view data:
-1
Sales Person Product 1 Product 2 Product 3 Product 4 Product 5 Sales Person Totals
1 1000 0 0 0 0 1000
2 2000 500 0 0 0 2500
3 0 0 0 0 0 0
4 0 0 0 0 0 0
_____________________________________________________________________________
Product Totals 3000 500 0 0 0
In: Computer Science
Which one or more of the following are possible parent-child combinations?
Combination. Mothers blood type. fathers Blood type. Baby blood type
1 o. o. a
2. o. b. o
3. a a. o
4. B. AB. A
|
Only combination 4 is possible. |
||
|
Both 1 and 4 are possible. |
||
|
Both 1 and 3 are possible. |
||
|
Only 2 and 3 are possible. |
||
|
2, 3 and 4 are all possible combinations. |
In: Biology
Page Replacement Algorithms. Consider the
following page reference stream and 3 page frames: 0 1 2 3 2 4 3 1
1 5 2 4 6 3 3 4 6 3 4 7.
For the MIN, FIFO, and LRU algorithms, show the contents of the
page frame after each reference, and then compute the total number
of page faults, divided in to cold misses and other misses.
In: Computer Science
On Z we consider the family of sets τ = {Z, ∅, {−1, 0, 1}, {−2, −1, 0, 1, 2}, . . . }
where the dots mean all sets like the two before that.
a) Prove that τ is a topology.
b) Is {−4, −3, −2, −1, 0, 1, 2, 3, 4} compact in this topology?
c) Is it connected?
d) Is Z compact in this topology?
e) Is it connected?
In: Advanced Math
|
Ross Co., Westerfield, Inc., and Jordan Company announced a new agreement to market their respective products in China on July 18 (7/18), February 12 (2/12), and October 7 (10/7), respectively. Given the information below, calculate the cumulative abnormal return (CAR) for these stocks as a group. Assume all companies have an expected return equal to the market return. (Negative values should be indicated by a minus sign. Leave no cells blank - be certain to enter "0" wherever required. Do not round intermediate calculations. Round your answers to 1 decimal place.) |
| Ross Co. | Westerfield, Inc. | Jordan Company | ||||||||
| Date | Market Return |
Company Return |
Date | Market Return |
Company Return |
Date | Market Return |
Company Return |
||
| 7/12 | –.2 | –.4 | 2/8 | –.7 | –.9 | 10/1 | .3 | .5 | ||
| 7/13 | .1 | .3 | 2/9 | –.8 | –.9 | 10/2 | .2 | .8 | ||
| 7/16 | .6 | .8 | 2/10 | .6 | .4 | 10/3 | .9 | 1.3 | ||
| 7/17 | –.4 | –.2 | 2/11 | .8 | 1.0 | 10/6 | –.1 | −.5 | ||
| 7/18 | –1.9 | 1.3 | 2/12 | –.1 | .1 | 10/7 | –2.4 | −.5 | ||
| 7/19 | –.8 | –.6 | 2/15 | 1.3 | 1.4 | 10/8 | .3 | .3 | ||
| 7/20 | –.9 | –1.0 | 2/16 | .7 | .7 | 10/9 | –.5 | −.4 | ||
| 7/23 | .6 | .4 | 2/17 | –.1 | .0 | 10/10 | .1 | −.1 | ||
| 7/24 | .1 | .0 | 2/18 | .5 | .4 | 10/13 | –.2 | −.6 | ||
In: Finance
Consider the following time series data.
| Quarter | Year 1 | Year 2 | Year 3 |
| 1 | 2 | 5 | 7 |
| 2 | 0 | 2 | 6 |
| 3 | 5 | 8 | 10 |
| 4 | 5 | 8 | 10 |
| (b) | Use a multiple regression model with dummy variables as follows to develop an equation to account for seasonal effects in the data. Qtr1 = 1 if Quarter 1, 0 otherwise; Qtr2 = 1 if Quarter 2, 0 otherwise; Qtr3 = 1 if Quarter 3, 0 otherwise. | ||||||||||||||||||||
| If required, round your answers to three decimal places. For subtractive or negative numbers use a minus sign even if there is a + sign before the blank. (Example: -300) If the constant is "1" it must be entered in the box. Do not round intermediate calculation. | |||||||||||||||||||||
| ŷ = + Qtr1 + Qtr2 + Qtr3 | |||||||||||||||||||||
| (c) | Compute the quarterly forecasts for next year based on the model you developed in part (b). | ||||||||||||||||||||
| If required, round your answers to three decimal places. Do not round intermediate calculation. | |||||||||||||||||||||
|
|||||||||||||||||||||
| (d) | Use a multiple regression model to develop an equation to account for trend and seasonal effects in the data. Use the dummy variables you developed in part (b) to capture seasonal effects and create a variable t such that t = 1 for Quarter 1 in Year 1, t = 2 for Quarter 2 in Year 1,… t = 12 for Quarter 4 in Year 3. | ||||||||||||||||||||
| If required, round your answers to three decimal places. For subtractive or negative numbers use a minus sign even if there is a + sign before the blank. (Example: -300) | |||||||||||||||||||||
| ŷ = + Qtr1 + Qtr2 + Qtr3 + t | |||||||||||||||||||||
| (e) | Compute the quarterly forecasts for next year based on the model you developed in part (d). | ||||||||||||||||||||
| Do not round your interim computations and round your final answer to three decimal places. | |||||||||||||||||||||
|
|||||||||||||||||||||
| (f) | Is the model you developed in part (b) or the model you developed in part (d) more effective? | ||||||||||||||||||||
| If required, round your intermediate calculations and final answer to three decimal places. |
In: Statistics and Probability
1. bipolar cells depolarize
2. glutamate release from the photoreceptor cell decreases
3. light strikes photoreceptor cells
4. photoreceptor cells are depolarized
5. photoreceptor cells are
hyperpolarized
1,2,3,4,5 b. 2,4,3,5,1 c. 3,4,2,5,1 d. 4,3,5,2,1 e. 5,3,4,1,2
a. ball and socket b. condylar c. hinge d. pivot
In: Anatomy and Physiology