Digital Organics (DO) has the opportunity to invest $1.23 million now (t = 0) and expects after-tax returns of $700,000 in t = 1 and $800,000 in t = 2. The project will last for two years only. The appropriate cost of capital is 12% with all-equity financing, the borrowing rate is 8%, and DO will borrow $200,000 against the project. This debt must be repaid in two equal installments of $100,000 each. Assume debt tax shields have a net value of $.30 per dollar of interest paid. Calculate the project’s APV. (Enter your answer in dollars, not millions of dollars. Do not round intermediate calculations. Round your answer to the nearest whole number.) Adjusted present value
In: Finance
In baseball, is there a linear correlation between batting average and home run percentage? Let x represent the batting average of a professional baseball player, and let y represent the player's home run percentage (number of home runs per 100 times at bat). A random sample of n = 7 professional baseball players gave the following information.
x 0.255 0.251 0.286 0.263 0.268 0.339 0.299
y 1.5 3.9 5.5 3.8 3.5 7.3 5.0
(a) Make a scatter diagram of the data. Then visualize the line you think best fits the data.
(b) Use a calculator to verify that Σx = 1.961, Σx2 = 0.555, Σy = 30.5, Σy2 = 152.69 and Σxy = 8.842. Compute r. (Round to 3 decimal places.)
As x increases, does the value of r imply that y should tend to increase or decrease? Explain your answer.
Given our value of r, we can not draw any conclusions for the behavior of y as x increases.
Given our value of r, y should tend to remain constant as x increases.
Given our value of r, y should tend to increase as x increases.
Given our value of r, y should tend to decrease as x increases.
In: Statistics and Probability
Copy and paste the below code EXACTLY as shown into your Java environment/editor. Your task is to fill in the code marked as "...your code here...". A detailed explanation follows the code.
import java.util.*;
public class OddManOut {
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
System.out.println("How many random Integers to produce?");
int num = sc.nextInt();
ArrayList<Integer> randomInts = createRandomList(num);
System.out.println("The random list is: ");
System.out.println(randomInts);
removeOdds( randomInts );
System.out.println("The random list with only even numbers:
");
System.out.println(randomInts);
}
public static ArrayList<Integer> createRandomList(int
num)
{
... YOUR CODE HERE ...
}
public static void removeOdds(ArrayList<Integer> list)
{
... YOUR CODE HERE ...
}
}
The program first asks you how many random numbers to produce (variable num). The program then calls createRandomList() which returns an ArrayList of Integers that contain random numbers between 1 and 20. The number of random numbers to produce depends on the variable num (i.e: if the user enters 50 then this method returns an ArrayList of Integers that contain 50 random numbers between 1 and 20). Once this list is displayed, the program calls removeOdds() which removes all numbers from the list that are odd leaving only the even numbers. Finally the program displays the modified list showing only even numbers.
Example output shown below:
How many random Integers to produce?
31
The random list is:
[6, 19, 8, 12, 13, 4, 12, 7, 16, 7, 21, 3, 16, 4, 17, 2, 4, 14, 2, 1, 3, 5, 7, 18, 17, 13, 10, 20, 8, 18, 20]
The random list with only even numbers:
[6, 8, 12, 4, 12, 16, 16, 4, 2, 4, 14, 2, 18, 10, 20, 8, 18, 20]
DELIVERABLES:
Upload your program below for marking. Note, for full marks you MUST NOT modify the starting code (code in red) in any way. Your task is only to fill in the "...your code here..." part of the two methods.
In: Computer Science
In: Finance
a. suppose the multiplier is 1.5, the income multiplier with respect to the money supply is 2, the money multiplier is 4.5, and a central bank purchase of $6b of bonds during a recession drops the interest rate by one percentage point. suppose that to fight a recession, monetary policy is undertaken to lower the interest rate by two-thirds of a percentage point. what should happen to the income level?
b.suppose the short run Phillips curve is duch that a two-percentage point increase in inflation decreases unemployment by one percentage point. suppose the economy is in long run equilibrium with a real growth rate of 2% and an unemployment rate of 7% and the central bank increases the rate of growth of the money supply from 5% to 8%. when the economy has reached its new long run equilibrium, what will be the levels of inflation and unemployment?
c.suppose that in equilibrium the Canadian dollar is depreciating relative to the U.S. dollar by 5% per year. suppose changes in the U.S. cause the U.S. real interest rate to rise from 3.5% to 4.5% and the U.S inflation rate to increase from 4% to 6%. assuming a risk premium of one percentage point, after the canadian economy has settled to a new equilibrium, what is its nominal interest rate?
In: Economics
The proportion of brown M&M's in a milk chocolate packet is approximately 14%. Suppose a package of M&M's typically contains 66 M&M's.
a) State the random variable.
c) Explain why this is a binomial experiment. Check all that apply.
1). p = 14% remains constant from one randomly selected M&M to another
2). There are a fixed number of M&Ms,
3). 66 There are more than two outcomes for each M&M
4). There are only two outcomes for each M&M
5). Whether or not one randomly selected M&M is brown will affect whether or not another randomly selected M&M is brown
7). Whether or not one randomly selected M&M is brown will not affect whether or not another randomly selected M&M is brown
8). There is not a fixed number of M&Ms
Find the probability, to 4 decimal places:
It is possible when rounded that a probability is 0.0000
d) exactly none are brown.
e) exactly 64 are brown.
f) at least 56 are brown.
g) at most 61 are brown.
h) all of them are brown.
i) Is 66 an unusually high number of M&Ms that are brown in a sample of 66 M&Ms?
In: Statistics and Probability
You have been given the following return data:
Expected Return
Year Asset A Asset B Asset
C
2021
7% 8%
2%
2022
9% 6%
4%
2023
11% 4% 6%
2024
13% 2%
8%
on three assets-A, B, and C over the period 2021--2024
Using these assets, you have isolated three investment alternatives:
Alternative Investment
1 100% of asset A
2 50% of asset A and 50% of
asset B
3 50% of asset A and 50% of
asset C
a. Calculate the average portfolio return for each of the three alternatives.
b. Calculate the standard deviation of returns for each of the three alternatives.
c. On the basis of your findings in parts a and b, which of the three investment alternatives would you recommend? Why?
In: Finance
I need a box and it must adhere to the following: L+2W+2H<130, L<70, W<40, H<18. I'd like to know the dimensions required to maximize my box volume. Any help is appreciated, and please let me know if this does not give enough information to solve.
In: Math
1. Adhere to the naming conventions discussed in class for variable names, program names, and function names
2. Use meaningful names for variables
3. Follow the coding standards and homework submission rules as covered in class.
4. If there are more than one word in the variable use all lowercase and separate them with underscores, e.g., first_name, shipping_cost.
5. Include appropriate comments in the code, but not too many.
6. Output should be displayed exactly as shown for each problem below. The output given is sample output. Other numbers/input could be entered.
7. If your program does not compile, you will not receive more than 20% of the maximum points.
8. If your program compiles but does not execute, you will not receive more than 35% of the maximum points.
9. If your program compiles and executes yet does not give the required output, you will not receive more than 50% of the maximum points.
10. The programs will be in one file named hw3.py. The module will be in one file named number_functions.py. Zip hw3.py and number_functions.py into file hw3.zip and upload to Canvas. Only .zip files will be accepted. If the file is not named correctly, 10 points will be deducted.
11. Each program will be separated by a comment with the problem number. If this format is not followed, 10 points will be deducted.
12. Your name will be a comment at the top of the file. If your name is not in the file as a comment, 10 points will be deducted.
13. If you use Python constructs on assignments that we have not yet discussed in class, 20 points will be deducted.
14. If you do not adhere to our coding standards, 20 points will be deducted.
#Problem 2
Write function write_stock that asks the user to input a company name, its associated ticker symbol (eg. Exxon, XOM), and the price per share of the stock. These are then written to file stock.txt one item per line. The user will type in ‘quit’ to stop.
Write function get_share_value that accepts a company name and the number of shares. The function will search file stock.txt and return a list of two values; the ticker symbol and the total value of the shares. This function must use an exception handler to insure the file is valid, that the price can be converted to a number, and catch any other exception that might be raised.
Write a program that calls write_stock and get_share_value. The program will ask the user for the company name and number of shares for read_stock and print the answer.
Sample output might look as follows.
Enter company name; enter quit to stop: Amazon
Enter ticker symbol: amzn
Enter price: 1000
Enter company name; enter quit to stop: Apple
Enter ticker symbol: aapl
Enter price: 125
Enter company name; enter quit to stop: Microsoft
Enter ticker symbol: msft
Enter price: 250
Enter company name; enter quit to stop: quit
What stock did you buy?: Apple
How many shares?: 10
Your total value for aapl is $1250.00
#Problem 3
Write function determine_ sums that accepts a list of values. The function will return a list of two numbers; the first is the sum of the positive numbers and the second is the sum of the negative numbers.
Write a program that defines a list as [1, 5, 7, -2, 6, -8, 10, -4, -20] and calls determine_sums. The program will print the output. Assume the company name will start with a capital letter and the ticker symbol will be all lowercase. This will give the following output.
[29, -34]
There is no user input on this problem.
#Problem 4
Write function write_students that asks the user for student records and writes them to file students.txt. A record of a student includes name, major and GPA. The user can enter as many records as they want until they type in quit.
Write function read_students that accepts a major. The function returns the highest GPA for that major.
Write a program that calls write_students and read_students and prints the major and highest GPA. The program will ask the user for the major for which to search. Assume all names and majors will be lower case.
Sample input/output might look as follows:
Enter student name; enter quit to stop: jones
Enter major: insy
Enter gpa: 2.0
Enter student name; enter quit to stop: smith
Enter major: insy
Enter gpa: 3.25
Enter student name; enter quit to stop: willis
Enter major: mana
Enter gpa: 3.25
Enter student name; enter quit to stop: quit
Enter major: insy
The highest GPA for insy majors is 3.25
#Problem 5
Write module number_functions that includes:
Function write_numbers that writes 50 random numbers between 1 and 15 to file numbers.txt.
Function read_numbers that reads the file numbers.txt and returns a list of the numbers.
Write function count_numbers that accepts the list of numbers and returns how many numbers are in the list.
Function find_even_odd that accepts the list of numbers and returns a list of two numbers; how many odd numbers are in the list and how many even numbers are in the list.
Write a program that calls these functions in the order above and prints the returned data.
Sample output might be the following. But yours may vary as we are generating random numbers. The count will always be 50, but you need to code the function as if you do not know that.
['12', '8', '3', '18', '1', '5', '3', '18', '6', '10', '20', '8', '7', '4', '17', '16', '8', '11', '14', '3', '13', '13', '5', '17', '11', '9', '16', '19', '13', '18', '6', '1', '9', '19', '5', '14', '13', '15', '10', '12', '20', '16', '14', '5', '10', '20', '17', '11', '18', '3']
50
[26, 24]
In: Computer Science
Based on the following data for car crash deceleration measurements, do a 2-Way ANOVA test and determine if car size and /or country of origin make a difference in crash effects on the passenger. Use results to answer question 6 (i.e., the question that will be #6 on the test)
Car Crash Effects On Passenger (In “g”s)
Small Medium Large Cars
Foreign 47 39 38
45 44 40
43 47 42
Domestic 43 43 37
44 37 38
42 34 33
In: Statistics and Probability