Questions
Explain the important elements of the decision when deciding to make or buy. What costs should...

Explain the important elements of the decision when deciding to make or buy. What costs should be considered? What costs should be ignored?

 

In: Accounting

Provide several criticisms of relative valuation. Which method of valuation do you think is more accurate,...

Provide several criticisms of relative valuation. Which method of valuation do you think is more accurate, relative or discounted present value (DCF or intrinsic value) ? Why? How would rising risks or rising interest rates affect multiples? DCF? Be specific about how rising risks or interest rates influence multiplers? DCF? How important to valuation is classifying a firm into the correct industry? In what industry would you classify Amazon (past and future)?

In: Finance

STRICT DOWNVOTE IF NOT DONE FULLY, WILL REPORT ALSO IF COPY PASTED OR MODIFIED ANSWER Develop...

STRICT DOWNVOTE IF NOT DONE FULLY, WILL REPORT ALSO IF COPY PASTED OR MODIFIED ANSWER Develop a class, using templates, to provide functionality for a set of recursive functions. The functions specified as recursive must be written recursively (not iterativly). The UML class specifications are provided below. A main will be provided. Additionally, a make file will need to be developed and submitted. ● Recursion Set Class The recursion set template class will implement the template functions. recursionSet -length: int -*mySet: myType -MAX_VALUE = 500000 static const: int -LIMIT = 1000 static const: int +recursionSet() +recursionSet(const recursionSet&) +~recursionSet() +getSetLength() const: int +generateElements(int): void + getElement(int) const: myType +setElement(int, myType): void +readValue(const string) const: int +printSet() const: void +operator == (const recusrionSet&): bool +tak(myType, myType, myType) const: myType +printSeptenary(myType) const: void +squareRoot(myType, myType) const: myType -recSqRoot(myType, myType, myType) const: myType +recursiveSum() const: myType -rSum(int) const: myType +checkParentheses(string) const: bool -recChkPar(string, int, int) const: bool +recursiveInsertionSort(): void -recInsSort(int, int): void -insertInOrder(myType, int, int): voidYou may add additional private functions if needed (but, not for the recursive functions). Note, points will be deducted for especially poor style or inefficient coding. Function Descriptions • The recursionSet() constructor should set the length to 0 and mySet pointer to NULL. • The recusrsionSet(const recursionBucket&) copy constructor should create a new, deep copy from the passed object. • The ~recursionSet() destructor should delete the myType array, set the pointer to NULL, and set the size to 0. • The setElement(int, myValue) function should set an element in the class array at the given index location (over-writing any previous value). The function must include bounds checking. If an illegal index is provided, a error message should be displayed. • The getElement(int) should get and return an element from the passed index. This must include bounds checking. If an illegal index is provided, a error message should be displayed and a 0 returned. • The getSetLength() functions should return the current class array length. • The printSet(int) function should print the formatted class array with the passed number of values per line. Use the following output statement: cout << setw(5) << mySet[i] << " • "; Refer to the sample executions for formatting example. The readValue(string) function should prompt with the passed string and read a number from the user. The function should ensure that the value is 3 1 and £ MAX_VALUE. The function should handle invalid input (via a try/catch block). If an error occurs (out of range or invalid input) an appropriate message should be displayed and the user re- prompted. Example error messages include: cout << "readSetLenth: Sorry, too many " << "errors." << endl; cout << "readSetLenth: Error, value " << cnt << " not between 1 and " << numMax << "." << endl; • Note, three errors is acceptable, but a fourth error should end the function and return 0. The generateList(int) function should dynamically create the array and use the following casting for rand() to fill the array with random values. mySet[i] = static_cast(rand()%LIMIT); • • • The printSeptenary(myType) function should print the passed numeric argument in Septenary (base-7) format. Note, function must be written recursively. The recursiveSum() function will perform a recursive summation of the values in class data set and return the final sum. The function will call the private rSum(int) function (which is recursive). The rSum(int) function accepts the length of the data set and performs a recursive summation. The recursive summation is performed as follows: rSum ( position )= • { array[ 0] array[ position ] + rSum ( position−1) if position = 0 if position > 0 The tak(myType) function should recursively compute the Tak 1 function. The Tak function is defined as follows: tak ( x , y , z) = { z tak ( tak ( x−1, y , z) , tak ( y−1, z , x) , tak ( z −1, x , y ) ) 1 For more information, refer to: http://en.wikipedia.org/wiki/Tak_(function) if y≥ x if y < x• • The squareRoot(myType, myType) function will perform a recursive estimation of the square root of the passed value (first parameter) to the passed tolerance (second parameter). The function will call the private sqRoot(myType,myType,myType) function (which is recursive). The private recSqRoot(myType,myType,myType) function recursively determines an estimated square root. Assuming initially that a = x, the square root estimate can be determined as follows: recSqRoot ( x , a , epsilon) = • • • • • { 2 if ∣ a − x ∣ ≤ epsilon a 2 (a + x) sqRoot x , , epsilon 2 a ( ) if ∣ a 2 − x ∣ > epsilon The recursiveInsertionSort() function should sort the data set array using a recursive insertion sort. The recursiveInsertionSort() function should verify the length is valid and, if so, call the recInsSort() function to perform the recursive sorting (with the first element at 0 and the last element at length-1). The recInsSort(int, int) function should implement the recursive insertion sort. The arguments are the index of the first element and the index of the last element. If the first index is less than that last index, the recursive insertion sort algorithm is follows: ▪ Recursively sort all but the last element (i.e., last-1) ▪ Insert the last element in sorted order from first through last positions To support the insertion of the last element, the insertInOrder() function should be used. The insertInOrder(myType, int, int) function should recursively insert the passed element into the correction position. The arguments are the element, the starting index and the ending index (in that order). The function has 3 operations: ▪ If the element is greater than or equal to the last element in the sorted list (i.e., from first to last). If so, insert the element at the end of the sorted (i.e, mySet[last+1] = element). ▪ If the first is less than the last, insert the last element (i.e., mySet[last]) at the end of the sorted (i.e., mySet[last+1] = mySet[last]) and continue the insertion by recursively calling the insertInOrder() function with the element, first, and last-1 values. ▪ Otherwise, insert the last element (i.e., mySet[last]) at the end of the sorted (i.e., mySet[last+1] = mySet[last]) and set the last value (i.e., mySet[last]) to the passed element. The checkParentheses(string) function should determine if the parentheses in a passed string are correctly balanced. The function should call the private recChkPar(string, int, int) function (which is recursive) The recChkPar(string, int, int) function should determine if the parentheses in a string are correctly balanced. The arguments are the string, an index (initially 0), and a parenthesis level count (initially 0). The index is used to track the current character in the string. The general approach should be as follows: ◦ Identify base case or cases. ◦ Check the current character (i.e., index) for the following use cases: ▪ if str[index] == '(' → what to do then ▪ if str[index] == ')' → what to do then ▪ if str[index] == any other character → what to do then Note, for each case, increment the index and call function recursively.

In: Computer Science

Program must be OOP design.   Prompt the user to enter 10 doubles and fill an array...

Program must be OOP design.  

  1. Prompt the user to enter 10 doubles and fill an array
  2. Print the array
  3. Fill an array with 10 random numbers and print the array
  4. Sort the array -- then print
  5. Delete index[ 3] of the array and re-print the array

JAVA

This is my program so far. I am having trouble with my delete element method.



import java.util.Arrays;
import java.util.Random;
import java.util.Scanner;


public class ArrayPlay {

    Random rand = new Random();//assign random number variable
    private double[] tenNumArray = new double[10];//initiate array containing 10 doubles.

    Scanner input = new Scanner(System.in);//create new scanner


    public Random getRand() {
        return this.rand;
    }

    public void setRand(Random rand) {
        this.rand = rand;
    }

    public double[] getTenNumArray() {
        return this.tenNumArray;
    }

    public void setTenNumArray(double[] tenNumArray) {
        this.tenNumArray = tenNumArray;
    } //end getters//setters

    //begin method
    public void fillArrayAndDisplay() {//begin prompt User method

        // #1 Prompt the user to enter 10 doubles and fill an array
        System.out.println("Enter ten elements to fill the array");
        for (int i = 0; i < this.tenNumArray.length; i++) {//for index equals 1 count plus 1 to 10
            this.tenNumArray[i] = input.nextDouble();//placing values index values into the array
        }//end for loop

        // #2 Print array
        System.out.println("The Numbers you entered into the array are");
        System.out.printf(Arrays.toString(this.tenNumArray)); // displays user filled array
    }//ends prompt User and print method


    // #3 Fill an array with 10 random numbers and print the array
    public void randomArrayAndDisplay() {   //begins random numbers and display array
        for (int i = 0; i < this.tenNumArray.length; i++) {
            this.tenNumArray[i] = rand.nextInt(10);//create the random numbers using Random class object. set to 10
        }
        System.out.println("\n The Randomly generated numbers are; ");
        System.out.printf(Arrays.toString(this.tenNumArray)); // displays random numbers
    }//ends random array and display method

    //  4. Sort the array -- then print
    public void sortNumberAndDisplay() {

        Arrays.sort(this.tenNumArray); //replaces your whole sort function
        System.out.println("\n The random numbers sorted are: ");
        System.out.printf(Arrays.toString(this.tenNumArray)); // replaces your display line
       }// end sort array method

    // #5. Delete index[ 3] of the array and re-print the array
    //begin delete element method
    public void deleteArrayElements(int index) {
        // If the array is empty
        // or the index is not in array range
        // return the original array
        if (this.tenNumArray == null
                || index >= this.tenNumArray.length || index < 0) {
            System.out.println("\n\n No deletion operation can be performed\n\n");

        } else {
            double[] tempArray = new double[this.tenNumArray.length - 1];

            // Copy the elements except the index
            // from original array to the other array
            for (int i = 0, k = 0; i < this.tenNumArray.length; i++) {

                // if the index is
                // the removal element index
                if (i == index) {
                    continue;
                }

                // if the index is not
                // the removal element index
                tempArray[k++] = this.tenNumArray[i];
            }

            // return the resultant array
            System.out.println(tempArray[4] + " \n delete num " + " ");

        }


    }

    public void loop(){
        fillArrayAndDisplay();//runs prompt user
        randomArrayAndDisplay();
        sortNumberAndDisplay();
        deleteArrayElements(3);//delete index 3
    }

}















In: Computer Science

If you were asked to graph or quantify the risk of owning IBM stock, how would...

If you were asked to graph or quantify the risk of owning IBM stock, how would you do it? What is your preferred measure of risk? How would you demonstrate that your metric captures risk adequately? Identify several S&P listed companies that you consider to be risky investments? How does rising global turmoil influence risk? The price of gold? The price of U.S. Treasury bonds? U.S. equities? Which is a riskier asset, a 3-month U.S. Treasury bond or a 10-year U.S. Treasury bond? Explain. What factors could push the yield on 6-month U.S. Treasury higher than the 10-year U.S. Treasury bond.

In: Finance

You are the financial manager of a multinational corporation and you are contemplating new investments in...

You are the financial manager of a multinational corporation and you are contemplating new investments in production facilities in China. What are the risks and/or concerns of investing in production facilities in China amidst the US-China trade war that began early in 2018?

In: Finance

1. Mary Poppins mows her own yard to save money. Her neighbor Paul George hired a...

1. Mary Poppins mows her own yard to save money. Her neighbor Paul George hired a lawn service to mow his yard. One day Mary is looking out the window and sees Paul’s lawn service drive up and begin to mow her yard, not Paul’s. Mary thinks that is great and does not say anything to the lawn service while they mow the yard.The following week, Mary gets a bill from the lawn service. She calls the owner and says that she does not have to pay because there was no contract by which she agreed to have her yard mowed.    Is the lawn service entitled to payment by Mary? Why?

2.      On February 1, 2020, Jimmy Fallon sent an email to Stephen Colbert offering to pay Stephen $10,000 if he wears a Speedo bathing suit on his show. Stephen replied to the email that he accepted. On February 14th, Stephen wore a Speedo bathing suit on his show. On February 15th, Stephen told Jimmy to send him the money but Jimmy refused claiming that an email cannot be a valid contract. Who is right? Why?





In: Operations Management

Is there any benchmark for surveying the performance of security architecture? Test or evaluate the performance.

Is there any benchmark for surveying the performance of security architecture?

Test or evaluate the performance.

In: Computer Science

A simple steam power cycle contains a turbine, condenser, pump and a boiler. If the turbine...

A simple steam power cycle contains a turbine, condenser, pump and a boiler. If the turbine inlet pressure is 14.5 MPa and 550 °C, and the Condenser Inlet Pressure is 19 kPa, calculate the following:

  1. Turbine Inlet Enthalpy (kJ/kg)
  2. Condenser Inlet Enthalpy (kJ/kg)
  3. Condenser Inlet Temperature (°C)
  4. Pump Inlet Enthalpy (kJ/kg)
  5. Boiler Inlet Enthalpy (kJ/kg)
  6. Boiler Inlet Temperature (°C)
  7. Turbine Work Output (kJ/kg)
  8. Boiler Heat Addition (kJ/kg)
  9. Net Work Output (kJ/kg)
  10. Efficiency of the Cycle (%)

Work as accurate as possible. For each correct answer you receive 1 Mark, thus 10 Maximum. Choose the most appropriate answer from the lists, and then continue with the chosen answer in order to have your calculations as accurate as possible.

In: Mechanical Engineering

Managing a business is stressful for both the leader and the employees. What time and stress...

Managing a business is stressful for both the leader and the employees. What time and stress management tactics would you implement?

In: Operations Management

PA4-2 Assigning Costs Using Traditional System, Assigning Costs Using Activity Proportions [LO 4-1, 4-3, 4-5, 4-6]...

PA4-2 Assigning Costs Using Traditional System, Assigning Costs Using Activity Proportions [LO 4-1, 4-3, 4-5, 4-6]

Carlise Corp., which manufactures ceiling fans, currently has two product lines, the Indoor and the Outdoor. Carlise has total overhead of $133,810.

Carlise has identified the following information about its overhead activity cost pools and the two product lines:

Activity Cost Pools Cost Driver Cost Assigned
to Pool
Quantity/Amount Consumed by Indoor Line Quantity/Amount Consumed by Outdoor Line
Materials handling Number of moves $ 17,010 630 moves 270 moves
Quality control Number of inspections $ 85,120 5,600 inspections 5,600 inspections
Machine maintenance Number of machine hours $ 31,680 20,000 machine hours 24,000 machine hours

Required:
1.
Suppose Carlise used a traditional costing system with machine hours as the cost driver. Determine the amount of overhead assigned to each product line. (Do not round intermediate calculations and round your final answers to the nearest whole dollar amount.)



2. Calculate the activity proportions for each cost pool in Carlise's ABC system. (Round your answers to 2 decimal places.)

  

3. Calculate the amount of overhead that Carlise will assign to the Indoor line if it uses an ABC system. (Round your intermediate calculations to 2 decimal places and round your final answers to the nearest whole dollar amount.)



4. Determine the amount of overhead Carlise will assign to the Outdoor line if it uses an ABC system. (Round your intermediate calculations to 2 decimal places and round your final answers to the nearest whole dollar amount.)

  

5. Compare the results for a traditional system with an ABC system. Which do you think is more accurate?

Traditional System
ABC System

In: Accounting

In the context of the “international debt crisis”, why were MNCs, international banks and national governments...

  1. In the context of the “international debt crisis”, why were MNCs, international banks and national governments of less developed countries eager to utilize debt-for-equity swaps?

In: Finance

Explain what a biased sample is and how random sampling reduces the potential of obtaining a...

Explain what a biased sample is and how random sampling reduces the potential of obtaining a sample that is biased. In inferential statistics, why is a biased sample a bad thing?

In: Math

Describe the difference between name equivalence and structure equivalence and describe the difference between their use...

Describe the difference between name equivalence and structure equivalence and describe the difference between their use in modern programming languages. In your answer, clearly define both types of equivalence and show an example in a programming language for each type of equivalence.

In: Computer Science

GM, Ford, and Tesla are automobile companies. Or are they? Explain how valuing Tesla and Ford...

GM, Ford, and Tesla are automobile companies. Or are they? Explain how valuing Tesla and Ford may differ from valuing GM? Which stock is the most expensive? How did you determine which company was the most expensive? Do you think intangible assets are a larger share of total company assets today than 3-4 decades ago? How has this change made the valuation of business more difficult or easier? How could or would you measure intangible assets of a publicly listed firm? What type of companies have a large share of their assets tied up in intangibles (e.g. manufacturing, retailers, etc.). Explain why this is likely the case.

In: Finance