In this assignment, you will implement a Polynomial linked list, the coefficients and exponents of the polynomial are defined as a node. The following 2 classes should be defined.
p1=23x 9 + 18x 7+3 1. Class Node ● Private member variables: coefficient (double), exponents (integer), and next pointer. ● Setter and getter functions to set and get all member variables ● constructor 2. Class PolynomialLinkedList ● Private member variable to represent linked list (head) ● Constructor ● Public Function to create a Node ● Public function to insert the Node to the linked list (sorted polynomial according to the exponent). ● Public function to print the polynomial in the elegant format: 23x 9 + 18x 7+3 ● Overloaded public function to allow adding two polynomials poly3=poly1+poly2 (23x 9 + 9x 7+3)+(2x 4+3x 7+8x 2 -6) =23x 9 +12 x 7+2x 4+8x 2 -3 ● Overloaded public function to allow negating (!) the sign of any polynomial poly3=!poly1 2x 4+3x 7+8x 2 -6 =- 2x 4 -3x 7+8x 2+6 ● Overloaded public function to allow multiplying two polynomials ● Public function to evaluate polynomial based on an input If x=1, then the value of this polynomial 2x 4+3x 7+8x 2 -6 should be 2(1) 4+3(1) 7+8(1) 2 -6 =7
Main menu to test the following tasks ○ cout << "1. Create polynomial \n"; ○ cout << "2. Print polynomial \n"; ○ cout << "3. Add two polynomilas \n"; ○ cout << "4. Negate polynomial \n"; ○ cout << "5. Multiply two polynomials \n "; ○ cout << "6. Evaluate polynomial \n "; ○ cout << "7. Exit \n";
In: Computer Science
The following information was provided for two mutual exclusive investment opportunities, only one of which may be selected.
| Project A | Project B | |
| Initial Investment(CF0) | 100 000 | 90 000 |
| Year(t) | Profit for the year | |
| 1 | 50 000 | 35 000 |
| 2 | 40 000 | 35 000 |
| 3 | 30 000 | 33 000 |
| 4 | 30 000 | 70 000 |
| Resale cash value Year 4 | 20 000 | 30 000 |
Notes
o Profit is calculated after deducting straight line depreciation.
o The cost of capital is 18% per annum.
a) Calculate annual depreciation amount for each project.
b) Compute cash flow from operation for each project.
c) Estimate net present value for each project.
d) Based on analysis above, which project would you recommend for the firm.
In: Finance
Consider two firms which differ with respect to asset risk and financial leverage. Firm 1 owns assets worth $10,000,000, and has issued zero coupon bonds with a face value of $4,500,000. On the other hand, Firm 2 owns assets worth $25,000,000, and has issued zero coupon bonds with a face value of $15,000,000. The standard deviation of the return on firm 1’s assets is 40%, whereas the standard deviation of the return on firm 2’s assets is 50%. Assume that both firms will be liquidated one year from today and that the rate of interest is 3%. 1. What is the fair market value for the bonds issued by Firm 1? What is the dollar value of Firm 1’s limited liability put option? What is the yield to maturity, credit risk premium, and (risk neutral) probability of default for Firm 1’s bonds?
In: Finance
Darlene and Jacob Snell own 800 acres of farmland titled as "joint tenants with rights of survivorship, not as tenants in common". Currently the land is appraised at $5,000 per acre. In addition, Mr. Snell holds a $200,000 CD in his name only, and Mrs. Snell holds a $200,000 CD in her name only. Mr. and Mrs. Snell have no debts. Mrs. Snell's last will and testament provides that "all of my assets at my death shall be divided in three equal portions among my two children and my husband." Mrs. Snell dies unexpectedly, leaving her husband and two children as her sole heirs. Which of the following statements is true?
| a. |
The children will inherit 2/3 of Mrs. Snell's interest in the CD and her 50% interest in the farm |
|
| b. |
The children will inherit 2/3 of Mrs. Snell's interest in the CD and no interest in the farm |
|
| c. |
The children will inherit her CD only |
|
| d. |
The children will inherit 2/3 of Mrs. Snell's interest in the CD and 2/3 of her 50% interest in the farm |
In: Finance
A simple random sample generated 12 male and 18 female adults identified by their primary care physicians as being over-weight. These adults were fed a special high protein diet for a month and had a sample mean weight loss of 10 pounds with a sample standard deviation of 3.2 pounds. We would like to conduct a test to determine whether the average weight loss for all adults is less than 11 pounds at a 1% level of significance.
What would be the appropriate test statistic?
Select one:
a. confidence interval using z
b. confidence interval using t
c. one-sample t-test
d. one-sample z-test
e. matched paired test
A sprinter runs the 100 yard dash on four separate occasions. The times (in seconds) are:
11.0 10.8 10.9 11.3
What is the value of the standard error of the mean for the runners time (in seconds)?
Select one:
a. 0.05
b. 0.25
c. 0.11
d. 0.23
e. 0.19
Assume that you are conducting a test with the following hypothesis
Ho: μ = 11 vs Ha: μ < 11. The test statistic for the test is t = -2.96 with a sample size of 30.
What is the p-value for this test?
Select one:
a. between 0.02 and 0.01
b. between 0.05 and 0.025
c. between 0.005 and 0.01
d. between 0.0025 and 0.005
e. between 0.100 and 0.050.
We would like to test the claim that less than 8% of Winnipeg driver receive a ticket for not stopping at a red light. A simple random sample of 300 drivers contained 15 who received a red light ticket. The value of the test statistic is:
Select one:
a. -1.92
b. 1.93
c. 2.38
d. 2.91
e. 1.56
The proportion of right-handed students in a university population is 0.20, the probability of obtaining exactly 2 right handed people in a random sample of 4 is
Select one:
a. 0.154
b. 0.051
c. 0.432
d. 0.381
e. 0.563
In: Statistics and Probability
CASE 4: SHORT-TERM SCHEDULING
Stan's Furniture Refinishers has 7 items of furniture to sand first and then varnish using the sending and varnishing machines, respectively. The items and their times on these two machines are shown in the table:
Item Sanding time, hrs. Varnishing time, hrs.
A 8 7
B 6 4
C 5 8
D 8 12
E 10 14
F 12 8
G 4 6
Questions.
In: Operations Management
Question 12 (1 point)
| X | 28 | 23 | 30 | 48 | 40 | 25 | 26 |
| Y | 91 | 106 | 112 | 192 | 155 | 130 | 101 |
The coefficient of determination for the above bivariate data is:
Question 12 options:
|
0.60 |
|
|
0.70 |
|
|
0.80 |
|
|
0.90 |
In: Math
You must provide 3 different graphs ( 1 graph for each price)
(a) At a product price of $52, will this firm produce in the short run? Explain. What will its profit or loss be? Calculate the profit or loss from the MR = MC approach. Provide a graph revealing your AFC, AVC, ATC, MR, Price, AR, Demand, and where MC intersects each.
(b) At a product price of $28, will this firm produce in the short run? Explain. What will its profit or loss be? Calculate the profit or loss from the MR = MC approach. Provide a graph revealing your AFC, AVC, ATC, MR, Price, AR, Demand, and where MC intersects each.
(c) At a product price of $22, will this firm produce in the short run? Explain. What will its profit or loss be? Calculate the profit or loss from the MR = MC approach. Provide a graph revealing your AFC, AVC, ATC, MR, Price, AR, Demand, and where MC intersects each.
|
(1) Total product |
(2) Total var. cost |
(3) Total Fixed |
(4) Total cost |
(5) AFC |
(6) AVC |
(7) ATC |
(8) MC |
|
0 |
$ 0 |
$40 |
$____ |
$_____ |
$_____ |
$_____ |
$_____ |
|
1 |
55 |
$40 |
_____ |
_____ |
_____ |
_____ |
$_____ |
|
2 |
75 |
$40 |
_____ |
_____ |
_____ |
_____ |
_____ |
|
3 |
90 |
$40 |
_____ |
_____ |
_____ |
_____ |
_____ |
|
4 |
110 |
$40 |
_____ |
_____ |
_____ |
_____ |
_____ |
|
5 |
135 |
$40 |
_____ |
_____ |
_____ |
_____ |
_____ |
|
6 |
170 |
$40 |
_____ |
_____ |
_____ |
_____ |
_____ |
|
7 |
220 |
$40 |
_____ |
_____ |
_____ |
_____ |
_____ |
|
8 |
290 |
$40 |
_____ |
_____ |
_____ |
_____ |
_____ |
In: Economics
Albert Page purchased one of Extra-large Shirt Company’s bonds last year when the market interest rate on similar-risk bonds was 6 percent. When he purchased the bond, it had seven years remaining until maturity. The bond’s coupon rate of interest (paid semi-annually) is 5 percent and its maturity value is $1000. Today, the market rate on similar risk bonds as the one Albert purchased one year ago is 4 percent.
3. If he were to sell the bond today, what price he can sell it for?
In: Finance
In: Finance