MUST BE DONE IN C++
Use qsort( ) function in Visual Studio to sort the following three arrays:
int array1 [] = { 3, 4, 2, 1, 7};
float array2 [] = {0.3, 0.1, 5.5, 4.3, 7.8};
char array3 [] = {‘c’, ‘d’, ‘a’, ‘b’, ‘f’};
Develop a driver function to print out the sorted results and put the screenshot into the
word document.
Note that you have to use qsort( ) provided by Visual Studio.
What is the time complexity of quick sort?
In: Computer Science
Fructose-1,6-bisphosphate (FBP) <=====> glyceraldehyde-3-phosphate (GAP) + dihydroxyacetone phosphate (DHAP) The standard free energy change for this reaction is +22.8 kJ/mol. Under actual conditions in the cell the concentrations of GAP,DHAP,and FBP are 0.5 mM, 0.3 mM, and 6.0 mM respectively. Given this information calculate the actual free energy change for this reaction in the cell at a temperature of 37 oC. Provide your answer (just the numerical part) in kJ/mole to two signicant figures
In: Chemistry
The income for Saxbys Cafe at Temple University income for the period January - June, 2020 is as follows:
| Month | Income (In thousands $) |
| January | 70.0 |
| February | 68.5 |
| March | 64.8 |
| April | 71.7 |
| May | 71.3 |
| June | 72.8 |
(a) Use exponential smoothing with α =0.1 and α =0.3 to forecast
July income. Assume that the initial forecast for February 2020 is
$65,000.
Show Work please
(b) Based on MAD, which smoothing constant provide a better forecast? Justify your answer.
In: Economics
Considering the stocks in the previous question, where Stock Xillow has an expected return of 16% and a standard deviation of 4% and Stock Yash has an expected return of 12% and a standard deviation of 3%. The stocks have a correlation coefficient of -0.3. What is the weight of the investment in Stock Xillow that creates the minimum variance portfolio of the two stocks? A. From 0% to 20% B. From 20% to 40% C. From 40% to 60% D. From 60% to 80% E. From 80% to 100%
In: Finance
A farmer has a utility function of u(w) = w^0.5. If there is good weather, the farmer will earn 100,000. If there is bad weather, she will earn 50,000. The probability of bad weather in any given year is 0.3. An insurance company offers the farmer a contract where the farmer would receive a 50,000 payout when there is bad weather. The insurance premium is denoted as p. What is the maximum premium that the farmer would be willing to pay for the insurance contract? Show your calculations and draw your answer on a graph.
In: Economics
Consider a bond with 10,000 USD par value, 8% coupon rate paid semi annually and 10 years to maturity. Assuming a 10% required return, answer the following questions:
Find the PV of the bond
Find the PV of the bond given it’s a Zero-Coupon Bond.
What is the bond’s price elasticity if the required return changed to 12%?
Calculate the duration of the bond.
What is the modified duration at an 8% yield?
What is the percentage change in bond’s price for an increase in yield for 0.3 percentage point.
In: Finance
Question 1 (1 point)
Suppose the consumer's utility function is given by
U(x1,x2)=xa1xb2{"version":"1.1","math":"U(x_1, x_2)=x_1^ax_2^b"}
, where a=9.5, and b=8.5. Suppose further, the price of good 1 is
3.0, price of good 2 is 2.7 and income is 69
Finally suppose the price of good 1 has decreased to 0.3
What is the substitution effect for good 1 Round your answer to two decimal places
Your Answer:
In: Economics
Roger has a levered cost of equity of 0.12. He is thinking of investing in a project with upfront costs of $8 million, which pays $2 million per year for the next 8 years. He is going to borrow $4 million to offset the startup costs at a rate of 0.05. His tax rate is 0.3. He will repay this loan at the end of the project. What is the NPV of this project, using the FTE method?
You Answered
Correct Answer
643,693 margin of error +/- 10,000
In: Finance
The foreman of a bottling plant has observed that the amount of
soda in each 32-ounce bottle is actually a normal distributed
random variable, with a mean of 32.2 ounces and a standard
deviation of 0.3 ounce. A customer buys a carton of four
bottles.
A. What is the probability that the mean amount of the four bottles
will be greater than 31.9 ounces?
B. What is the probability that the mean amount of the four bottles will be between 31.8 and 32.4 ounces?
C. Below what amount does 55.57% of the mean amount fall?
In: Statistics and Probability
An air bottle used for scuba diving breathing apparatus has a volume of 30 l. After it has been used, the pressure and temperature of the remaining air in the bottle are 0.3 MPa and 24 ◦C. Before the apparatus is used again, it is charged with air at temperature of 50 ◦C until the pressure in the bottle reaches 6 MPa. The charging processes is fast, and can be assumed to be adiabatic.
Questions: (a) Calculate the mass of air to be added to the bottle.
(b) What is the temperature of the air in the bottle at the end of the charging process?
In: Chemistry