Questions
Jones Company is a U.S. firm preparing its financial plan for the upcoming year. It has...

Jones Company is a U.S. firm preparing its financial plan for the upcoming year. It has no foreign subsidiaries, but the majority of its sales are from exports to Australia, Canada, Argentina and Taiwan. Estimated foreign cash inflows to be received from exports and foreign cash outflows to be paid for imports over the next year are shown below: Currency Total Inflow Total Outflow Australia dollars (A$) A$33,000,000 A$3,000,000 Canada dollars (C$) C$6,000,000 C$2,000,000 Argentina pesos (AP) AP12,000,000 AP11,000,000 Taiwan dollars (T$) T$5,000,000 T$9,000,000 Today’s spot rates and one-year forward rates in US$ are as follows: Currency Spot Rate One-Year Forward Rate A$ $ .91 $ .94 C$ .61 .60 AP .19 .16 T$ .66 .65 2. The current spot rate is used by Jones as a forecast of the future spot rate one year from now. The C$, AP, and T$ are expected to move in tandem with the U.S. dollar during the upcoming year. The A$’s movements are expected to be independent of the movements of the other currencies. As exchange rate movements are difficult to predict, the estimated net dollar cash flows per currency may differ from the estimates. Could the exchange rate movements from whatever exchange rate movements do occur offset each other? Explain. Be specific.

In: Finance

A small rock moves in water, and the force on it by the water is given...

A small rock moves in water, and the force on it by the water is given by f=kv. The terminal speed of the rock is measured and found to be 2.0m/s. The rock is projected upward at an inital speed of 6.0m/s. You can ignore the buoyancy force on the rock

a) in the absence of fluid resistance, how high will the rock rise and how long will it take to reach this maximum height? I managed this one. b) when the effects of fluidresistance are included, what are the answers to the question in part a).

i manage to get the same z time as the solution on this website.

I and the website has the same equation for Vy.

the websites solution for Y = Vt*[1-e^(-k/mt))] which is the same expression as the example in the book.

But in the example in the book there is no initial speed Vy=0. In the question there is initla speed and therefor I think the expression for Y must be different from the examples expression. Therefore I think the solution of this question on this website must be wrong. Please comment me on this.

In: Physics

Function Return Value In this program, you will be using C++ programming constructs, such as functions...

Function Return Value

In this program, you will be using C++ programming constructs, such as functions and loops.

main.cpp

Write a program that allows the user to enter the information for multiple packages to determine the shipping charges for each package. The program will exit when the user enters 0 or negative for the package weight.

Your program will ask the user to enter the weight of a package they want to ship. If the weight they enter is a positive number, your program will then prompt the user to enter the distance the package will be shipped. Your program will then output the shipping charges with a precision of 2 digits past the decimal point, and will prompt the user for the next package.

calculateCharge

Create a function called calculateCharge that contains 2 parameters: a double to represent the weight of the package, and an integer to represent the distance the package will be shipped. This function returns the shipping charge. See types.hpp for the function prototype for this function.

This function calculates the charge based on the package weight as well as the distance. The rates per weight are defined in types.hpp. And that rate is multiplied by how many 500 mile segments the package will be traveling. For instance, if the distance is 1-500 then the rate is multiplied by one. If the distance is 501-1000 then the rate is multiplied by two. 1001-1500, multiplied by three, and so forth.

Input Validation

  1. You can assume the user will always input valid data types (floating-point for package weight and integer for distance).

Hints

  1. Be sure to include the file types.hpp with the #include files so that the compiler knows where to find the program constants and function prototype.
  2. Shipping charges should be displayed with a precision of 2 digits past the decimal point.
  3. Don't forget to add comments to explain what the code is doing and where control of the program is executing.
  4. Choose variable names and function names that describe the purpose of the variable.

Sample Output

Welcome to Fast Freight Shipping Company

Enter the package weight in lbs (or 0 to exit): 0
Welcome to Fast Freight Shipping Company

Enter the package weight in lbs (or 0 to exit): 33
Enter shipping distance in miles: 3

Shipping cost: $6.40

Enter the package weight in lbs (or 0 to exit): -1
Welcome to Fast Freight Shipping Company

Enter the package weight in lbs (or 0 to exit): 3.4
Enter shipping distance in miles: 501

Shipping cost: $8.40

Enter the package weight in lbs (or 0 to exit): 3.4
Enter shipping distance in miles: 500

Shipping cost: $4.20

Enter the package weight in lbs (or 0 to exit): 1.1
Enter shipping distance in miles: 1100

Shipping cost: $9.30

Enter the package weight in lbs (or 0 to exit): 1.1
Enter shipping distance in miles: 1

Shipping cost: $3.10

Enter the package weight in lbs (or 0 to exit): 0

Here is is the information on the types.hpp file to be used:


//-----------
// Constants
//-----------

// shipping distance per segment

const int SEGMENT_MILES = 500;

// rates per 500 miles shipped

const double RATE1 = 3.10; // pkgs weighing <= 2 lb
const double RATE2 = 4.20; // pkgs > 2 lb but <= 6 lb
const double RATE3 = 5.30; // pkgs > 6 lb but <= 10 lb
const double RATE4 = 6.40; // pkgs > 10 lb


//---------------------
// Function prototypes
//---------------------

// This function receives a package weight in lbs and
// a shipping distance in miles. It uses these to compute
// and return the shipping charge.

double calculateCharge(double weight, int distance);

In: Computer Science

An audit partner of a CPA firm invested in a computer side business with a member...

An audit partner of a CPA firm invested in a computer side business with a member of the board of directors of a public company that sells insurance and is an audit client of that CPA firm. Identify any potential problems. Conduct preliminary research to find the relevant source at issue. Refine the problem statement. Research and locate the relevant professional authorities, and determine whether there is any colorable authority in the law that prohibits such a relationship. If so, try to find the interpretation of the law that the SEC may have issued. Analayze, consider alternatives, and develop the conclusion. Wirte a research memo on the problem.

In: Accounting

ALGORITHMS AND ANALYSIS Show with a counterexample that the greedy approach does not always yield an...

ALGORITHMS AND ANALYSIS

Show with a counterexample that the greedy approach does not always yield an optimal solution for the Change problem when the coins are U.S. coins and we do not have at least one of each type of coin.

In: Computer Science

Think about a population mean that you may be interested in and propose a confidence interval...

Think about a population mean that you may be interested in and propose a confidence interval problem for this parameter. Your data values should be approximately normal.

For example, you may want to estimate the population mean number of hours people watch tv each week. Your data could be that you spoke with seven people you know and found that they went out 14,20,17,26,2,12, and 16 times last week. You then would choose to calculate a 95% (or another level) confidence interval for the population mean.

Assume a random sample was chosen, which is required to determine a confidence interval.

please show all steps in the solution

In: Math

1. Define Monetary Policy 2. Tell how the Fed was created 3. Draw the pyramid 4....

1. Define Monetary Policy 2. Tell how the Fed was created 3. Draw the pyramid 4. Define all of the parts of the pyramid, tell # of members and term limits (if given) for each.

In: Economics

Write a program to compute numeric grades for a course. The course records are in a...

Write a program to compute numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format:


Each line contains a student’s last name, then one space, followed by the student’s first name, then one space, then ten or fewer quiz scores.


(If there are fewer than ten scores, that means the student missed one or more quizzes.) The quiz scores are whole numbers and are separated by one space. Your program will take its input from this file and send its output to a second file. The data in the output file will be the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student’s quiz scores. The average score is the sum of the quiz scores divided by 10. This amounts to giving the student a 0 for any missed quiz.


The output file will contain a line (or lines) at the beginning of the file explaining the output. Use formatting instructions to make the layout neat and easy to read.


After placing the desired output in an output file, your program will close all files and then copy the contents of the output file to the input file so that the net effect is to change the contents of the input file.


Use at least two functions that have file streams as all of some of their arguments.

Hint: Check out putback member function. See topic in Files menu.

SAMPLE OUTPUT


Input file:

test_ line_ 10 20 30 40 50 60 70

Price Betty 40 50 60 70 60 50 30 60 90

Goodman John 60 70 80 90 100 90

Smith Charles 70 80 90 60 70 60 80 90 90 90

Spangenberg Ward 70 70 80 90 70 80 90 80 70 60

Output file:

Last Name, First Name, up to 10 quiz scores. last entry is the average.

test_ line_ 10 20 30 40 50 60 70 28.00

Price Betty 40 50 60 70 60 50 30 60 90 51.00

Goodman John 60 70 80 90 100 90 49.00

Smith Charles 70 80 90 60 70 60 80 90 90 90 78.00

Spangenberg Ward 70 70 80 90 70 80 90 80 70 60 76.00


Point Distribution:
-50 Does not compile
-5 Warnings
-5 No description multiple line comments (name, date, etc)
-5 No single line comments (logic, input, output, etc)
-20 Does not use at least 2 programmer defined functions with stream passing.
-10 Does not copy output file to input file
-10 Does not format output


can you please send the answer to my emil [email protected]

thank you

C++

C++

In: Computer Science

Copper reacts with dilute nitric acid according to: 3 Cu(s) + 8 HNO3(aq) ? 3 Cu(NO3)2(aq)...

Copper reacts with dilute nitric acid according to:
3 Cu(s) + 8 HNO3(aq) ? 3 Cu(NO3)2(aq) + 2 NO(g) + 4 H2O(l)

If a copper penny weighing 3.045-g is dissolved in 37.23 mL of 3.750 M nitric acid and the resultant solution is diluted to 50.00 mL in a volumetric flask, what is the final concentration of NO3- in the solution?

In: Chemistry

Programming in C Game of Craps PR01 The game of craps is often said to be...

Programming in C Game of Craps

PR01
The game of craps is often said to be the “fairest” casino game of pure chance (meaning that
there is no player strategy involved) in that the house has the smallest advantage over the
player. What is that advantage? To answer this question we need to first define, precisely, what
we mean by “advantage”. The house advantage is simply the fraction of bets placed that will go
to the house, on average.


To estimate the house advantage for craps perform a Monte Carlo simulation of the game for
many millions of games, keeping track of the total amount bet and the total amount collected
by the house.


The rules of craps are very simple (note that we are not considering “side bets”). A player
places a wager and they will either lose the game (and their wager) or they will win the game
(and get both their wager and an equal payout from the house). Each game consists of a
number of throws of two fair six-sided dice (with sides equal to {1,2,3,4,5,6}. On each roll the
sum of the two dice is calculated. On the first roll, if a player rolls a 7 or an 11 they win
immediately. If the first roll is 2, 3, or 12 they lose immediately. Any other result establishes the
player’s “point” for that game. They then continue rolling the dice until they either roll their
point again (and win) or roll a 7 (and lose).


Write a predicate function that plays a single game of craps and returns TRUE if the player wins
and FALSE if the player loses. On each game place a random bet ranging from $1 to $1000
(whole dollar increments is fine). Collect data not only on the total amount wagered and the
total (net) amount taken by the house, but also aggregate data on how long games last and
their outcome. The end result should be output similar to the following (fake data). Note that
the percentages in parens on each line are the percentage of games that lasted that length, not
the fraction of total games played. The last column is the percentage of all games that lasted
that number of rolls.



GAMES PLAYED:........ 1000000
LONGEST GAME:........ 31 rolls
HOUSE ADVANTAGE:..... 1.734%
ROLLS WON LOST % OF GAMES
1 222222 (66.667%) 111111 (33.333%) 33.333
2 22222 ( 2.222%) 11111 ( 1.111%) 17.234
3 2222 ( 0.222%) 11111 ( 1.111%) 8.645
4 222 ( 0.022%) 1111 ( 0.111%) 0.935
...
20 22 ( 0.002%) 1 ( 0.000%) 0.006
>20 2222 ( 0.222%) 111 ( 0.011%) 0.521


PR02
Take a slightly different look at the game of craps by tabulating the odds of winning (the
fraction of the time that the player wins) for each possible mark value. This table should look
something like:
GAMES PLAYED:........ 1000000
FIRST ROLL WIN:...... 22.222%
FIRST ROLL LOSS:..... 11.111%
POINT WON LOST
4 222222 (22.222%) 111111 (11.111%)
5 22222 (22.222%) 111111 (11.111%)
6 2222 (22.222%) 111111 (11.111%)
8 26 (13.222%) 173 (86.778%)
9 222222 (22.222%) 111111 (11.111%)
10 222222 (22.222%) 111111 (11.111%)


Again, note that the numbers above are just effectively random placeholder values.
The percentages for the first-roll figures should be as a fraction of all games played. The
percentages for the values in the table should be as a fraction of all games that used that row’s
point value. The idea is for the player to know that IF their point is 8, then they have a 13%
change of winning that game – so the percentages on each row should sum to 100%.

In: Computer Science

In this lab, we will write some utility methods within a class called ListUtils. These three...

In this lab, we will write some utility methods within a class called ListUtils. These three methods will all be static methods, and their purpose will be to perform conversions between objects implementing one type of interface and objects implementing another type. For example, we will write a method for converting from an Iterable object to a Collection, and so on. We will discuss more about how this will work below.

Tip: you will definitely want to import java.util for this lab, since List and all of its relatives use it.

Iterable to Collection task:
public static <E> Collection<E> iterToCollection(Iterable<? extends E> iterable)

(3pts) Every Collection is an Iterable but not every Iterable is a Collection. However, if we have an Iterable, it implies a sequence of elements, so we can use that to built a Collection. That is what we will do in this method. To implement the method, we will need to create some kind of Collection object, and add elements from the Iterable's sequence to it one by one.

Hint: we don't want to store the result in a Collection itself, because it is just an interface, but there may be a more familiar choice of structure which implements Collection.

Collection to List task:
public static <E> List<E> collToList(Collection<? extends E> coll)

(3pts) As above, every List is a Collection but not every Collection is a List. However, if we have a Collection, it implies a fixed number of elements which can be retrieved in sequence, so we can use that to built a List by numbering the element indices in the order they are retrieved. That is what we will do in this method. To implement the method, we will need to create some kind of List object, and add elements from the Collection.

List to Map task:
public static <E> Map<Integer, E> listToMap(List<? extends E> list)

(3pts) A Map, sometimes known as an associative array or dictionary, is in some ways similar to a List, except that instead of accessing elements by the indices 0, 1, 2, etc., the elements are accessed by a key, which may or may not be in order, and which may or may not be a number. Every element in a Map is stored as a key-value pair (the value of the element plus the key which is used to access it). Thus, when we call the get() method, instead of passing in an int index, we pass in the key corresponding to the element we're looking for. An example of a class which implements the Map interface in Java is the HashMap class.

A List is not a Map and a Map is not a List. However a Map stores collections of data indexed by some kind of mapping. A Map is essentially a dictionary which allows us to look up elements in a collection of data using some reference key to find each element. The reference key for a Map can be any data type, but if we make that data type an Integer, then we can use the key to represent a List index. Thus, in this method, we will take a List and use it to build a Map by using the list index of each element as the element's key within the Map. Thus, if our List contains the elements 2, 4, and 6, then this method will produce a Map with the mappings 0 ⇒ 2, 1 ⇒ 4, and 2 ⇒ 6. As above, this would involve creating an appropriate type of Map and adding the elements from the List.

In: Computer Science

Mr. Gold is in the widget business. He currently sells 1.9 million widgets a year at...

Mr. Gold is in the widget business. He currently sells 1.9 million widgets a year at $5 each. His variable cost to produce the widgets is $3 per unit, and he has $1,700,000 in fixed costs. His sales-to-assets ratio is five times, and 20 percent of his assets are financed with 12 percent debt, with the balance financed by common stock at $10 par value per share. The tax rate is 35 percent.
  
His brother-in-law, Mr. Silverman, says he is doing it all wrong. By reducing his price to $4.50 a widget, he could increase his volume of units sold by 60 percent. Fixed costs would remain constant, and variable costs would remain $3 per unit. His sales-to-assets ratio would be 7.5 times. Furthermore, he could increase his debt-to-assets ratio to 50 percent, with the balance in common stock. It is assumed that the interest rate would go up by 1 percent and the price of stock would remain constant.

a. Compute earnings per share under the Gold plan. (Round your answer to 2 decimal places.)
  



b. Compute earnings per share under the Silverman plan. (Round your answer to 2 decimal places.)
  



c. Mr. Gold’s wife, the chief financial officer, does not think that fixed costs would remain constant under the Silverman plan but that they would go up by 15 percent. If this is the case, should Mr. Gold shift to the Silverman plan, based on earnings per share?
  

No
Yes

In: Accounting

Explain how consumer behavior can be used to affect marketing strategy? Examine the cultural forces causing...

Explain how consumer behavior can be used to affect marketing strategy?

Examine the cultural forces causing behavioral change in global and american society.

In: Economics

The adaptive immune system has two major effector arms: humoral and cell-mediated. Discuss the need for...

The adaptive immune system has two major effector arms: humoral and cell-mediated. Discuss the need for such separate systems from the standpoint of common pathogenic organisms and substances. What might you think are the "weak links" in these systems?

1. How have some disease-producing organisms exploited these?

2. Does this help explain why it is extremely difficult to generate effective vaccines for some organisms? Give an example and explain your reasoning.

In: Biology

Answer the questions below using the appropriate statistical technique. For questions involving the use of hypothesis...

Answer the questions below using the appropriate statistical technique. For questions involving the use of hypothesis testing, you must:

1. State the null and research hypotheses

2. Provide the Z(critical), T(critical), or χ 2 (critical) score corresponding to the α threshold for your test

3. Provide your test statistic

4. Provide your decision about statistical significance

A random sample of 350 persons yields a sample mean of 105 and a sample standard deviation of 10. Construct three different confidence intervals to estimate the population mean, using 95%, 99%, and 99.9% levels of confidence. What happens to the interval width as the confidence level increases? Why?

You must also substantively interpret the results of your test (but keep it short). That is, don’t just focus on whether or not a test is statistically significant, but also briefly comment on what the result actually means. You may find it helpful to proceed using the five-step model, but this is optional. Be sure to select a test that is appropriate given the question and decide whether the question calls for a one-tailed or two-tailed test. As well, do not round until the final step of your calculations.

In: Math