Questions
Write a function maxFun() that returns the maximum value in any given integer array. Determine the...

Write a function maxFun() that returns the maximum value in any given integer array. Determine the function parameters (complete the area shown in ___________.


___________maxFun(____________________________) {






}

In: Computer Science

Proposed project: Alchemy Mines is considering an investment in the rights to a platinum mine. Initial...

Proposed project:
Alchemy Mines is considering an investment in the rights to a platinum mine.
Initial investment
The owner of the mine will sell the rights to Alchemy Mines at a cost of $1,000,000
payable immediately. Purchase of the rights entitles Alchemy Mines to all mining rights
provided mining commences within one year and continues without interruption until the
entire deposit is recovered and the land restored in compliance with regulatory
requirements. If mining does not commence in one year, the title to the mine reverts to
the seller.
Expected operating variables
The firm has made the following assumptions regarding operating cash flows for the
mine:
Recoverable platinum: 100,000 ounces
Current market price of platinum: $889.60 per ounce
Expected price of platinum in one year: $904.00 per ounce
Expected fixed costs of mining and refining: $750,000
Expected variable costs of mining and refining: $873.50 per ounce
Cost to restore the land and remediate environmental damage: $525,000
No taxes are paid on profits from the project
If the firm mines the platinum, all cash in- and out-flows from mining and selling the
platinum and for remediation will occur in one year.
Additional Information:
The firm estimates additional economic variables as follows:
Risk free interest rate equals 2.5%
Expected market return: 11.50%
Beta for platinum mining and smelting: 0.662
Standard deviation of annual returns on platinum prices: 0.1995
1. Use net present value analysis to determine whether the firm should accept the
proposed Alchemy Mines project.
a. Determine the amount and timing of all expected cash flows for the proposed
project.
b. Determine the appropriate discount rate (using CAPM).
c. Calculate NPV.

d. Indicate whether Alchemy Mines should accept the project based on it NPV
and explain.
2. Use option pricing analysis to determine whether Alchemy Mines should accept
the proposed platinum mine project.
a. Determine whether the project cash flows have the characteristics of a put
option or a call option.
b. Find the implicit “strike price,” that is, the expected spot platinum price at
which the firm will elect to commence mining and processing rather than just
walk away from the project. (Remember that for an option, the option premium is
a sunk cost and does not affect the decision to exercise.)
c. Calculate the option value of the mine using the Black-Scholes options pricing
model.
Note: You can calculate the option value for a single ounce of platinum
using per ounce price and costs, then multiply that by the total amount of
platinum to get the total option value of the mine. Alternatively, you can
calculate the option value using the total price of platinum and the total
costs.
d. Compare the option value of the mine to the cost to acquire rights to the mine
to determine whether to accept the project.
e. Indicate whether Alchemy Mines should accept the project and explain.

In: Finance

A) Declare a String variable called myString0 and initialize it to "Java". B) Declare a String...

A) Declare a String variable called myString0 and initialize it to "Java".

B) Declare a String variable called myString1 and initialize it to "Programming".

C) Declare a String variable called myString2 and initialize it to "Language".

D) Print the concatenation of myString0 + " is a " + myString1 + " " + myString2 + ".".

E) Print the sum of the lengths of myString1 and myString2 (must call the length() method).

F) Print the 2nd, 4th, and 7th character of myString1 (must use the charAt() method), separated by commas.

G) Print the index of 'a' in myString0 (must use the indexOf() method).

H) Print myString2 converted to uppercase (must use the toUpperCase() method).

I) Print the 3rd through 8th character of myString1 (must use the substring() method).

J) Declare a String called myString3 and set it to "Whatever!", you must use the 'new' operator.

K) Declare a String called myString4 and set it to "Whatever!", you must use the 'new' operator.

L) Print a comparison of the two strings using (myString3 == myString4).

M) Print a comparison of the two strings using (myString3.equals(myString4)).

N) Declare three char variables c0, c1, and c2 with the values '^', 'G', and '7'.

O) Print the characters, separated by semicolons.

P) Print the ASCII value of the characters, separated by commas.
HINT: Use a typecast of the character from char to int.

In: Computer Science

1)The readings demonstrate some of the conflicting ethics between the legal system and science. For instance,...

1)The readings demonstrate some of the conflicting ethics between the legal system and science. For instance, the legal system is founded upon an adversarial model (here in the U.S. anyway –other countries use different models). In our adversarial legal system, and attorneys are ethically obligated to advocate for their client and tell the best story possible for their “side” out of the evidence available. In contrast, science is founded on objectivity – not advocacy – and thus data is supposed to speak for itself rather than be shaped to tell a good story. Why are these competing ethical foundations between the legal system and science important for understanding the challenge of practicing forensic psychology?
2)When a psychologist accepts a referral to do a forensic evaluation, who is the “client?” Discuss how and why this is a complicated question.  
3)Can a forensic psychologist wear “2 hats” – that is, can they serve in multiple roles in a case? For instance, in a child custody evaluation case, can a psychologist who provides treatment to the family then become the forensic psychologist hired in the case to conduct a child custody evaluation to help the court determine custody arrangements? Why or why not?

In: Psychology

What is Netflix's external environment based on the Pestel and Porter's Framework?

What is Netflix's external environment based on the Pestel and Porter's Framework?

In: Operations Management

(20) A 15kW electric motor, which is running at 43 rev/s, is used to drive a...

(20) A 15kW electric motor, which is running at 43 rev/s, is used to drive a crusher which operates 24 hours per day. An engineer has specified 212 mm and 315 mm pitch diameters for small pulley and large pulley respectively; and C 3454 V-belt type.

a) Calculate allowable power, design power and required number of belts. (Take design factor nd as 1.)

In: Mechanical Engineering

Calibration of a glass electrode gave a reading of 139.7 mV with saturated potassium hydrogen tartrate...

Calibration of a glass electrode gave a reading of 139.7 mV with saturated potassium hydrogen tartrate buffer standard (pH = 3.557) and a reading of -92.2 mV with 0.08 m HEPES, 0.08 m NaHEPES, 0.08 m NaCl buffer standard (pH = 7.454), both measured at 30°C.

(a) What is the observed slope (mV/pH unit) of the calibration curve?

(b) What is the theoretical slope at 30°C?

(c) What is β, the electromotive efficiency to three significant figures?? Open the hint panel below for the definition of electromotive efficiency.

(d) What is the pH of an unknown that gives a reading of 46.9 mV with this electrode at 30°C?

In: Chemistry

Objective: The objective of this assignment is to allow students to understand the basic principles of...

Objective:

The objective of this assignment is to allow students to understand the basic principles of arrays

Program Requirements:

The assignment will require the students use arrays to perform mathematical calculations.

Program Setup: Functions to include in the program

  • The program will have three functions

    • Function 1: Responsible for setting values in the arrays

    • Function 2: Responsible for printing values in arrays

    • Function 3: Responsible for doing calculations to arrays

Function 1 Details: Setting array values

  • Parameters: 3

    • Array of integers

    • Int value representing the size of array

    • String value representing the “array type”

  • Return Type: None

  • This function will be responsible for filling in the values of the array

  • The function will in the array using the following steps

  • Step 1: Checking the value of the array type (3rd parameter)

    • The array type will determine how we are going to fill in the arrays

    • The array type is going to be checked for the following

      • Value 1

      • Value 2

  • Step 1 Part A: Filling in the array for “value 1”

    • The program will ask the user to enter an integer value

    • The integer value will be stored in the array

    • The user will have to keep entering values until the entire array is filled (using the size of the array)

  • Step 1 Part B: Filling in the array for “value 2”

    • The program will randomly select a number between 1 and 200

    • The random number will be stored in the array

    • The program will store a random number until the entire array is filled (using the size of the array)


Function 2 Details: Printing arrays

  • Parameters: 2

    • Array of integers

    • Int value representing the size of array

  • Return Type: None

  • This function will be responsible for printing out the contents of the array

  • Contents will be print in the following format

    • Index # : value of the array (at that index)

Function 3 Details: Performing mathematical calculations on the arrays

  • Parameters: 5

    • Array of integers for value 1

    • Array of integers for value 2

    • Array of integers for the sum

    • Int value representing the size of array

    • String value representing the math operation

  • Return Type: None

  • This function will be responsible for performing the mathematical calculations on the two arrays

  • Step 1: Checking the value of the math operation (5th parameter)

    • The math operation will determine what mathematical calculation will be done on the two arrays

    • The math operation will be one of the following choices

      • Add

      • Sub

      • Mul

      • Div

  • Step 2: Perform the selected mathematical calculation

    • The function is then going to perform the mathematical on the two arrays

    • For Example, lets say “Add” was selected

      • The function will then go through every element in both arrays and add them together

      • The results will be stored in the sum array

      • Array1[i] + array2[i] = sum[i]

    • The program will then print the results to the screen in the following format

      • Array1[i] <mathematical operator> array2[i] = sumArray[i]


Flow of the program

  • Now that the functions have been defined, we are now going to describe how the program is going to flow from the main

  • Program Setup

    • There should be three arrays declared at the beginning of the main

      • All three arrays should have the same size

  • Step 1: Filling in the values for array 1

    • Use Function 1 to set the values for array 1

    • Array 1 will be passed as the first parameter

    • Array size will be passed as the second parameter

    • “Value 1” will be passed as the third parameter

  • Step 2: Printing the contents of array 1

    • Use Function 2 to print array contents

    • Array 1 will be passed as the first parameter

    • Array size will be passed as the second parameter

  • Step 3: Filling in the values for array 2

    • Use Function 1 to set the values for array 2

    • Array 2 will be passed as the first parameter

    • Array size will be passed as the second parameter

    • “Value 2” will be passed as the third parameter

  • Step 4: Printing the contents of array 2

    • Use Function 2 to print array contents

    • Array 2 will be passed as the first parameter

    • Array size will be passed as the second parameter

  • Step 5: Performing mathematical calculations

    • Use Function 3 to perform the following mathematical calculations

    • Call function 3 four times

    • The first four parameters are going to stay the same for each call

      • Array 1

      • Array 2

      • Sum Array

      • Array Size

    • The fifth parameter is going to change base between each call

      • Add: first call

      • Sub: second call

      • Mul: third call

      • Div: fourth call

Done in C++ and visual studios 2017

In: Computer Science

What is the difference between a mission statement, strategic goal, tactical goal, and operational goal?

What is the difference between a mission statement, strategic goal, tactical goal, and operational goal?

In: Operations Management

Write a class "car" with data fields "make" and "speed." The constructor should accept the "make"...

Write a class "car" with data fields "make" and "speed." The constructor should accept the "make" parameter. Be sure to use the "this" reference when setting the "make" parameter. The class should contain a static field for defaultSpeed set to 50. The class "car" should have a method "speed." The method should return the defaultSpeed. There should be an overloaded method for speed that takes a speed parameter. Finally, this class should take a getSpeed method that returns the speed. Create a class TestCar that instantiates a car and prints the default speed as well as a modified speed.

In: Computer Science

When managing the performance of an organization, the leadership is always balancing between the risks and...

When managing the performance of an organization, the leadership is always balancing between the risks and rewards of using financial and non-financial information as well as internally and externally sourced information, in its performance report.

(a) Define and provide an example of each of the following:

            i. financial information and non-financial information.                 

            ii. internally and externally sourced information.

Word count should be a minimum 150 words, not exceeding 250 words.

(b) Elaborate on the benefits and issues of using the following information:

i. financial information versus non-financial information. (6.5 marks)

ii. internally sourced information versus externally sourced information.             (6.5 marks)

For each set of information, there should be at least two advantages and two disadvantages provided (no tables allowed, your answers should have proper headers and paragraphs and word count should be a minimum 350 words, not exceeding 450 words.            Marks will be awarded for format.                                               

In: Accounting

From the following mySql query create a function that returns a nth value of a table:...

From the following mySql query create a function that returns a nth value of a table:

SELECT name, (SUM(price * quantity)) AS TotalPrice

FROM Items NATURAL JOIN Inventory

GROUP BY name

ORDER BY (TotalPrice) DESC

LIMIT 1, OFFSET 1;

Shema:

Inventory(name: String,item:String,quantity:integer)

Items(item: String, brand: String, price:double)

In: Computer Science

THE COFFEE CLUB celebrates almost three decades of really good food, great service and excellent coffee....

THE COFFEE CLUB celebrates almost three decades of really good food, great service and excellent coffee. It manages 400 stores throughout 9 countries, with upwards of 40 million dedicated customers. THE COFFEE CLUB has identified Westfield Parramatta and Sunshine Marketplace as two possible locations for a new Wimpy franchise given the considerable growth in the local economy. The cost of the feasibility study amounted to $30 000. Assume that you are the capital budgeting manager of THE COFFEE CLUB and have been assigned to this project. Consider the following information and calculate the relevant cash flows for the two mutually exclusive locations. The coffeehouses will have the same serving capacity, i.e. they are the same size.

  • The cost of kitchen and restaurant equipment will amount to $600 000.
  • Installation cost will amount to $25 000.
  • The change in net working capital is $90 000.
  • Although THE COFFEE CLUB operates as a franchise, they still consider operating cash flows

before setting up a new franchise to ensure the maximum profitability.

  • Annual sales in Westfield Parramatta is expected to be $1.4 million and $900 000 in Sunshine

Marketplace.

  • THE COFFEE CLUB franchisee will rent suitable premises to house the coffeeshop. In Westfield

Parramatta the annual rent will amount to $200 000 whereas the annual rent in Sunshine

Marketplace will be slightly less, namely $170 000.

  • Operating expenses (excluding depreciation) will amount to $600 000 p.a. for Westfield Parramatta

and $450 000 p.a. for Sunshine Marketplace.

  • Fixed (non-current) assets are expected to have a life span of 5 years and will be depreciated on a straight-line basis.
  • Profits are taxed at the normal company tax rate of 28%.
  • Assets will be sold after 5 years. Given the fact that sales in Westfield Parramatta are expected to

be higher (and thus assets are exposed to more wear and tear). THE COFFEE CLUB expects to get less for Westfield Parramatta’s assets than those of Sunshine Marketplace. It is thus expected that Westfield Parramatta’s assets could be sold after 5 years for $18 000 whereas Sunshine Marketplace’s could be sold for $20 000.

Therefore, you are required to:

  1. (a) Calculate the Initial Investment Outlay (IIO) of the new franchises. Note: it will be the same for Westfield Parramatta and Sunshine Marketplace. Clearly show your calculations. (4)
  2. (b) Calculate the Operating Cash Flows (OCFs) for both locations for the first year. Clearly show all calculations. (6)
  3. (c) Calculate the terminal Cash Flow (TCF) in the last year for both locations. Clearly show your calculations. Assume that the capital gain tax applies at a rate of 25%. (7)
  4. (d) What is the optimal location for the new THE COFFEE CLUB franchise? The required rate of return is 15%. Motivate your answer using the NPV and IRR technique. (11)

In: Accounting

​Beryl's Iced Tea currently rents a bottling machine for $ 52 comma 000 per​ year, including...

​Beryl's Iced Tea currently rents a bottling machine for $ 52 comma 000 per​ year, including all maintenance expenses. It is considering purchasing a machine instead and is comparing two​ options: a. Purchase the machine it is currently renting for $ 165 comma 000. This machine will require $ 21 comma 000 per year in ongoing maintenance expenses. b. Purchase a​ new, more advanced machine for $ 265 comma 000. This machine will require $ 18 comma 000 per year in ongoing maintenance expenses and will lower bottling costs by $ 13 comma 000 per year.​ Also, $ 37 comma 000 will be spent up front to train the new operators of the machine. Suppose the appropriate discount rate is 7 % per year and the machine is purchased today. Maintenance and bottling costs are paid at the end of each​ year, as is the cost of the rental machine. Assume also that the machines will be depreciated via the​ straight-line method over seven years and that they have a​ 10-year life with a negligible salvage value. The marginal corporate tax rate is 40 %. Should​ Beryl's Iced Tea continue to​ rent, purchase its current​ machine, or purchase the advanced​ machine? To make this​ decision, calculate the NPV of the FCF associated with each alternative.

In: Finance

The defining features of oppression are that it is: pervasive, restrictive, hierarchical, complex across relationships, and...

The defining features of oppression are that it is: pervasive, restrictive, hierarchical, complex across relationships, and internalized. a) Define these terms, and discuss how we have been socialized to accept systems of oppression as normal. b) Share an example of a system, organization, group, etc. that is oppressive in your opinion. This can be one in which you have worked, one you have experienced as a customer, or which you have otherwise experienced or observed. If you don't have an example that you can personally reflect upon, you may choose one that you know of from past research or from current events.

In: Operations Management