Consider a casino game that an individual (Joe) wants to play. It costs him N dollars...

Consider a casino game that an individual (Joe) wants to play. It costs him N dollars each time to play. He loves this game and wants to continue playing until he is either broke or he breaks the bank (wins all the money). The probability of winning is p; the probability of losing is q. These are fixed probability values every time the game is played.

Joe brought $M to the casino. Every time one plays you either lose the entrance fee ($N) or you win and are paid back D dollars.

(a) How much money does Joe expect to have after playing n times? Derive a formula for how much money he has.

(b) Suppose Joe starts with $100, p=0.3, q=0.7, N=$5, and D=$20. Is it likely that Joe will break the bank?

(c) If the answer to (b) is no, how many times is it likely that Joe can play this game before he is broke?

In: Math

Bergamo Bay's computer system generated the following trial balance on December 31, 2019. The company’s manager...

Bergamo Bay's computer system generated the following trial balance on December 31, 2019. The company’s manager knows something is wrong with the trial balance because it does not show any balance for Work in Process Inventory but does show a balance for the Factory Overhead account. In addition, the accrued factory payroll (Factory Wages Payable) has not been recorded.

Debit Credit
Cash $ 77,000
Accounts receivable 46,000
Raw materials inventory 28,000
Work in process inventory 0
Finished goods inventory 9,000
Prepaid rent 3,000
Accounts payable $ 9,700
Notes payable 12,700
Common stock 30,000
Retained earnings 82,000
Sales 204,600
Cost of goods sold 105,000
Factory overhead 25,000
Operating expenses 46,000
Totals $ 339,000 $ 339,000


After examining various files, the manager identifies the following six source documents that need to be processed to bring the accounting records up to date.

Materials requisition 21-3010: $ 4,000 direct materials to Job 402
Materials requisition 21-3011: $ 7,200 direct materials to Job 404
Materials requisition 21-3012: $ 2,500 indirect materials
Labor time ticket 6052: $ 4,000 direct labor to Job 402
Labor time ticket 6053: $ 16,000 direct labor to Job 404
Labor time ticket 6054: $ 5,000 indirect labor


Jobs 402 and 404 are the only units in process at year-end. The predetermined overhead rate is 100% of direct labor cost.

3. Prepare a revised trial balance.

In: Accounting

Could i get a walk trough how to solve these questions. Note that   is where the...

Could i get a walk trough how to solve these questions. Note that   is where the answer is meant to go.

Question 1

Say, instead of a separate variable (nItems), the number of items currently in the list are stored at index 0 in the array data, the actual values being stored starting at index 1. Complete the constructor that instantiates a list that can hold n values (excluding the item that holds the number of items currently in the list). That is, one should be able to add n values to the list before the need to grow it.

public class PackedArrayList {
public int[] data;

public PackedArrayList(int n) {
data = new int[  ];
data[0] =  ;
}
}

Question 2

Complete the body of method addEnsureCapacity in the following code:
public class MyArrayList {
public int[] data;
public int nItems;
public MyArrayList(int n) {
data = new int[n];
nItems = 0;
}
public void grow() {
//assume it increases capacity by 10
}
public boolean isFull() {
return (nItems == data.length);
}
public void addBasic(int val) {
data[nItems] = val;
nItems++;
}
public void addEnsureCapacity(int val) {
if(  == false) {
 ;
}
else {
 ;
addBasic(val);
}
}
}

In: Computer Science

Assume a file containing a series of words is named words.txt and exists on the computer’s...

Assume a file containing a series of words is named words.txt and exists on the computer’s disk. Write a program that reads the data and counts the number of occurrences of each letter. The program should then displays how many times each letter appears in the sentence.

In: Computer Science

About time intervals statistics, (a) A municipal bus system, when operating perfectly on schedule, provides a...

  1. About time intervals statistics,

    1. (a) A municipal bus system, when operating perfectly on schedule, provides a bus at any given bus stop every 30 min. You arrive at a random time at a bus stop. What is the average waiting time until the next bus arrives?

    2. (b) The busses become totally disorganized so that the spacing between busses is made random (assume that their arrival is a Poisson random process.) The same number of busses are still in operation. You again arrive at a bus stop at an arbitrary time. What is the average waiting time under these circumstances?

In: Physics

One method for producing hydrogen is to react coke (mostly solid carbon) with steam to make...

One method for producing hydrogen is to react coke (mostly solid carbon) with steam to make syngas, a mixture of CO and hydrogen

C(s) + H2O(g) ⇌ CO(g) + H2(g)     Kp = 0.45 at 900 K     ΔH = +131 kJ

What is the partial pressure of CO at equilibrium when 9.59 atm of H2O(g) is heated with excess C(s) at 900 K?

After equilibrium is reached, CO(g) is added.

In which direction will the reaction shift?

Will the equilibrium constant, K, increase or decrease?

In: Chemistry

Company Z is evaluating a project that will increase annual sales by $150,000 and annual cash...

  1. Company Z is evaluating a project that will increase annual sales by $150,000 and annual cash costs by $115,000. The project will initially require $98,000 in fixed assets that will be depreciated straight-line to a zero book value over the 4-year life of the project. The applicable tax rate is 32 percent. What is the NPV of this project if the required rate of return is 7% and the fixed assets required for the project will be scrapped at the end of the project?

In: Finance

Consider the following hypothetical natural experiment. The United States imposes a 25% tariff on imported automobiles...

Consider the following hypothetical natural experiment. The United States imposes a 25% tariff on imported automobiles (cars) in 2020 but does not do so on imported trucks. Canada does not impose such a tariff. In 2020 vehicles (cars+light trucks) in the U. S. (noncommercial) averaged 30 mpg while vehicles in Canada averaged 35 mpg. In 2025 vehicles in the US averaged 35 mpg while vehicles in Canada averaged 45 miles per gallon. Assume (this is a hypothetical natural experiment) that there are no differences between drivers and economic conditions in Canada and the U.S. In an actual analysis of such a situation any observable differences would be addressed using some matching algorithm. a. Using the difference in difference estimator calculate the yearly impact of the tariff on fuel efficiency for all vehicles. b. Assuming that there were 10 million vehicle (car and light truck) sales in the U.S. in 2025 and that each vehicle drives on average 10,000 miles per year, how much more gasoline would be consumed by U. S. drivers in 2025 due to the tariff?

In: Math

Review 19 In the discussion of TCP splitting in the sidebar in section 3.7  it was claimed...

Review 19 In the discussion of TCP splitting in the sidebar in section 3.7  it was claimed that the response time with TCP splittting is approximately 4 *  RTTFE +RTTBE + processing time. Please Justify this claim                                                                                                                 

Jim Kurose and Keith Ross,”Computer Networking – A Top-Down Approach”, Addison-Wesley, Seventh Edition, 2017. ISBN-13: 978-0-13-359414-0

In: Computer Science

Gru's schemes have a/an 7% chance of succeeding. An agent of the Anti-Villain League obtains access...

Gru's schemes have a/an 7% chance of succeeding. An agent of the Anti-Villain League obtains access to a simple random sample of 1100 of Gru's upcoming schemes.
Find the probability that...
(Answers should be to four places after the decimal, using chart method, do NOT use the continuity correction):

...less than 101 schemes will succeed:

...more than 95 schemes will succeed:

...between 95 and 101 schemes will succeed:

...less than 8.5% of schemes will succeed:

...more than 9.5% of schemes will succeed:

...between 8.5% and 9.5% of schemes will succeed:

In: Math

It is believed that the design of appurtenances in the stilling basin can reduce the basin...

It is believed that the design of appurtenances in the stilling basin can reduce the basin length by 70- 80%. Give comments on this statement. This question is open-ended. Therefore it must be supported by relevant literature.

In: Civil Engineering

Complete the following table of data for Ba(NO3)2. (Assume the density of water is 1.00 g/mL.)...

Complete the following table of data for Ba(NO3)2. (Assume the density of water is 1.00 g/mL.)

T(C)

Solubility (g/100. g) Concentration (M) Ksp DeltaG (kJ/mol)
37 14.1 0.539
43 15.8 0.605
49 17.6 0.673
55 19.5 0.746
61 21.5 0.823
67 23.5 0.899
73 25.6 0.979

Use a graph of ?G vs. T to determine the following. (Enter your answers to three significant figures.)

What is the value of ?H for the system?

What is the value of ?S for the system?

In: Chemistry

In Python: Define a function drawCircle. This function should expect a Turtle object, the coordinates of...

In Python:

Define a function drawCircle. This function should expect a Turtle object, the coordinates of the circle’s center point, and the circle’s radius as arguments. This function should draw the specified circle. The algorithm should draw the circle’s circumference by turning 3 degree and moving a given distance 120 times. Calculate the distance moved with the formula 2.0*π*radius/120.0.

In: Computer Science

identify 3 “non – BRIC” countries you think offer the greatest opportunity for “Future” growth and...

identify 3 “non – BRIC” countries you think offer the greatest opportunity for “Future”

growth and explain your selection (1-2 page responce)

In: Economics

I need the NPV of this project. Tax Rate is 40% and the WACC is 11.49%...

I need the NPV of this project. Tax Rate is 40% and the WACC is 11.49%

This project requires an initial investment of $2,000,000 in equipment which will cost an additional $250,000 to install. The firm will use the attached MACRS depreciation schedule to expense this equipment. Once the equipment is installed, the company will need to increase net working capital by $100,000. The project will last 6 years at which time the market value for the equipment will be $30,000.

The project will project a product with a sales price of $120.00 per unit and the variable cost per unit will be $65.00. The fixed costs would be $500,000 per year. Because this project is very different to current products sold by the business, management has imposed a 2 percentage point premium above its current WACC as the valuation hurdle it must meet or surpass.

Years 2014 2015 2016 2017 2018 2019 Forecasted Units Sold 21,000 55,000 44,000 28,000 25,000 11,000

In: Finance