a) Write a program that reads a list of integers, and outputs all even integers in the list. For example, if the input list is [1, 2, 13, 14, 25], the output list should be [2, 14].
b) Based on your code for part (a), write a program that reads a list of integers, and reports True if all numbers in the list are even, and False otherwise. Example: For input [1, 2, 13, 14, 25], the output should be False.
Your program must define and call the following two functions.
evens() returns all even integers in the list are even.
all_even() returns True if all integers in the list are even and false otherwise.
Your code could look like this
#Your name here
def evens(thelist):
#your code goes here
def all_even(thelist):
#your code goes here
evens([1, 2, 13, 14, 25]) #should return [2,14]
all_even([1, 2, 13, 14, 25]) #should return False
In: Computer Science
1. (a) Suppose that, from 12 students, we want to take a committee of students. How many committees consisting of 4 students can be selected? How many committees consisting of 6 students can be selected?
(b) Suppose we want to select 3 out of 12 students and give them the first and second and third places. Determine the number of possible selections?
In: Finance
7. FX Exposure Management at BMW
BMW Group, owner of the BMW, Mini and Rolls-Royce brands, has been based in Munich since its founding in 1916. But by 2011, only
17 per cent of the cars it sold were bought in Germany. In recent years, China has become
BMW’s fastest-growing market, accounting for 14 per cent of BMW’s global sales volume in
2011. India, Russia and eastern Europe have also become key markets.
The rapid globalization of its operations posed several new financial challenges. Despite rising sales revenues, BMW was conscious that its profits were often severely eroded by changes in exchange rates. The company’s own calculations in its annual reports suggest that the negative effect of exchange rates totalled C2.4bn between 2005 and 2009. BMW did not want to pass on its exchange rate costs to consumers through price increases. Its rival Porsche had done so at the end of the 1980s in the US and sales had plunged.
To address the issues, BMW took a two-pronged approach to managing its foreign exchange exposure. One strategy was to use a “natural hedge” – meaning it would develop ways to spend money in the same currency as where sales were taking place, meaning revenues would also be in the local currency. However, not all exposure could be offset in this way, so BMW decided it would also use formal financial hedges. To achieve this, BMW set up regional treasury centres in the US, the UK and Singapore.
BMW implemented its new FX risk management strategy in several ways. Regarding the natural hedge strategy it again followed a two-pronged implementation strategy. The first involved establishing factories in the markets where it sold its products. The second involved making more purchases denominated in the currencies of its main markets. BMW now has production facilities for cars and components in 13 countries. In 2000, its overseas production volume accounted for 20 per cent of the total. By 2011, it had risen to 44 per cent. In the 1990s, BMW had become one of the first premium carmakers from overseas to set up a plant in the US – in Spartanburg, South Carolina. In 2008, BMW announced it was investing $750m to expand its Spartanburg plant. This would create 5,000 jobs in the US while cutting 8,100 jobs in Germany. This also had the effect of shortening the supply chain between Germany and the US market. The company boosted its purchasing in US dollars generally, especially in the North American Free Trade Agreement region. Its office in Mexico City made $615m of purchases of Mexican auto parts in 2009, expected to rise significantly in following years.
Since BMW’s fastest growing markets are in Asia it also had to rethink its Asian strategy in light of risk management needs. A joint venture with Brilliance China Automotive was set up in Shenyang, China, where half the BMW cars for sale in the country are now manufactured. The carmaker also set up a local office to help its group purchasing department to select competitive suppliers in China. By the end of 2009, Rmb 6bn worth of purchases were from local suppliers. Again, this had the effect of shortening supply chains and improving customer service. At the end of 2010, BMW announced it would invest 1.8bn rupees in its production plant in Chennai, India, and increase production capacity in India from 6,000 to 10,000 units. It also announced plans to increase production in Kaliningrad, Russia.
Meanwhile, the overseas regional treasury centres were instructed to review the exchange rate exposure in their regions on a weekly basis and report it to a group treasurer, part of the group finance operation, in Munich. The group treasurer team then consolidates risk figures globally and recommends actions to mitigate foreign exchange risk.
Using operating strategy to address FX risk brought other benefits. By moving production to foreign markets the company not only reduces its foreign exchange exposure but also benefits from being close to its customers. In addition, sourcing parts overseas, and therefore closer to its foreign markets, also helps to diversify supply chain risks.
(a) What is the nature of BMW’s FX exposure? What fundamental financial principle should BMW use to neutralize the impact of FX rate movements on their results?
(b) How did BMW decide to tackle the problem? Do you see any problems with BMW’s approach and implementation?
(c) What differences if any exist in BMW’s approach to FX exposure management in North
America and Asia?
(d) Why did BMW decide to consolidate FX risk management globally in its Munich group treasury? What principle are they implementing and what are its advantages for the group?
(e) BMW’s and Western Mining’s pursued to very different strategies to address FX expo- sure. What are their respective FX risk management strategies? Why did each company choose their respective strategy?
In: Finance
Using Java
Although the long data type can store large integers, it cannot store extremely large values such as an integer with 100 digits. Create a HugeNumber class that uses a linked list of single digits to represent non-negative integers of arbitrary length. The class should include a method to add a new most significant digit to the existing number so that longer and longer numbers can be created. Also add methods to reset the number and to return the value of the huge integer as a String (is this toString?) along with appropriate constructor and accessor methods.
In addition to the requirements given above, implement an inner class iterator which will allow you to sequence through the digits of the HugeNumber one at a time.
Decide if the HugeNumber contains no digits, then converting it to a String should return a “-1” or an empty string and document your decision.
Submit program files for your HugeNumber class and of your class containing main. Include at least test cases for 3 huge numbers, each with 12 or more digits. Make sure to demonstrate the methods to reset the HugeNumber, to return the number as a String, and to iterate through the digits of the HugeNumber one at a time.
In: Computer Science
In: Operations Management
Describe the layout design of walmart 's facilities .
I need refernce as well for your answer .
In: Operations Management
Hallmark Cards, Inc. v. Murley
When a former Hallmark employee breaches a term in her severance contract, how much can Hallmark recover as damages?
iStockPhoto.com/RiverNorthPhotography
BACKGROUND AND FACTS Janet Murley was the vice president of marketing at Hallmark Cards, Inc., until Hallmark eliminated her position as part of a corporate restructuring. As a vice president, Murley had access to Hallmark’s confidential information, including its business plans, market research, and financial statements. In 2002, Murley and the company entered into a separation agreement. Murley agreed not to work in the greeting card or gift industry for a period of eighteen months and not to disclose any confidential information or retain any business records or documents relating to Hallmark. In exchange, Hallmark paid $735,000 to Murley as part of her severance package.
After the expiration of her noncompete agreement, Murley accepted a consulting position with Recycled Paper Greetings (RPG) for $125,000 and disclosed confidential Hallmark information to RPG. Hallmark filed a suit in a federal district court against Murley, alleging breach of contract. A jury returned a verdict in Hallmark’s favor and awarded $860,000 in compensatory damages (the $735,000 severance payment and $125,000 that Murley received from RPG). Murley appealed.
IN THE WORDS OF THE COURT …
BYE, Circuit Judge.
* * * *
With respect to the $735,000, Murley contends Hallmark was not entitled to a return of its full payment under the parties’ separation agreement because Murley fulfilled several material terms of that agreement (e.g., the * * * non-compete provisions). Under the circumstances, we cannot characterize the jury’s reimbursement of Hallmark’s original payment under the separation agreement as grossly excessive or glaringly unwarranted by the evidence. Hallmark’s terms under the separation agreement clearly indicated its priority in preserving confidentiality. At trial, Hallmark presented ample evidence that Murley not only retained but disclosed Hallmark’s confidential materials to a competitor in violation of the terms and primary purpose of that agreement. Thus, the jury’s determination that Hallmark was entitled to a full refund of its $735,000 is not against the weight of the evidence.
With respect to the remaining $125,000 of the jury award, Murley argues Hallmark can claim no entitlement to her compensation by RPG for consulting services unrelated to Hallmark. We agree. In an action for breach of contract, a plaintiff may recover the benefit of his or her bargain as well as damages naturally and proximately caused by the breach and damages that could have been reasonably contemplated by the defendant at the time of the agreement. Moreover, the law cannot elevate the non-breaching party to a better position than she would have enjoyed had the contract been completed on both sides. By awarding Hallmark more than its $735,000 severance payment, the jury award placed Hallmark in a better position than it would find itself had Murley not breached the agreement. The jury’s award of the $125,000 payment by RPG was, therefore, improper. [Emphasis added.]
DECISION AND REMEDY The U.S. Court of Appeals for the Eighth Circuit vacated the award of damages but otherwise affirmed the judgment in Hallmark’s favor. The appellate court remanded the case to the lower court to reduce the award of damages to include only the amount of Hallmark’s severance payment.
Question: Do you agree or disagree with the Court's decision and how would you have ruled? Fully explain.
In: Operations Management
Thirty small communities in Connecticut (population near 10,000 each) gave an average of x = 138.5 reported cases of larceny per year. Assume that σ is known to be 44.5 cases per year. (a) Find a 90% confidence interval for the population mean annual number of reported larceny cases in such communities. What is the margin of error? (Round your answers to one decimal place.)
| lower limit | |
| upper limit | |
| margin of error |
(b) Find a 95% confidence interval for the population mean annual
number of reported larceny cases in such communities. What is the
margin of error? (Round your answers to one decimal place.)
| lower limit | |
| upper limit | |
| margin of error |
(c) Find a 99% confidence interval for the population mean annual
number of reported larceny cases in such communities. What is the
margin of error? (Round your answers to one decimal place.)
| lower limit | |
| upper limit | |
| margin of error |
(d) Compare the margins of error for parts (a) through (c). As the
confidence levels increase, do the margins of error increase?
As the confidence level increases, the margin of error decreases. As the confidence level increases, the margin of error increases. As the confidence level increases, the margin of error remains the same.
(e) Compare the lengths of the confidence intervals for parts (a)
through (c). As the confidence levels increase, do the confidence
intervals increase in length?
As the confidence level increases, the confidence interval remains the same length. As the confidence level increases, the confidence interval decreases in length. As the confidence level increases, the confidence interval increases in length.
In: Math
Bank Three currently has $600 million in transaction deposits on its balance sheet. The Federal Reserve has currently set the reserve requirement at 10 percent of transaction depositors
If the Federal Reserve decreases the reserve requirement to 8 percent, show the balance sheet of Bank Three and the Federal Reserve System just before and after the full effect of the reserve requirement change. Assume Bank Three withdraws all excess reserves and gives out loans and that borrowers eventually return all of these funds to Bank Three in the form of transaction deposits.
Redo part (a) using a 12 percent reserve requirement.
In: Finance
FINANCIAL LEVERAGE EFFECTS
The Neal Company wants to estimate next year's return on equity (ROE) under different financial leverage ratios. Neal's total capital is $17 million, it currently uses only common equity, it has no future plans to use preferred stock in its capital structure, and its federal-plus-state tax rate is 40%. The CFO has estimated next year's EBIT for three possible states of the world: $4.2 million with a 0.2 probability, $2 million with a 0.5 probability, and $0.9 million with a 0.3 probability. Calculate Neal's expected ROE, standard deviation, and coefficient of variation for each of the following debt-to-capital ratios. Do not round intermediate calculations. Round your answers to two decimal places at the end of the calculations.
Debt/Capital ratio is 0.
RÔE = %
σ = %
CV =
Debt/Capital ratio is 10%, interest rate is 9%.
RÔE = %
σ = %
CV =
In: Finance
Pros/Cons of preventative therapy What do you think are the pros and cons of preventative therapy?
In: Psychology
In: Economics
“Companies should focus on financial measures of quality because these are the only measures of quality that can be linked to bottom-line performance.” Do you agree? Explain. How are financial measures and quality related? What other factors should be considered?
In: Operations Management
How might the shift of interstitial fluid be impacted if a patient was dehydrated?
In: Nursing
In: Operations Management