James Kelvin just completed an Engineering Management degree program, main reason is to enhance his investment capability. Now, he wants to take advantage of the falling prices of crude oil to invest in the oil business, with an anticipation that the prices will rise again. He has been offered an oil well with a proven reserve of 1800000 barrels. From his feasibility study, he will be able to produce 80,000 barrels of oil during the first year of operations. He believes that as the production capacity increases, he will increase the oil production by 10% annually, starting from the second year. A financial institution has offered to finance this investment at 9% interest rate compounded annually. From historical data, the price of oil is expected to remain steady at $30 per barrel over the next three years and start to increase thereafter at the rate of 8% annually for the next 5 years. When the price is peaked at the end of the 8th year, it stays steady for the next 4 years. He hopes to sell the oil well at the end of 10 years of operations for $5,000,000. What is maximum price (to break even) that James should buy the oil well now? (in order words, in other words, what will be the present worth of this investment).
In: Finance
Aspen Recreation Company sells three products today. The first product is called the Apache Classic Dunebuggy and they sell 400 units each year. The second product is called the Apache Basic Dunebuggy and they sell 550 units each year. The third product is called the Apache Deluxe Dunebuggy and they sell 300 units per year. Aspen Recreation is thinking about launching a fourth product called the Apache Gen Z Dunebuggy. If they launch this Gen Z Dunebuggy, they expect to be able to sell 475 units annually. But, if they launch the Gen Z Dunebuggy, there will be impacts on their current products. The Apache Classic Dunebuggy will have a sales decline to 275 units each year. The Apache Basic Dunebuggy will have an expected sales increase to 575 per year. There will be no change in the sales of the Apache Deluxe Dunebuggy. The selling price for the Apache Classic Dunebuggy is $13,900 each. The selling price for the Apache Basic Dunebuggy is $7,000 each. The selling price for the Apache Deluxe Dunebuggy is $18,000 each. The proposed new Apache Gen Z Dunebuggy is expected to sell for $9,000 each. For purposes of analyzing the costs and benefits of potentially launching this new product, the Apache Gen Z Dunebuggy, what is the appropriate annual amount of sales you should use in your analysis?
In: Finance
Independent t-test (assuming unequal variances) for mass per pot at the 50 pot and 100 pot comparing radish to tomato. Is this asking to perform a t-test with tomato at 50 and radish at 50 and another t-test with tomato at 100 and radish at 100 or tomato at 50 and tomato at 100 and radish at 50 and raidsh at 100
| Tomato at 50 pot |
| 0.61 |
| 0.61 |
| 0.53 |
| 0.61 |
| 0.62 |
| 0.47 |
| 0.49 |
| 0.56 |
| 0.54 |
| 0.65 |
| 0.96 |
| 0.65 |
| 0.66 |
| 0.65 |
| 0.56 |
| 0.45 |
| 0.48 |
| Tomato at 100 pot |
| 0.66 |
| 0.83 |
| 0.95 |
| 0.95 |
| 0.99 |
| 0.9 |
| 0.45 |
| 1.01 |
| 0.99 |
| 0.98 |
| 0.81 |
| 0.9 |
| 0.98 |
| 0.94 |
| 1.14 |
| 0.99 |
| 1.05 |
|
0.89 |
| Radish 100 | Radish 50 |
| 1.35 | 1.07 |
| 1.23 | 1.1 |
| 1.3 | 0.89 |
| 1.16 | 1.05 |
| 1.22 | 1.05 |
| 1.24 | 1.01 |
| 1.24 | 0.96 |
| 1.27 | 1.06 |
| 1.31 | 1.08 |
| 1.33 | 1 |
| 1.37 | 1.03 |
| 1.45 | 1.13 |
| 1.3 | 1.1 |
| 1.22 | 1.03 |
| 1.13 | 1.06 |
| 1.23 | 0.97 |
| 1.14 | 0.92 |
| 0.83 | 0.95 |
I
In: Statistics and Probability
hat does the code below do?
clear
vec = randi(20,1,100)-10;
iter=0;
k=1;
while k<= length(vec)
if vec(k)<0
vec(k)= vec(k) * -1;
end
k = k+1;
end
a.
This code generates a vector with 100 random integer elements between 20 and 100, and changes the sign of the elements coverting all poivitive ones to negative and all negative ones to positive.
b.
This code generates a vector with 20 random integer elements between 1 and 100, and changes the sign of all the elements.
c.
This code generates a vector with 20 random integer elements between -100 and 100, and replaces all the negative integers with a positive integer of the same absolute value.
d.
This code generates a vector with 100 random integer elements between -10 and 10, and changes the sign of all negative elements.
e.
This code generates a vector with 20 random integer elements between 1 and 100, and changes the sign of all negative elements.
In: Computer Science
In: Finance
Question:
Rotate and sort the list:-
In this problem, you have to first implement a singly linked list whose each node should have the following attributes,
● key - a positive integer
● next - address/pointer/reference to the next node in the linked list You will receive Q1 queries of following types,
● 1 x - Append a node to the linked list whose key should be x. After appending, print, in a new line, the key of each node in the linked list separated by a single space.
● 2 x - Delete the node in the linked list whose key is x.If such a node is not present in the linked list, no changes should be made. After this, print, in a new line, the key of each node in the linked list separated by a single space. The deleted node, if any, should be added in another linked list. Then you will receive Q2 queries of the following type,
● k - The linked list should be rotated towards right by |k| steps if k > 0, otherwise the linked list should be rotated towards left by |k| steps. k will always be an integer. Once all of the above Q2 queries are done, print, in a new line, the key of each node in the linked list separated by a single space. Then you have to merge the two linked lists together after sorting (by key), each of them using the merge sort algorithm. Once done, print in a new line, the key of each node in the linked list separated by a single space. Note that the linked list in the end should also be sorted by key.
Input Format - The first line will contain a positive integer, Q1 , following which there will be Q1 lines containing queries as described above. Then the very next line will contain a positive integer Q2 following which will be Q2 lines containing queries as described above.
Output Format - Q1 + 2 lines with space separated values of the key of each node in the linked list as explained above.
Constraints ● 0 < Q1 < 1000
● 0 < Q2 < 10000
● 0 < key, x < 1000
● -100 < k < 100
In: Computer Science
First make the changes in P82.cpp and call the new program ex82.cpp. Compile and run the program and make sure it produces the correct results. Here is what you need to do for the exercise:
Overload the % operator such that every time
you use it, it takes two objects of type AltMoney as its arguments
and returns:
a) 5% of the difference between the income and expenditure, if
income is larger than the expenditure
b) -2% if the the expenditure is larger than the income.
c) 0 if the expenditure is the same as income
Note that, by doing this, you are required to overload the
greater than sign (>), the smaller than sign (<), and the ==
sign.
#include<iostream>
#include<cstdlib>
using namespace std;
class AltMoney
{
public:
AltMoney();
AltMoney(int d, int c);
friend AltMoney operator +(AltMoney m1, AltMoney m2);
void display_money();
private:
int dollars;
int cents;
};
void read_money(int& d, int& c);
int main()
{
int d, c;
AltMoney m1, m2, sum;
sum = AltMoney(0, 0);
read_money(d, c);
m1 = AltMoney(d, c);
cout << "The first money is:";
m1.display_money();
read_money(d, c);
m2 = AltMoney(d, c);
cout << "The second money is:";
m2.display_money();
sum = m1 + m2;
cout << "The sum is:";
sum.display_money();
return 0;
}
AltMoney::AltMoney()
{
}
AltMoney::AltMoney(int d, int c)
{
dollars = d;
cents = c;
}
void AltMoney::display_money()
{
cout << "$" << dollars << ".";
if (cents <= 9)
cout << "0"; //to display a 0 on the left for numbers less than 10
cout << cents << endl;
}
AltMoney operator +(AltMoney m1, AltMoney m2)
{
AltMoney temp;
int extra = 0;
temp.cents = m1.cents + m2.cents;
if (temp.cents >= 100) {
temp.cents = temp.cents - 100;
extra = 1;
}
temp.dollars = m1.dollars + m2.dollars + extra;
return temp;
}
void read_money(int& d, int& c)
{
cout << "Enter dollar \n";
cin >> d;
cout << "Enter cents \n";
cin >> c;
if (d < 0 || c < 0)
{
cout << "Invalid dollars and cents, negative values\n";
exit(1);
}
}
In: Computer Science
Slope and the maximum height of a curve
This problem gives you a preview of something you might see in a microeconomics class. Suppose there’s an appliance store that sells air conditioners. It could set its price high and sell very few air conditioners, or it could set its price low and sell many more air conditioners. The following table shows some possible choices this store could make:

The graph below plots the firm’s total revenue curve: that is, the relationship between quantity and total revenue given by the two right columns in the table above. The five choices are also labeled. Finally, two black lines are shown; these lines are tangent to the green curve at points B and D.

Using the information on the slope of the lines tangent to the curve at points B and D, plot the slope of the total revenue curve on the graph below. (As it turns out, it’s a straight line, so the two points you plot will determine a line.)

The total revenue curve reaches its maximum at a quantity of (400, 200, 100, 300) air conditioners per year. At this point, the slope of the total revenue curve is (negative, equal to zero, positive, at its maximum, at its minimum) .
In: Economics
EPS, P/E Ratio, and Dividend Ratios
The Stockholders' Equity section of the balance sheet for Obregon, Inc. at the end of 2017 appears as follows:
| 8%, $100 par, cumulative preferred stock, 200,000 shares authorized, 50,000 shares issued and outstanding | $5,000,000 | |
| Additional paid-in capital on preferred | 2,500,000 | |
| Common stock, $5 par, 500,000 shares authorized, 400,000 shares issued and outstanding | 2,000,000 | |
| Additional paid-in capital on common | 18,000,000 | |
| Retained earnings | 37,500,000 | |
| Total stockholders' equity | $65,000,000 | |
Net income for the year was $1,345,000. Dividends were declared and paid on the preferred shares during the year, and a quarterly dividend of $0.30 per share was declared and paid each quarter on the common shares. The closing market price for the common shares on December 31, 2017, was $21.15 per share.
Required:
1. Compute the following ratios for the common stock:
When required, round earnings per share and price/earnings ratio answers to two decimal places. For dividend payout and dividend yield ratios, round raw calculations to 4 decimal places, but enter each answer as a percentage to two decimal places; for example, .17856 rounds to .1786 and would be entered as 17.86, indicating 17.86%.
| a. Earnings per share | $? | |
| b. Price/earnings ratio | ? to 1 | |
| c. Dividend payout ratio | ? % | |
| d. Dividend yield ratio | ? % |
2. Before recommending the stock of Obregon to a client, as a financial adviser, you would like to know:
d
In: Accounting
In: Economics