Suppose that wages in Miami among the immigrant population are $20,000 a year and everywhere else outside the United States they are $10,000. Suppose the cost of migrating to Miami is proportional to how far someone must travel. The cost of migrating is M=$36,000+ 20m, where m is the number of miles an immigrant’s origin country is from Miami. Please use this information to answer the following questions.
1. If Colombia is 1,500 miles from Miami, what is the maximum subjective discount factor that a Colombian migrant would have and still choose to immigrate to Miami?
2. If Cuba is 200 miles from Miami, what is the maximum subjective discount factor that a Cuban migrant could have and still choose to immigrate to Miami?
3. Based on the prior two questions should we see more migrants from Cuba or Colombia come to Miami?
Select one:
a. Cuba
b. Columbia
In: Economics
A certain region would like to estimate the proportion of voters who intend to participate in upcoming elections. A pilot sample of 25 voters found that 15 of them intended to vote in the election. Determine the additional number of voters that need to be sampled to construct a 98% interval with a margin of error equal to 0.06 to estimate the proportion.
The region should sample _______________ additional voters. (Round up to the nearest integer.)
________________________________________________________________________________________________
A tire manufacturer would like to estimate the average tire life of its new all-season light truck tire in terms of how many miles it lasts. Determine the sample size needed to construct a 96% confidence interval with a margin of error equal to 3,200 miles. Assume the standard deviation for the tire life of this particular brand is 7,000 miles.
The sample size needed is____ . (Round up to the nearest integer.)
In: Math
Using the Java programming language: Create and implement a class Car that models a car. A Car is invented to have a gasoline tank that can hold a constant max of 12.5 gallons, and an odometer that is set to 0 for a new car. All cars have an original fuel economy of 23.4 miles per gallon, but the value is not constant.
Provide methods for constructing an instance of a Car (one should be zero parameter, and the other should take one parameter, namely a value for the fuel efficiency). Additional method simulates the car traveling a given number of miles (at the end of traveling that user-specified distance, the odometer is updated and the gas tank level is reduced by an elementary calculation using the miles driven and fuel efficiency), to fill a given number of gallons to the tank, to get the odometer reading, and to get the gas tank level in gallons. (Test case that makes sure the tank isn’t already at capacity)
In: Computer Science
Java Program. !ONLY USING WHILE LOOPS!
(Completed but with errors, wanted to revise could anyone re-create this?)
Write a program to keep track of the number of miles you have driven during an extended vacation and the number of gallons of gasoline you used during this time, recorded at weekly intervals. This vacation will last over several weeks (the precise number of weeks while making the program is unknown to the coder). Ask the user to enter the number of miles driven afterward ask them how many gallons of gasoline they purchased for each week of the vacation. If the user enters -99 when asked for the number of miles driven, the vacation is over and the program will end by printing "Vacation Over!". Express all numeric values rounded to the nearest hundredth.
The task is to create this in Java using only while loops.
Thank you.
In: Computer Science
Find the eigenvalues and eigenvectors of the given matrix.
((0.6 0.1 0.2),(0.4 0.1 0.4), (0 0.8 0.4))
In: Advanced Math
Are the measurements Nominal, Ordinal, Interval, or Ratio?
Also, Qualitative, Discrete or Continuous?
(i) What is the temperature that you prefer inside the car (in Fahrenheit)?
(j) Give your customer satisfaction on a scale of 1-10.
In: Statistics and Probability
Suppose the risk-free rate is 3%. And the market interest rate is 5%. There are two stocks A and B. Both pay annual dividend per share of $2 and $3, respectively. The correlations (denoted as corr(x,y)) between their returns and the market return are corr(r1,rm) = 0.2 and corr(r2,rm) = 0.7, respectively. The standard deviations (denoted as σ) of their returns and the market return are σ 1 = 0.4, σ 2 = 0.6, and σ m = 0.3, respectively. (Note: The x and y above are two arbitrary random variables representing time series of returns.)
a. What are the returns (r1 and r2) for these two stocks from CAPM? (Hint: when you are computing beta, be aware that Cov(x,y)= corr(x,y)*σx*σy , Cov denotes covariance here.)
b. What are the prices of these two stocks if the dividend is not growing?
c. What are the Sharp ratios for these stocks and the market portfolio?
d. If 30% of my portfolio is stock A, the rest of it is stock B. What is the variance of my portfolio if E (r1 * r2) = 0.2? (Hint: Cov(x,y) = E(x*y) – E(x)*E(y))
In: Finance
Suppose the risk-free rate is 3%. And the market interest rate is 5%. There are two stocks A and B. Both pay annual dividends per share of $2 and $3, respectively. The correlations (denoted as corr(x,y)) between their returns and the market return are corr(r1,rm) = 0.2 and corr(r2,rm) = 0.7, respectively. The standard deviations (denoted as σ) of their returns and the market return are σ 1 = 0.4, σ 2 = 0.6, and σ m = 0.3, respectively. (Note: The x and y above are two arbitrary random variables representing time series of returns.)
a. What are the returns (r1 and r2) for these two stocks from CAPM? (Hint: when you are computing beta, be aware that Cov(x,y)= corr(x,y)*σx*σy , Cov denotes covariance here.)
b. What are the prices of these two stocks if the dividend is not growing?
c. What are the Sharp ratios for these stocks and the market portfolio?
d. If 30% of my portfolio is stock A, the rest of it is stock B. What is the variance of my portfolio if E (r1 * r2) = 0.2? (Hint: Cov(x,y) = E(x*y) – E(x)*E(y))
In: Finance
Project the Balance Sheet for Wal Mart for the next 5 years through year 2022. Provide reasoning for your forecasts and explanation. Growth rate for 2018 is 10%, 2019 is 11%, 2020 is 5.5%, 2021 is 5% and 2022 is 4%.
| Actuals | |||
| Year | 2015 | 2016 | 2017 |
| Balance Sheet | |||
| Assets: | |||
| Cash and cash equivalents | 9,135 | 8,705 | 6,867 |
| - common size | 4.5% | 4.4% | 3.5% |
| - rate of change | -4.7% | -21.1% | |
| Accounts and notes | |||
| receivable - net | 6,778 | 5,624 | 5,835 |
| - common size | 3.3% | 2.8% | 2.9% |
| - rate of change | -17.0% | 3.8% | |
| Inventories | 45,141 | 44,469 | 43,046 |
| - common size | 22.2% | 22.3% | 21.7% |
| - rate of change | -1.5% | -3.2% | |
| Prepaid expenses and other | |||
| current assets | 2,224 | 1,441 | 1,941 |
| - common size | 1.1% | 0.7% | 1.0% |
| - rate of change | -35.2% | 34.7% | |
| Current assets | 63,278 | 60,239 | 57,689 |
| - common size | 31.1% | 30.2% | 29.0% |
| - rate of change | -4.8% | -4.2% | |
| Property and Equipment | 177,395 | 176,958 | 179,492 |
| - common size | 87.2% | 88.7% | 90.3% |
| - rate of change | -0.2% | 1.4% | |
| Accumulated depreciation | -63,115 | -66,787 | -71,782 |
| - common size | -31.0% | -33.5% | -36.1% |
| - rate of change | 5.8% | 7.5% | |
| Property under capital and leasing | |||
| financing obligations, net | 2,375 | 6,345 | 6,468 |
| - common size | 1.2% | 3.2% | 3.3% |
| - rate of change | 167.2% | 1.9% | |
| Goodwill | 18,102 | 16,695 | 17,037 |
| - common size | 8.9% | 8.4% | 8.6% |
| - rate of change | -7.8% | 2.0% | |
| Other assets | 5,455 | 6,131 | 9,921 |
| - common size | 2.7% | 3.1% | 5.0% |
| - rate of change | 12.4% | 61.8% | |
| Total Assets | 203,490 | 199,581 | 198,825 |
| - common size | 100.0% | 100.0% | 100.0% |
| - rate of change | -1.9% | -0.4% | |
| Liabilities | |||
| Short-term borrowings | 1,592 | 2,708 | 1,099 |
| - common size | 0.8% | 1.4% | 0.6% |
| - rate of change | 70.1% | -59.4% | |
| Accounts Payable | 38,410 | 38,487 | 41,433 |
| - common size | 18.9% | 19.3% | 20.8% |
| - rate of change | 0.2% | 7.7% | |
| Accrued liabilities | 19,152 | 19,607 | 20,654 |
| - common size | 9.4% | 9.8% | 10.4% |
| - rate of change | 2.4% | 5.3% | |
| Accrued Income Taxes | 1,021 | 521 | 921 |
| - common size | 0.5% | 0.3% | 0.5% |
| - rate of change | -49.0% | 76.8% | |
| Long-term debt - due within | |||
| one year | 4,791 | 2,745 | 2,256 |
| - common size | 2.4% | 1.4% | 1.1% |
| - rate of change | -42.7% | -17.8% | |
| Capital lease and financial | |||
| obligations due within one year | 287 | 551 | 565 |
| - common size | 0.1% | 0.3% | 0.3% |
| - rate of change | 92.0% | 2.5% | |
| Current liabilities | 65,253 | 64,619 | 66,928 |
| - common size | 32.1% | 32.4% | 33.7% |
| - rate of change | -1.0% | 3.6% | |
| Long-term debt | 40,889 | 38,214 | 36,015 |
| - common size | 20.1% | 19.1% | 18.1% |
| - rate of change | -6.5% | -5.8% | |
| Long-term capital lease and | |||
| financing obligations | 2,606 | 5,816 | 6,003 |
| - common size | 1.3% | 2.9% | 3.0% |
| - rate of change | 123.2% | 3.2% | |
| Deferred income taxes and other | 8,805 | 7,321 | 9,344 |
| - common size | 4.3% | 3.7% | 4.7% |
| - rate of change | -16.9% | 27.6% | |
| Total liabilites | 117,553 | 115,970 | 118,290 |
| - common size | 57.8% | 58.1% | 59.5% |
| - rate of change | -1.3% | 2.0% | |
| Shareholder's Equity | |||
| Common stock | 323 | 317 | 305 |
| - common size | 0.2% | 0.2% | 0.2% |
| - rate of change | -1.9% | -3.8% | |
| Capital in excess of par value | 2,462 | 1,805 | 2,371 |
| - common size | 1.2% | 0.9% | 1.2% |
| - rate of change | -26.7% | 31.4% | |
| Retained Earnings | 85,777 | 90,021 | 89,354 |
| - common size | 42.2% | 45.1% | 44.9% |
| - rate of change | 4.9% | -0.7% | |
| Accum. other comprehensive | |||
| income (loss) | -7,168 | -11,597 | -14,232 |
| - common size | -3.5% | -5.8% | -7.2% |
| - rate of change | 61.8% | 22.7% | |
| Total Common and Preferred | |||
| Shareholders' Equity | 81,394 | 80,546 | 77,798 |
| - common size | 40.0% | 40.4% | 39.1% |
| - rate of change | -1.0% | -3.4% | |
| Noncontrolling interests | 4,543 | 3,065 | 2,737 |
| - common size | 2.2% | 1.5% | 1.4% |
| - rate of change | -32.5% | -10.7% | |
| Total Equity | 85,937 | 83,611 | 80,535 |
| - common size | 42.2% | 41.9% | 40.5% |
| - rate of change | -2.7% | -3.7% | |
| Total liabilites and equities | 203,490 | 199,581 | 198,825 |
| - common size | 100.0% | 100.0% | 100.0% |
| - rate of change | -1.9% | -0.4% | |
In: Accounting
Rental Summary
Calculate the Amount Due.
amtDue = baseCharge + mileCharge
Print the Customer summary as follows:
Rental Summary
Rental Code: The rental code
Rental Period: The number of days the vehicle was rented
Starting Odometer: The vehicle's odometer reading at the start of the rental period
Ending Odometer: The vehicle's odometer reading at the end of the rental period
Miles Driven: The number of miles driven during the rental period
Amount Due: The amount of money billed displayed with a dollar sign and
rounded to two digits. For example, $125.99 or $43.87
Final Check
Remove ALL print code from your script, except for the Rental
Summary.
The following data will be used in this final check:
Rental Code: D Rental Period: 5 Starting Odometer: 1234 Ending Odometer: 2222
Your final output should look like this:
Rental Code: D
Rental Period: 5
Starting Odometer: 1234
Ending Odometer: 2222
Miles Driven: 988
Amount Due: $324.40
Rental Summary Feedback Link
Before you submit your final code file for grading, it might be a good idea to get some feedback as a final check. This feedback is for your benefit and this will not submit your code for grading.
If so, click the Help Me! link below.
Help Me!
import sys
'''
Section 1: Collect customer input
'''
##Collect Customer Data - Part 1
##1) Request Rental code:
#Prompt --> "(B)udget, (D)aily, or (W)eekly rental?"
#rentalCode = ?
rentalCode = input("(B)udget, (D)aily, or (W)eekly
rental?\n")
print(rentalCode)
budget_charge = 40.00
daily_charge = 60.00
weekly_charge = 190.00
#2) Request time period the car was rented.
#Prompt --> "Number of Days Rented:"
#rentalPeriod = ?
# OR
#Prompt --> "Number of Weeks Rented:"
#rentalPeriod = ?
if rentalCode == 'B' or rentalCode == 'D':
rentalPeriod= int(input('Number of Days Rented:\n'))
else:
rentalPeriod =int(input('Number of Weeks Rented:\n'))
daysRented = rentalPeriod
#CUSTOMER DATA CHECK 1
#ADD CODE HERE TO PRINT:
#rentalCode
#rentalPeriod
#Calculation Part 1
##Set the base charge for the rental type as the variable
baseCharge.
#The base charge is the rental period * the appropriate rate:
#Collect Customer Data - Part 2
#4)Collect Mileage information:
#a) Prompt the user to input the starting odometer
reading and store it as the variable odoStart
#Prompt -->"Starting Odometer Reading:\n"
# odoStart = ?
#b) Prompt the user to input the ending odometer
reading and store it as the variable odoEnd
#Prompt -->"Ending Odometer Reading:"
# odoEnd = ?
#c) Calculate total miles
#Print odoStart, odoEnd and totalMiles
# Calculate Charges 2
## Calculate the mileage charge and store it
as
# the variable mileCharge:
#a) Code 'B' (budget) mileage charge: $0.25 for each mile driven
#b) Code 'D' (daily) mileage charge: no charge if
the average
# number of miles driven per day is 100 miles or less;
# i) Calculate the averageDayMiles
(totalMiles/rentalPeriod)
# ii) If averageDayMiles is above the 100 mile per
day
# limit:
# (1) calculate extraMiles (averageDayMiles -
100)
# (2) mileCharge is the charge for extraMiles,
# $0.25 for each mile
#c) Code 'W' (weekly) mileage charge: no charge if
the
# average number of miles driven per week is
# 900 miles or less;
# i) Calculate the averageWeekMiles (totalMiles/
rentalPeriod)
# ii) mileCharge is $100.00 per week if the average number of miles driven per week exceeds 900 miles
'''
Section 3: Display the results to the customer
'''
#1) Calculate the Amount Due as the variable amtDue
# This is the base charge + mile charge
#2. Display the results of the rental calculation:
print ("Rental Summary")
print("Rental Code: ", rentalCode)
print ("Rental Period: ", rentalPeriod)
print ("Starting Odometer: ", odoStart)
print ("Ending Odometer: ", odoEnd)
print ("Miles Driven: ", totalMiles)
print ("Amount Due: ", amtDue)
In: Computer Science