Write Java code that allows a user to repeatedly enter numbers. Each time the user enters a number, the program should print out the average of the last 3 numbers (or all numbers if 3 or less have been entered). I would like a detailed explanation so that a beginner level Java programmer could understand.
In: Computer Science
How many registers are there in ARM CPU for programmer to use?
Which registers can you use for general computation?
Which register are special purpose, and cannot be used for general computation?
What is the size, i.e. number of bits, each of these general purpose registers can hold?
Which are most useful flags in the current program status register?
In: Computer Science
3. Apple’s Worldwide Revenues from 2004 to 2019 is as
follows:
Year Worldwide Revenue in Billions
2004 8.2
2005 13.9
2006 19.3
2007 24.6
2008 37.5
2009 42.9
2010 65.2
2011 108.2
2012 156.5
2013 170.9
2014 182.8
2015 233.72
2016 215.64
2017 229.23
2018 265.6
2019 260.17
a. Enter the data above into the tab labeled Apple. Graph the data
in Excel and use your graph to determine what kind of time series
pattern exist. Put your answer in your spreadsheet.
b. Make the following forecasts for 2020. For all of them, use Mean
Squared Error to determine which of the forecasts is the best. Make
sure your answers are clearly labeled.
i. Naïve forecast from one prior time period
ii. Calculate a 4-period moving average
iii. Calculate a 3-period moving average with the following weights
for time t: time period t-1=0.8, t-2 = 0.15, t-3=.05
c. In the tab called Apple Smoothing, use the data from 3. to
forecast 2020 using an alpha equal to 0.7, 0.8, and 0.9. Using MSE,
which one offers the best estimate for 2020?
d. In the tab called Apple Regression, use the information from 3.
and run a regression to determine your forecast for 2020
i. Put your regression output in F1 of the same workbook.
ii. Calculate what your forecast is for 2020 in F21.
iii. How does well does this regression equation predict revenue?
Write your answer in F22. In addition, explain what your numerical
answer means in words.
In: Statistics and Probability
3. Read the following quote the rom Bank of Namibia June 2020 Quarterly bulletin and answer the questions that follow: “The demand for shorter-term fixed-rate treasury bonds was strong during the first quarter of 2020 and yields on short to medium bonds declined by more than 50 basis points. “
3.1. Define “bond yield” (2)
3.2. Briefly explain why strong demand for short term bonds lead to a decline in the yield on short term bonds. (2)
4. Explain what is meant by “put-call parity” and write down the equation expressing put-call parity, clearly indicating the meaning of the components of the equation (5)
In: Finance
asmine sold land for $250,000 in 2019. The land had a basis of $118,000 and she incurred selling expenses of $10,000. Jasmine received $50,000 down in 2019 and will receive five additional annual payments of $40,000 each. How much income will Jasmine recognize in 2020 when she receives the first additional payment of $40,000?
Multiple Choice
$0.
$18,880.
$19,520.
$40,000.
In: Accounting
Problem #13 Jasmine sold land for $250,000 in 2019. The land had a basis of $118,000 and she incurred selling expenses of $10,000. Jasmine received $50,000 down in 2019 and will receive five additional annual payments of $40,000 each. How much income will Jasmine recognize in 2020 when she receives the first additional payment of $40,000? (SHow your work)
In: Accounting
If the number employed is 150 million, the prime working-age
population is 190 million, and the number unemployed is 10 million,
the labor force participation rate is 65%, then the unemployment
rate is
21.1%
8.2%.
6.3%
5.3%
can not be determined because we do not know what the labor
participation rate for the actual working age population is.
In the United States, from the first quarter of 2020 to the
second quarter of 2020, assume that real GDP decreases by 2.3%, the
unemployment rate rises from 3.6% to 8% and the CPI index goes from
148 to 134. In such an economic scenario,
The aggregate demand curve must have shifted leftward, moving down
along a short-run aggregate supply curve.
The short-run aggregate supply curve must have shifted leftward,
moving up along the aggregate demand curve.
The aggregate demand curve must have shifted rightward, moving up
along a short-run aggregate supply curve.
The short-run aggregate supply curve shifts rightward, moving down
along the aggregate demand curve.
In: Economics
CHINA TARGETING 8% GROWTH IN 2010
At the beginning of 2010 the Chinese government announced that it
was targeting 8% growth for the economy
again, despite the global recession. The target had been 8% for a
number of years and the government had
always met it.
About 9% growth is expected in 2010 thanks to huge government
fiscal and monetary stimulus measures. The
Chinese economy is the third largest in the world. Forecasts for
economic growth made by the International
Monetary Fund for 2010 included China 9.2%, UK 0.9%, Japan 1.7%, US
1.5% and India 6.4%. However,
government officials in China recognized that growth was not
guaranteed. China relies heavily on exports and
so is vulnerable to economic change elsewhere in the world.
Adapted: Gillespie, A (2013), Business Economics, Oxford University
Press
QUESTION 1 (25)
1.1 Discuss what is meant by economic growth and why is economic
growth often important to governments.
(10)
1.2 8% is relatively fast economic growth by international
standards for China. Critically evaluate the sources of
economic growth for China and why the country set such as high
target?
In: Economics
(a) Give a definition of a closed set.
(b) Show, directly from the definition, that a union of finitely many closed sets is closed.
(c) Give an example of a countable collection of closed intervals In such that ∪ n=1 to ∞ In is open (make sure to prove it).
In: Advanced Math
|
ITEM |
QUANTITY (2009) |
PRICE (2009) |
QUANTITY (2010) |
PRICE (2009) |
|
Bananas |
20 |
$1.00 |
15 |
$1.00 |
|
Cupcakes |
30 |
$1.00 |
45 |
$0.75 |
|
Sushi |
10 |
$10.00 |
8 |
$11.00 |
In: Economics