Which of the following are included in calculating this year's GDP?
a. Interest received on a security of the U.S. government
b. The purchases of a new automobile
c. The services of a gardener in weeding her garden
d. The purchase of a life insurance poliy
e. The money received by John when he sells his computer to Mary
f. The purchases of new office equipment by the U.S government
g. Unempolyment compensation benefits received by a former autoworker
h. A new apartment building built by a construction firm
i. Travel by people in Canada to the United States to visit Disneyland
Why do economics prefer to compare real GDP figures for different years instead of nominal GDP figures?
In: Economics
In: Anatomy and Physiology
in. java
Write a program that reads a string from the user, and creates another string with the letters from in reversed order. You should do this using string concatenation and loops. Do not use any method from Java that does the work for you. The reverse string must be built. Do not just print the letters in reversed order. Instead, concatenate them in a string.
--- Sample run: This program will create a string with letters in reversed order. Enter a string: banana The reversed string is: ananab Bye --- Sample run: This program will create a string with letters in reversed order. Enter a string: what the heck The reversed string is: kceh eht tahw Bye
In: Computer Science
COMPLETE IN EXCEL SHOWING EQUATIONS
Variable Growth Valuation Model Given:
Most recent annual cash flow (CFo) $1,000
Stage 1 annual growth rate (gt) 0.15
Stage 2 annual growth rate (gm) 0.05
Duration of stage 1 growth (years) 3
Required return (k) 0.10
Steps in solution:
1) Estimate future cash flows for the duration of the stage 1 growth period:
CF(0) = given $1,000
CF(1) = CF(0) * (1+gt) $1,150
CF(2) = CF(1) * (1+gt) $1,323
CF(3) = CF(2) * (1+gt) $1,521
2) Use EXCEL's built-in NPV function to find the present value of these cash flows.
RATE 0.10
NPV (rate, CF1:CF3) $3,281.09
3) Use the constant growth formula to estimate the value of the firm at the end of the rapid growth period (V3) where:
CF4 = CF3 (1+gm)
CF4 = $1,597
V3 = $1,597 / (0.10-0.05)
Ve = $31,938
4) Use EXCEL's built-in PV function to find the present value of the amount determined in step 3.
FV $31,938
RATE 0.10
NPER 3
PV ($23,996)
(You may ignore the negative sign for this answer. Recall that EXCEL mandates that the amounts entered for PV and FV must have opposite signs.)
5) Add the amounts found in step 2 (the PV of the rapid growth cash flows ) and step 4 (the PV of the normal growth cash flows).
PV of rapid growth cash flows $3,281
PV of normal growth cash flows $23,996
value of the firm $27,277
In: Finance
The following is in C++. The instructions for completion are at the bottom.
#include
#include
#include
#include
#include
#include
// function to determine if a token
vector is_token(const string& s) {
}
int main() {
// make this into a loop such that, like a terminal, input is
accepted until the user hits CTRL+d
string str;
cout<<">";
getline(cin, str);
//vector to store the strings or characters returned by
is_token() function
vector tokens;
tokens = is_token(str);
}
Modify the main() function to loop until the user exits (e.g. by pressing CTRL+d).
Write a function named is_token() that accepts a string of user
input and determines what is a token (see below for token
determination rules).
The function must return the separated tokens.
Determining if something is a token:
1. Whitespace (space, tab, etc) ends a token and is skipped
unless it is in quotes (see below). You will find the function int
isspace(char) useful for detecting whitespace characters.
2. Some characters are considered special tokens: | ; < >
&. When one of these characters is encountered, the token being
built is completed and a new token consisting of the character is
created.
3. The character \ is a special character, i.e. an escape
character. The next character will be part (or the start) of a
token.
4. Items between single or double quotes are treated as parts of
the current token.
5. Characters that do not meet the above rules are added on to the
current token being built.
Some examples to test your output:
Input: > we\'ll do some "crazy \"air quotes\""
Output (tokens separated by commas): we'll, do, some, crazy "air
quotes"
Input: > ls | sort >sorted_files.txt
Output (tokens separated by commas): ls, |, sort, >,
sorted_files.txt
Input: > "now\;is"
Output: now;is
In: Computer Science
An electric utility company is considering construction of a new power facility in Albuquerque, New Mexico. Construction of the plant would cost $275 millioneach year for five years. Expected annual net cash flows are $85 million each year for five years.
Power from the facility would be sold in the Albuquerque and Santa Fe areas, where it is badly needed. The firm has received a permit, so the plant would be legal as currently proposed, but air pollution would be an issue with the new facility.
To alleviate the environmental concerns the company could spend an additional $50 millionwhen the plant is built. The additional funds cover the costs of special equipment designed to minimize the air pollution. At this time, the special pollution-abatement equipment is not required by law. If the firm adds the environmental protections to the facility, the expected annual net cash flows are $90 million for five years.
Unemployment rates are high in the area Where the plant would be built. The plant would provide about 500 new, well-paying jobs.
The risk-adjusted WACC for this project is 15%. As an employee of the utility company, you have been tasked with analyzing the project. You are to make your recommendations to the company’s Board of Directors in a memo.
In: Finance
Write a C++ program to calculate the time to drain a cylindrical water tank for an initial water height ranging from 1 to 10 feet (specifically for 1, 2, 4, 6, 8, and 10 ft). The tank has a radius (rt) of 2 feet and the drain radius (rd) is 0.3 inch. The gravitational constant (g) is 32.2 feet/sec2.
The formula for time to drain the tank is
time=(rtrd)2h/vavg
where, average velocity, vavg=0.5(2gh).5
In your program, assign the values to the variables rt, rd, and g. Prompt user to enter the value of h. The program should calculate the value of vavg, and then display time in hours.
Using MS Visual Studio, create a project folder called tank and a source code file tank.cpp.
Use the function pow() in the formulas and NOT sqrt().
Set up the output statements (cout) such that the one line display looks like the following:
Initial water height (ft.) = 1; Time to drain (hrs.) = 0.44
STEP 1: Analyze the Problem –
There is only one required output (time in hour of data type double) and one input (initial water height in ft of data type int). All intermediate variables will be assigned a data type of double.
STEP 2: Develop a Solution –
Pseudo code is shown below.
Convert all input data to the same unit (ft)
Display a prompt to enter initial height of water
Read a value for the height
Calculate average velocity, using the given formulas
Display the calculated time
Hand calculation for h = 1 ft, rt = 2 ft, rd = 0.3 inch, and g = 32.2 ft/sec2:
time = ?
STEP 3: Code the Solution -
You can start the program as shown below:
// Filename:
// C++ program to calculate time to drain water tank
// Written by: Your Name ON: Date
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main()
{
int h;
double rt = 2.0, rd = 0.3, g = 32.2;
double vavg, time;
// Input initial water height (h)
//---
// Set output formats
cout << setiosflags(ios::fixed)
<< setiosflags(ios::showpoint)
<< setprecision(2);// Calculate average velocity in ft/hr
//---
// Calculate time in hrs to drain
// NOTE: The function pow(double a, int n) returns an
//---
// Display results in the specified format
//---
return 0;
}
STEP 4: Test and Correct the Program -
If the program shows the correct output, copy and paste the output into MS Word. Also copy and paste the source code to the word processor as well. To copy the display window contents, click on the small black box in the upper left corner, select Edit -> Select All, then click again on the box and select Edit -> Copy.
Test the code by changing initial heights to 2, 4, 6, 8, and 10 feet.
In: Computer Science
The dividend-growth model, suggests that an increase in the dividend growth rate will increase the value of a stock. However, an increase in the growth may require an increase in retained earnings and a reduction in the current dividend. Thus, management may be faced with a dilemma: current dividends versus future growth. As of now, investors’ required return is 10 percent. The current dividend is $0.9 a share and is expected to grow annually by 5 percent, so the current market price of the stock is $18.9. Management may make an investment that will increase the firm’s growth rate to 9 percent, but the investment will require an increase in retained earnings, so the firm’s dividend must be cut to $0.7 a share. Should management make the investment and reduce the dividend? Round your answer to the nearest cent.
The value of the stock -Select- to $ , so the management -Select- make the investment and decrease the dividend.
In: Finance
Innovative Technology Corporation (ITC) estimates its WACC at 13%. It is considering projects PX, PY, and PZ. The financial manager, Lori, estimates the expected returns on these projects to be respectively 16% for PX, 12% for PY, and 10.9% for PZ. She estimates the betas to be 1.9 for PX, 1.0 for PY, and 0.7 for PZ. She also estimates the expected return on the market to be 12% and the risk-free rate is 6%.
a) If ITC ignores project risk and uses the WACC as a cut-off rate for acceptance or rejection, which projects would be accepted and which projects would be rejected?
b) Considering risk, which projects should be accepted or rejected? Why?
c) Draw the SML line and plot Projects PX, PY, and PZ on the same graph. Does the graph verify your answers to Part b. Please use excel to draw the graph?
Show steps please
In: Finance
You are doing an internship with Macy’s and are tasked with forecasting sales so that you can make inventory orders. You have weekly sales data for men’s dress shirts in your store from each of the past six weeks. You decide to try both a 3-period moving average and exponential smoothing with λ = 0.7 to see which model is more accurate and then use that one to make forecasts. The sales data is shown below.
| Week | # of Shirts Sold |
|---|---|
| 1 | 423 |
| 2 | 448 |
| 3 | 437 |
| 4 | 361 |
| 5 | 395 |
| 6 | 416 |
What is the calculated MSE for the exponential smoothing method? Round intermediate calculations and final answer to 4 decimals.
What is the calculated MSE using the 3-period moving average? Round intermediate calculations and final answer to 4 decimals.
In: Statistics and Probability