Questions
Write the Java source code necessary to build a solution for the problem below: The Fibonacci...

Write the Java source code necessary to build a solution for the problem below:


The Fibonacci numbers form a sequence where each number is the sum of the previous two numbers. Starting from 0 and 1, the first eight Fibonacci numbers are built in the following list using the equation Fn = Fn-1 + Fn-2:

0, 0
0, 1
1, 1
1, 2
2, 3
3, 5
5, 8
8, 13

The sequence would be the numbers in red (0, 1, 1, 2, 3, 5, 8, 13).

Create a stack class and a test program to display the first 50 Fibonacci numbers in descending order. Use a stack to store these numbers. Once 50 numbers have been computed, print the numbers in a descending order. You will note that this process is naturally recursive. Therefore, use recursion to find this series of Fibonacci numbers.

In: Computer Science

1. In a survey of exercise habits, 15 out of 50 Americans aged 20-29 and 10...

1. In a survey of exercise habits, 15 out of 50 Americans aged 20-29 and 10 out of 60 Americans aged 40-49 reported riding a bicycle at least once a week. Let pA be the true proportion of Americans aged 18-29 who ride a bicycle once a week, and define pB similarly for the 40-49 group.

(a) Construct a 90% two-sided confidence interval for pA − pB.

(b) Construct a 99% confidence interval for pA − pB of the form (a,∞).

(c) Test for a difference in proportions using α = 0.05. Conduct the test by computing a test statistic and comparing it to a critical value.

(d) Redo the test using a P-value.

(e) State your conclusion to the hypothesis test in context.

In: Statistics and Probability

You recently got promoted at your job. You have since decided to buy your dream car...

You recently got promoted at your job. You have since decided to buy your dream car and expect that it will cost you $93,000 seven years from today. After budgeting your expenses, you decide that you can save $9,000 per year at the end of each year. Given a market interest rate of 13%, will you be able to purchase your car at the end of year 7? Would you be able to afford it one year later?

with financial calculator

In: Finance

Fuming because you are stuck in traffic? Roadway congestion is a costly item, both in time...

Fuming because you are stuck in traffic? Roadway congestion is a costly item, both in time wasted and fuel wasted. Let x represent the average annual hours per person spent in traffic delays and let y represent the average annual gallons of fuel wasted per person in traffic delays. A random sample of eight cities showed the following data.

x (hr) 26 5 21 37 22 23 18 5
y (gal) 45 3 34 53 33 37 28 9


1. Verify that Σx = 157, Σx2 = 3873, Σy = 242, Σy2 = 9322, and Σxy = 5986.

(A) Compute r =_______

The data in part 1 represent average annual hours lost per person and average annual gallons of fuel wasted per person in traffic delays. Suppose that instead of using average data for different cities, you selected one person at random from each city and measured the annual number of hours lost x for that person and the annual gallons of fuel wasted y for the same person.

x (hr) 22 4 23 41 16 26 2 37
y (gal) 65 8 15 50 25 33 4 71

2. Compute x and y for both sets of data pairs and compare the averages.

x y
Data 1
Data 2


3. Compute the sample standard deviations sx and sy for both sets of data pairs and compare the standard deviations.

sx sy
Data 1
Data 2

4. In which set are the standard deviations for x and y larger?

(A) The standard deviations for x and y are larger for the first set of data.

(B) The standard deviations for x and y are larger for the second set of data.   

(C) The standard deviations for x and y are the same for both sets of data.


5. Look at the defining formula for r. Why do smaller standard deviations sx and sy tend to increase the value of r?

(A) Dividing by smaller numbers results in a larger value.

(B) Multiplying by smaller numbers results in a smaller value.   

(C) Multiplying by smaller numbers results in a larger value.

(D) Dividing by smaller numbers results in a smaller value.


6. Verify that Σx = 171, Σx2 = 5015, Σy = 271, Σy2 = 13,785, and Σxy = 7750.

Compute r= ____


7. Compare r from part 1 with r from part 2. Do the data for averages have a higher correlation coefficient than the data for individual measurements?

(A) No, the data for averages do not have a higher correlation coefficient than the data for individual measurements.

(B) Yes, the data for averages have a higher correlation coefficient than the data for individual measurements.    


8. List some reasons why you think hours lost per individual and fuel wasted per individual might vary more than the same quantities averaged over all the people in a city.

In: Statistics and Probability

Briefly explain the different processes to use as a base for examining a project. Choose one...

Briefly explain the different processes to use as a base for examining a project. Choose one of these processes, and explain why it would be the most effective for 'Project Infiltration'.

Name and discuss the seven [7] strategies for reducing project time. Choose one strategy, and apply it in 'Project Infiltration'. Explain the process you used to do this
application.

Discuss the four [4] steps to install a time control system, and illustrate this in 'Project Infiltration'.

Based on the principles of budgeting, illustrate the implementation of cost control in 'Project Infiltration'. Motivate why it is important to have proper budgets in place, and why it is essential that cost be controlled in 'Project Infiltration'.

In: Civil Engineering

Four ice cubes at exactly 0 ∘C with a total mass of 53.5 g are combined...

Four ice cubes at exactly 0 ∘C with a total mass of 53.5 g are combined with 120 g of water at 75 ∘C in an insulated container. (ΔH∘fus=6.02 kJ/mol, cwater=4.18J/g⋅∘C) Part A If no heat is lost to the surroundings, what is the final temperature of the mixture? Express your answer using two significant figures.

In: Chemistry

A wheel is rotating freely at angular speed 530 rev/min on a shaft whose rotational inertia...

A wheel is rotating freely at angular speed 530 rev/min on a shaft whose rotational inertia is negligible. A second wheel, initially at rest and with 5 times the rotational inertia of the first, is suddenly coupled to the same shaft. (a) What is the angular speed of the resultant combination of the shaft and two wheels? (b) What fraction of the original rotational kinetic energy is lost?

In: Physics

Using the following data, prepare a cash budget for Plains Medical Center for Fiscal 2018. You...

Using the following data, prepare a cash budget for Plains Medical Center for Fiscal 2018. You can assume that the Medical Center started the fiscal year with $7,264,871 in cash on its balance sheet.

Once you compile that budget consider the following issues:

Assume the Medical Center wishes to keep a minimum cash balance each month that equals one month of salary expense plus one month of salary and other expenses. In addition, they are required to keep one year's worth of debt service payments in cash on hand each month. So your minimum cash balance must be the sum of those salary/expense items noted here, plus one year of debt payments. What is the minimum cash balance that Plains Medical Center should keep each month based on these assumptions?

Look at your cash budget calculations. Are there any months where the cash balance in that month falls below that minimum? If so, what management actions can you take to address this issue? Be specific!

Plains Medical Center

Cash Budgeting Data

Fiscal Year 2018 (7/1/17-6/30/18)

Estimated Patient Billings (at expected collection amount)

July

$7,219,178

August

7,219,178

September

6,986,301

October

7,219,178

November

6,986,301

December

7,219,178

January

7,219,178

February

6,520,548

March

7,219,178

April

6,986,301

May

7,219,178

June

6,986,301

Total

$85,000,000

50% of billings go to government payers, 40% to commercial payers, and 10% are self-pay accounts

The historic timing of collections looks like this:

Government

Commercial

Self-Pay

Month of service

15%

10%

2%

Month following service

50%

45%

10%

Second month following service

15%

15%

10%

Third month following service

10%

15%

10%

Fourth month following service

5%

10%

8%

Uncollectable

5%

5%

60%

Total

100%

100%

100%

You can assume that billings increased by 5% each month from year to year, so you can

use  March 2017/1.05 as a part of estimating collections for July 2018

Salaries for each month are estimated at $2,250,000 + 20% of that month's billings.

  * Payments for Salaries are 50% of the current month estimate + 50% of the prior month's estimate

  * Hourly employees are given a 5% bonus at Christmas (paid during December) totaling 10% of estimated salaries for December

Supply purchases are estimated at 17.5% of the billings in that month

  * Payments for supplies are made in total in the following month

Other operating expense purchases are estimated at 12.5% of the billings in that month

  * Payments for other expenses are made in total in the following month

The hospital was constructed using $18,000,000 in debt, payable in monthly installments over 25 years at 6% annual interest

It recognizes $445,000 in straight line depreciation expense each month. Depreciation is not funded.

The Board of Directors has approved the following Capital Expenditure budget for Fiscal 2018:

Item

Cost

Projected Purchase Date

Lab Chemistry Analyzer

$250,000

9/30/17

Replace CT Scanner

1,050,000

11/30/17

Replace two Anesthesia Machines

775,000

4/30/18

Total

$2,075,000

In: Accounting

During a hockey match, Jordan slips and crashes into the goalie who is initially motionless. Jordan...

During a hockey match, Jordan slips and crashes into the goalie who is initially motionless. Jordan grabs onto the goalie so they slide together after the collision. Jordan has a mass of 86 kg and the goalie has a mass of 95kg. If the two hockey players are sliding at 2.9 m/s after the collision, how fast was Jordan sliding before the collision? Friction and air resistance may be neglected.


In: Physics

Your organization currently has a defined contribution pension plan with employees contributing up to 3% with...

Your organization currently has a defined contribution pension plan with employees contributing up to 3% with a company match. Effective with the first pay of the new year, new employees will no longer be enrolled in that plan. Instead, they will be enrolled in the new Group Registered Retirement Savings Plan (RRSP) with the same contribution options. In your own words, explain the difference in the T4 information slip reporting for these two groups of employees.

In: Accounting