Questions
JAVA ONLY. Program 3: Distance calc. This question is fairly straightforward. Design (pseudocode) and implement (source...

JAVA ONLY.

Program 3: Distance calc. This question is fairly straightforward. Design (pseudocode) and implement (source code) a program to compute the distance between 2 points. The program prompts the user to enter 2 points (X1, Y1) and (X2, Y2). The distance between 2 points formula is: Square_Root [(X2 – X1)^2 + (Y2 – Y1)^2] Document your code, properly label the input prompts, and organize the outputs as shown in the following sample runs. Note: for C++, #include and then call sqrt(). For Java, you’ll use Math.sqrt() and for C# it’s Math.Sqrt(). See the short appendix below for the general form. Sample run 1: Entered X1: 1.5 Entered Y1: -3.4 Entered X2: 4 Entered Y2: 5 Distance: 8.764131445842194 Sample run 2: Entered X1: -5.5 Entered Y1: -8.8 Entered X2: 25 Entered Y2: 4.5 Distance: 33.27371334852784 Sample run 3: Entered X1: 2 Entered Y1: 2 Entered X2: 10 Entered Y2: 10 Distance: 11.313708498984761

Program 4: Is there a Prius version? Did you know that the average Boeing 747 airplane uses approximately 1 gallon of fuel per second? Given the speed of the airplane, that means it gets 5 gallons to the mile. No, not 5 miles to the gallon, 5 gallons to the mile. You may be questioning why such a horribly inefficient machine is allowed to exist, but you’ll be happy to find out that, because this airplane hold 568 people, it averages about 0.01 gallons per person – (100 miles per gallon per person). Your job is to design (pseudocode) and implement (source code) a program that asks the user for a distance the plane has to fly (i.e. the length of the trip) and also asks the cost of jet fuel (¬¬which is currently $1.80 per gallon). The program should then calculate the total fuel charges to make the trip. Next, ask the user how many people will fly, as well as the average cost of a ticket. Finally, print the total profit made (or lost) and the average gas mileage per person. Document your code and properly label the input prompts and the outputs as shown below. Sample run 1: Enter the flight distance: 1000 Enter the current cost of jet fuel: $2 The flight will cost $10000.0 in fuel. Enter the number of passengers: 5 Enter the average cost of a ticket: 1000 You will make a profit of $-5000.0 You averaged 1.0 miles per person per gallon! Sample run 2: Enter the flight distance: 500 Enter the current cost of jet fuel: $3 The flight will cost $7500.0 in fuel. Enter the number of passengers: 500 Enter the average cost of a ticket: 300 You will make a profit of $142500.0 You averaged 100.0 miles per person per gallon! Sample run 3: Enter the flight distance: 4200 Enter the current cost of jet fuel: $1.80 The flight will cost $37800.0 in fuel. Enter the number of passengers: 550 Enter the average cost of a ticket: 600 You will make a profit of $292200.0 You averaged 110.0 miles per person per gallon!

In: Computer Science

An existing public park serving 1.8 Million visitor/year is to be improved. Initial cost is SR...

  1. An existing public park serving 1.8 Million visitor/year is to be improved. Initial cost is SR 2.25 Million and the annual operating and maintenance cost starts with SR 0.145 Million during the first year and increases 3%/year thereafter. The planning horizon is 20 years, the salvage value is 32% of the initial cost, and the interest rate is 10%. The minimum additional benefits/visit that will justify the facility improvement is closest to: a) SR 0.17 b) SR 0.24 c) SR 0.15 d) SR 0.3

In: Economics

By Using Graphs of Supply and Demand, show what will happen tothe price and sales...

By Using Graphs of Supply and Demand, show what will happen to the price and sales in the movie theater prices if the following occur: (1) an increase in the price of DVD rentals, (2) Increase in the price of parking at the movie theater and (3) Increase in theater worker's wages. Explain what will happen to the shifts and/or movements in each case and then determine what happens to the sales and price of movie theater prices.

In: Economics

2. The probabilities with which we choose one of three target shooters are 0.2 for Angela,...

2. The probabilities with which we choose one of three target shooters are 0.2 for Angela, 0.5 for Brunhilde, and 0.3 for Chelsea. The probabilities of each hitting a target from one shot are 0.3 for Angela, 0.4 for Brunhilde, and 0.1 for Chelsea.

(a) The chosen shooter fires one shot and misses the target. Find the probability that we have chosen Angela.

(b) Are the events that Angela was chosen and the target was missed positively related, negatively related, or independent? Justify your answer.

(c) Suppose Angela and Brunhilde each fired one shot at the target. If one bullet is found in the target, find the probability that it came from Brunhilde’s gun. Assume that the two shooters fire at the target independently.

In: Statistics and Probability

Levered Equity Beta D/E Ratio Debt Beta A company 3.24 205.16% 0.3 B company 4.05 5663.67%...

Levered Equity Beta D/E Ratio Debt Beta
A company 3.24 205.16% 0.3
B company 4.05 5663.67% 0.4
C company -0.11 106.22% 0.3
Southwest Airlines -0.01 14.93% 0.2

1. Estimate the unlevered equity beta for Southwest Airlines. You may assume a 38% tax rate in your calculations.

2. Based on your estimate of Southwest Airlines’ unlevered equity beta, relever the beta to get an estimate of the firm’s levered beta.

3. The airline industry was obviously in a very unique position at the end of 2006. Are there any special concerns that you have regarding the estimation of the cost of equity for Southwest Airlines using the procedure described here?

In: Finance

Levered Equity Beta D/E Ratio Debt Beta A company 3.24 205.16% 0.3 B company 4.05 5663.67%...

Levered Equity Beta D/E Ratio Debt Beta
A company 3.24 205.16% 0.3
B company 4.05 5663.67% 0.4
C company -0.11 106.22% 0.3
Southwest Airlines -0.01 14.93% 0.2

1. Estimate the unlevered equity beta for Southwest Airlines. You may assume a 38% tax rate in your calculations.

2. Based on your estimate of Southwest Airlines’ unlevered equity beta, relever the beta to get an estimate of the firm’s levered beta.

3. The airline industry was obviously in a very unique position at the end of 2006. Are there any special concerns that you have regarding the estimation of the cost of equity for Southwest Airlines using the procedure described here?

In: Accounting

Levered Equity Beta D/E Ratio Debt Beta A company 3.24 205.16% 0.3 B company 4.05 5663.67%...

Levered Equity Beta D/E Ratio Debt Beta
A company 3.24 205.16% 0.3
B company 4.05 5663.67% 0.4
C company -0.11 106.22% 0.3
Southwest Airlines -0.01 14.93% 0.2

1. Estimate the unlevered equity beta for Southwest Airlines. You may assume a 38% tax rate in your calculations.

2. Based on your estimate of Southwest Airlines’ unlevered equity beta, relever the beta to get an estimate of the firm’s levered beta.

3. The airline industry was obviously in a very unique position at the end of 2006. Are there any special concerns that you have regarding the estimation of the cost of equity for Southwest Airlines using the procedure described here?

In: Finance

A typical thickness for a sheet of paper is 0.004 inches. If you fold a sheet...

A typical thickness for a sheet of paper is 0.004 inches. If you fold a sheet of paper once, the thickness of
the folded paper will double to a value of 0.008 inches. A second fold will result in a folded thickness of
0.016 inches. Create a spreadsheet that shows the number of folds from 0 to 50 and the resulting
thickness of each fold. Calculate the resulting thickness in units of inches, feet, and miles.

In: Math

A bicycle with 19-in.-diameter wheels has its gears set so that the chain has a 6-in....

A bicycle with 19-in.-diameter wheels has its gears set so that the chain has a 6-in. radius on the front sprocket and 3-in. radius on the rear sprocket. The cyclist pedals at 190 rpm.
Round answers to 2 decimal places as needed.

The linear speed of the bicycle in inches per minute = ???

The speed of the bike in miles per hour = ???

Please show how to work on the calculator.

In: Advanced Math

Using the table below, indicate which scale of measurement (nominal, ordinal, interval/ratio) is most appropriate for...

Using the table below, indicate which scale of measurement (nominal, ordinal, interval/ratio) is most appropriate for the variable indicated.

   

VARIABLE

TYPE OF MEASUREMENT SCALE

Alphabetical listing of students

Academic major

Number of minutes before and after an event

Fear of crime (a lot, some, none)

Speed (miles per hr.)

Years of marriage

Position when standing in line

Religion

In: Statistics and Probability