Questions
IN JAVA PLEASE Implement a recursive approach to showing all the teams that can be created...

IN JAVA PLEASE

Implement a recursive approach to showing all the teams that can be created from a group (n things taken k at a time). Write the recursive showTeams()method and a main() method to prompt the user for the group size and the team size to provide arguments for showTeam(), which then displays all the possible combinations.

In: Computer Science

Computech Corporation is expanding rapidly and currently needs to retain all of its earnings; hence, it...

Computech Corporation is expanding rapidly and currently needs to retain all of its earnings; hence, it does not pay dividends. However, investors expect Computech to begin paying dividends, beginning with a dividend of $1.00 coming 3 years from today. The dividend should grow rapidly-at a rate of 34% per year-during Years 4 and 5; but after Year 5, growth should be a constant 9% per year. If the required return on Computech is 15%, what is the value of the stock today? Round your answer to the nearest cent. Do not round your intermediate calculations.

Carnes Cosmetics Co.'s stock price is $79.38, and it recently paid a $3.00 dividend. This dividend is expected to grow by 22% for the next 3 years, then grow forever at a constant rate, g; and rs = 16%. At what constant rate is the stock expected to grow after Year 3? Round your answer to two decimal places. Do not round your intermediate calculations.

In: Finance

As employer are in a shift to more cloud computing and cloud storage, what is the...

As employer are in a shift to more cloud computing and cloud storage, what is the effect to our expectation of privacy?

Include dangers to users of social media and What remedies are available to victims and how do these differ from remedies victims of traditional crimes and torts?

In: Computer Science

complete the public T removeRandom(),    public SetADT<T> union(SetADT<T> set), and the incomplete part in the arraysettester...

complete the public T removeRandom(),    public SetADT<T> union(SetADT<T> set), and the incomplete part in the arraysettester

arrayset.java

package arraysetpackage;

import java.util.Iterator;
import java.util.NoSuchElementException;
import java.util.Random;

public class ArraySet<T> implements SetADT<T> {
   private static final int DEFAULT_SIZE = 20;
   private int count;
   private T[] setValues;
   private Random rand;
  
   public ArraySet (){
       this(DEFAULT_SIZE);
   } // end of constructor
  
   public ArraySet (int size){
       count = 0;
       setValues = (T[]) new Object[size];
       rand = new Random();
   } // end of constructor  

  
   public void add(T element) {
       if (contains(element))
           return;
       if (count == setValues.length) {
           T[] temp = (T[]) new Object[setValues.length*2];
           for (int i = 0; i < setValues.length; i++) {
               temp[i] = setValues[i];
           }
           setValues = temp;
       }
       setValues[count] = element;
       count++;
   }

   public void addAll(SetADT<T> set) {
       Iterator<T> iter = set.iterator();
       while (iter.hasNext()){
           System.out.println(iter.next());
       }
       // finish: this method adds all of the input sets elements to this array
      
   }

   public boolean contains(T target) {
       for (int i = 0; i < count; i++ )
           if (setValues[i].equals(target))
               return true;
       return false;
   }
  
   public String toString () {
       String toReturn = "[";
       for (int i = 0; i < count; i++) {
           toReturn += setValues[i] + " ";
       }
       toReturn +="]";
       return toReturn;
   }
  


   public boolean equals(SetADT<T> set) {
       // finish: tests to see if this set and the input set have exactly the same
       // elements
      
      
       return false; // this is just generic, you need to change the return
   }
  
   public boolean isEmpty() {
       return count==0;
   }

   public Iterator<T> iterator() {
       return new ArraySetIterator<T>(setValues,count);
   }

   public T remove(T element) {
       for (int i = 0; i < count; i++ ) {
           if (setValues[i].equals(element)) {
               T toReturn = setValues[i];
               setValues[i] = setValues[count-1];
               count--;
               return toReturn;
           }
       }
       throw new NoSuchElementException("not present");
   }


   public T removeRandom() {
       // finish: remove and return a random element. you will use the
       // local rand object
      
      
       return null; // this is just generic, you need to change the return
   }
     
   public int size() {
       return count;
   }
     
   public SetADT<T> union(SetADT<T> set) {
       // finish: a new set is created and returned. This new set will
       // contain all of elements from this set and the input parameter set
      
      
       return null; // this is just generic, you need to change the return
   }

}
arraysetester.java:

package arraysetpackage;

import java.util.Iterator;

public class ArraySetTester {


   public static void main(String[] args) {
       SetADT <String> mySet = new ArraySet<String>();

       for (int i = 0; i < 12; i++)
           mySet.add(new String("apple"+i));

       System.out.println(mySet);
      
       System.out.println("mysize = "+mySet.size()+ " [expect 12]");
       mySet.add(new String ("apple0"));
       System.out.println("mysize = "+mySet.size()+ " [expect 12]");
       System.out.println("contains 11? = "+mySet.contains(new String("11")));
       System.out.println("contains apple11? = "+mySet.contains(new String("apple11")));      
      
       try {
           String removedItem = mySet.remove("apple7");
           System.out.println(mySet);
           System.out.println(removedItem+ " was removed");
       } catch (Exception e) {
           System.out.println("item not found, can't remove");
       }
      
       try {
           String removedItem = mySet.remove("apple17");
           System.out.println(mySet);
           System.out.println(removedItem+ " was removed");
       } catch (Exception e) {
           System.out.println("item not found, can't remove");
       }
      
       Iterator<String> iter = mySet.iterator();
       while (iter.hasNext()){
           System.out.println(iter.next());
       }

       SetADT <String> mySet2 = new ArraySet<String>();

       for (int i = 0; i < 12; i++)
           mySet2.add(new String("orange"+i));  
       System.out.println(mySet2);
      
       // add code here to test methods you finish in ArraySet
      
      
      
       // after you complete the existing methods, do the Case Study
       // Approach 1 will be here in the main
      
       // Approach 2 will be here in ArraySetTester, but you will
       // create a local static method that you will call from the main
      
       // Approach 3 will start with uncommenting the prototype in SetADT
       // and then creating the method in ArraySet. Finally you will write
       // code here to test the new method
   }


}

arraysetiterator.java

package arraysetpackage;

import java.util.Iterator;
import java.util.NoSuchElementException;

public class ArraySetIterator <T> implements Iterator <T> {
   private int position; //Always points to the next value
   private T [] values;
   private int count;
  
  
   public ArraySetIterator (T [] theValues, int aCount) {
       position = 0;
       values = theValues;
       count = aCount;
   }
  
   public boolean hasNext() {
       return position < count;
   }
  
   public T next() {
       if (position >= count)
           throw new NoSuchElementException("Past " + count + " elements");
       position++;
       return values[position - 1];
}
  
   public void remove() {
       throw new
       UnsupportedOperationException("No remove for ArraySet");
   }

}

setadt.java

package arraysetpackage;

import java.util.Iterator;

public interface SetADT<T> {
   public void add (T element); //Adds one element to this set, ignoring duplicates
   public void addAll (SetADT<T> set); //Adds all elements in the parameter to this set,
   // ignoring duplicates
   public T removeRandom (); //Removes and returns a random element from this set
   public T remove (T element); //Removes and returns the specified element from this set
   public SetADT<T> union (SetADT<T> set); //Returns the union of this set and the
   // parameter
   public boolean contains (T target); //Returns true if this set contains the parameter
   //public boolean contains(SetADT<T> Set); // Returns true if this set contains the parameter
   public boolean equals (SetADT<T> set); //Returns true if this set and the parameter
   //contain exactly same elements
   public boolean isEmpty(); //Returns true if this set contains no elements
   public int size(); //Returns the number of elements in this set   
   public Iterator<T> iterator(); //Returns an iterator for the elements in this set
   public String toString(); //Returns a string representation of this set
}

In: Computer Science

Calculate the option price using the following information: Option type European call Time to expiration 4...

Calculate the option price using the following information:

Option type European call
Time to expiration 4 months
Strike price $30
Current underlying stock price $32
Underlying stock expected dividend $2.00 in 2 months
Underlying stock volatility 40%
Risk-free rate 6%
Pricing model Black-Scholes formula

Group of answer choices

$3.05

$3.65

$4.32

$5.02

In: Finance

Suppose we are thinking about replacing an old computer with a new one. The old one...

Suppose we are thinking about replacing an old computer with a new one. The old one cost us $1,640,000; the new one will cost, $1,975,000. The new machine will be depreciated straight-line to zero over its five-year life. It will probably be worth about $420,000 after five years. The old computer is being depreciated at a rate of $344,000 per year. It will be completely written off in three years. If we don’t replace it now, we will have to replace it in two years. We can sell it now for $540,000; in two years, it will probably be worth $156,000. The new machine will save us $368,000 per year in operating costs. The tax rate is 24 percent, and the discount rate is 11 percent.

a-1. Calculate the EAC for the the old computer and the new computer. (A negative answer should be indicated by a minus sign. Do not round intermediate calculations and round your answers to 2 decimal places, e.g., 32.16.)

a-2. What is the NPV of the decision to replace the computer now? (A negative answer should be indicated by a minus sign. Do not round intermediate calculations and round your answer to 2 decimal places, e.g., 32.16.)

In: Finance

Carrington would invest in software and some hardware upgrades that will allow them to better analyze...

Carrington would invest in software and some hardware upgrades that will allow them to better analyze the traffic coming in to their website. Total acquisition costs for this option are estimated to be $400,000. This improved analytics capability is expected to lead to increased revenue of $80,000 in year 1, $120,000 in year 2, $250,000 in year 3, $350,000 in year 4, and $500,000 in year 5. The estimated cost of this obtaining this revenue will be 20% per revenue dollar related to sales staff that will analyze this data and use it to generate new client relationships. Carrington will also incur fixed cost of $10,000 per year related to software updates and hardware maintenance. Carrington will set aside $250,000 in working capital for this project and this capital will be recovered at the end of 5 yrs. The salvage value of the new equipment will be $9,000 at the end of 5 yrs. Carrington uses a 10% hurdle rate to evaluate all projects, Acquisition costs qualify for modified accelerated depreciation of 50,30, and 20% in the first three yrs, Being profitable company income would be taxed at Carrington's tax rate of 30%, and all dollar values referenced in this case are in nominal dollars so for analysis ignore the effect of inflation.

1. Calculate the payback period, internal rate of return, and NPV.

2. The data analytics program pays off a lot faster than expected. Revenue is projected to be $200,000 in yr 1, $250,000 in yr 2, $250,000 in yr 3, $300,000 in yr4, and $300,000 in yr 5.

3.A great tax plan. Congress is proposing a new corporate tax plan that reduces the federal tax rate that Carrington pays from 30% to 20%. However, this tax plan would also do away with MACRS and replace it with straight line depreciation for tax purposes ( over 5 yrs).

a. Using the original estimates for your designated option, estimate the effect of this tax plan on NPV.

b. Next, given the uncertainty related to the effect of the proposed tax plan on future business, use a 14% hurdle rate instead of the 10% hurdle rate used before in estimating the effect of the plan (i.e just redo 4A).

4. What are some qualitative concerns related to accepting this designated option. Discuss and list at least 2. Provide why each would be considered an advantage or disadvantage.

In: Finance

when sourcing internationally a buyer should consider what?

when sourcing internationally a buyer should consider what?

In: Operations Management

Carlsbad Corporation's sales are expected to increase from $5 million in 2016 to $6 million in...

Carlsbad Corporation's sales are expected to increase from $5 million in 2016 to $6 million in 2017, or by 20%. Its assets totaled $6 million at the end of 2016. Carlsbad is at full capacity, so its assets must grow in proportion to projected sales. At the end of 2016, current liabilities are $1 million, consisting of $250,000 of accounts payable, $500,000 of notes payable, and $250,000 of accrued liabilities. Its profit margin is forecasted to be 3%, and the forecasted retention ratio is 45%. Use the AFN equation to forecast Carlsbad's additional funds needed for the coming year. Write out your answer completely. For example, 5 million should be entered as 5,000,000. Round your answer to the nearest cent.

$

Now assume the company's assets totaled $4 million at the end of 2016. Is the company's "capital intensity" the same or different comparing to initial situation?
-Select-DifferentThe sameItem 2

In: Finance

Part A Understanding Consumers Consumer decision-making processes can be complicated because there are many factors (internal...

Part A Understanding Consumers Consumer decision-making processes can be complicated because there are many factors (internal and external) that influence this process. For example, there are individual internal factors like personality and external factors including household structures, society and culture. Some decision making processes are linear and others are more emotional. For your report, you need to identify and explain how the concept of motivation affects consumers' likelihood of buying your product

Part B Segmentation

Define and describe the theoretical concept and purpose of segmentation. Identify and define the key segmentation variables (i.e. demographics, psychographic etc), be sure to present this information with market data evidence (i.e. tables/graphs/statistics from sources such as ABS/ Roy Morgan etc) ; and Using the different segmentation variables, describe a likely primary segment for your organisation and create your "Typical Consumer" profile (see template in i2)

Part C Targeting strategies

Define and describe the theoretical concept of targeting strategies; and Outline the most appropriate strategy for your product, given the competition and market analysis (from Assessment Two) and its likely segment described in your consumer profile

In: Operations Management

Explain how to search for a record (using hashing) in a file where the records originally...

Explain how to search for a record (using hashing) in a file where the records originally were stored using modules method . for example the id was modulated by the size of the file.

In: Computer Science

The file banking.txt attached to this assignment provides data acquired from banking and census records for...

The file banking.txt attached to this assignment provides data acquired from banking and census records
for different zip codes in the bank’s current market. Such information can be useful in targeting
advertising for new customers or for choosing locations for branch offices. The data show
- median age of the population (AGE)
- median income (INCOME) in $
- average bank balance (BALANCE) in $
- median years of education (EDUCATION)
Use r

Use R to fit a regression model to predict balance from age, education and income. Analyze the
model parameters. Which predictors have a significant effect on balance? Use the t-tests on the
parameters for alpha=.05. [2 pts = 1 pt R code + 1 pt answer]
f) If one of the predictors is not significant, remove it from the model and refit the new regression
model. Write the expression of the fitted regression model. [2 pts = 1 pt R code + 1 pt answer]
g) Interpret the value of the parameters for the variables in the model. [1 pt]
h) Report the value for the R2
coefficient and describe what it indicates. [1 pt]
i) According to census data, the population for a certain zip code area has median age equal to 34.8
years, median education equal to 12.5 years and median income equal to $42,401.
- Use the final model computed in point (f) to compute the predicted average balance for the zip
code area. [1 pt]
- If the observed average balance for the zip code area is $21,572, what’s the model prediction
error? [1 pt]
j) Conduct a global F-test for overall model adequacy. Write down the test hypotheses and test statistic
and discuss conclusions.

Age        Education            Income Balance

35.9        14.8        91033    38517

37.7        13.8        86748    40618

36.8        13.8        72245    35206

35.3        13.2        70639    33434

35.3        13.2        64879    28162

34.8        13.7        75591    36708

39.3        14.4        80615    38766

36.6        13.9        76507    34811

35.7        16.1        107935 41032

40.5        15.1        82557    41742

37.9        14.2        58294    29950

43.1        15.8        88041    51107

37.7        12.9        64597    34936

36           13.1        64894    32387

40.4        16.1        61091    32150

33.8        13.6        76771    37996

36.4        13.5        55609    24672

37.7        12.8        74091    37603

36.2        12.9        53713    26785

39.1        12.7        60262    32576

39.4        16.1        111548 56569

36.1        12.8        48600    26144

35.3        12.7        51419    24558

37.5        12.8        51182    23584

34.4        12.8        60753    26773

33.7        13.8        64601    27877

40.4        13.2        62164    28507

38.9        12.7        46607    27096

34.3        12.7        61446    28018

38.7        12.8        62024    31283

33.4        12.6        54986    24671

35           12.7        48182    25280

38.1        12.7        47388    24890

34.9        12.5        55273    26114

36.1        12.9        53892    27570

32.7        12.6        47923    20826

37.1        12.5        46176    23858

23.5        13.6        33088    20834

38           13.6        53890    26542

33.6        12.7        57390    27396

41.7        13           48439    31054

36.6        14.1        56803    29198

34.9        12.4        52392    24650

36.7        12.8        48631    23610

38.4        12.5        52500    29706

34.8        12.5        42401    21572

33.6        12.7        64792    32677

37           14.1        59842    29347

34.4        12.7        65625    29127

37.2        12.5        54044    27753

35.7        12.6        39707    21345

37.8        12.9        45286    28174

35.6        12.8        37784    19125

35.7        12.4        52284    29763

34.3        12.4        42944    22275

39.8        13.4        46036    27005

36.2        12.3        50357    24076

35.1        12.3        45521    23293

35.6        16.1        30418    16854

40.7        12.7        52500    28867

33.5        12.5        41795    21556

37.5        12.5        66667    31758

37.6        12.9        38596    17939

39.1        12.6        44286    22579

33.1        12.2        37287    19343

36.4        12.9        38184    21534

37.3        12.5        47119    22357

38.7        13.6        44520    25276

36.9        12.7        52838    23077

32.7        12.3        34688    20082

36.1        12.4        31770    15912

39.5        12.8        32994    21145

36.5        12.3        33891    18340

32.9        12.4        37813    19196

29.9        12.3        46528    21798

32.1        12.3        30319    13677

36.1        13.3        36492    20572

35.9        12.4        51818    26242

32.7        12.2        35625    17077

37.2        12.6        36789    20020

38.8        12.3        42750    25385

37.5        13           30412    20463

36.4        12.5        37083    21670

42.4        12.6        31563    15961

19.5        16.1        15395    5956

30.5        12.8        21433    11380

33.2        12.3        31250    18959

36.7        12.5        31344    16100

32.4        12.6        29733    14620

36.5        12.4        41607    22340

33.9        12.1        32813    26405

29.6        12.1        29375    13693

37.5        11.1        34896    20586

34           12.6        20578    14095

28.7        12.1        32574    14393

36.1        12.2        30589    16352

30.6        12.3        26565    17410

22.8        12.3        16590    10436

30.3        12.2        9354       9904

22           12           14115    9071

30.8        11.9        17992    10679

35.1        11           7741       6207

In: Math

Art history discussion We begin this course considering cave paintings from the Paleolithic Period as a...

Art history discussion
We begin this course considering cave paintings from the Paleolithic Period as a prehistoric form of art. You will watch the film, “The Day the Pictures were Born” for your first assignment. The film discusses early humans’ desire to record the visions in their heads that result from altered states of consciousness. Let’s extend this idea to think about ways we get out of our “here and now” mundane day-to-day material existence and ESCAPE into a daydream, movie, song, dance, physical activity, artwork, video game, nature, etc.

WHEN YOU WANT TO ESCAPE FROM REALITY FOR A LITTLE WHILE, WHAT DO YOU DO AND HOW DOES IT ALTER YOUR MINDSET? Feel free to post an image reflecting your form of escapism.

In: Psychology

practicing the english composition ( Book: the Language of composition Reading • Writing • Rhetoric) ,...

  • practicing the english composition ( Book: the Language of composition Reading • Writing • Rhetoric) ,
  • In what ways have you succeeded?
  • What would you like to continue to work on?

In: Operations Management

Castle View has just paid a consulting firm $10,000 to evaluate the potential benefits and costs...

Castle View has just paid a consulting firm $10,000 to evaluate the potential benefits and costs if it
purchases a more advanced glass extrusion machine to replace the one currently being used (the old
one) in its project. The consulting firm has come up with the following estimates:
• The project will last for another four years.
• The old machine was purchased at $900,000 four years ago. The depreciation method the firm uses
was straight-line method over five years with a salvage value of 0. The old machine is projected to
serve for another four years. If held to the end of four years later, the old machine could be sold for
$30,000. If sold now, the old machine could be sold for $35,000.
• The new machine costs $1,600,000. Its final salvage value is 0 at the end of its life. It falls into the
three-year property category for MACRS depreciation (Year 1: 33.33%, Year 2: 44.45%, Year 3:
14.81%, Year 4: 7.41%). The consulting firm believe that after 4 years, the new machine can be sold
for $300,000.
• It will require an upfront increase (in year 0) in net working capital of $50,000. During the project
life, the required NWC stays constant. In year 4, the firm expects to recover the NWC.
• The new machine will not change the revenue of the firm.
• The new machine will reduce COGS by $240,000 annually.
• Income taxes are paid at a 30% tax rate.
(1) What are the incremental depreciation, incremental CAPEX, and adjustment for cash flows
related to the sale of the new and the old equipment (incl. the selling price and related tax) from
year 0 to year 4?
(2) Calculate the expected annual incremental cash flows for years zero through four. (5 pts)
(3) If you were the CEO of the firm, will you accept the project according to NPV rule? Assume a
required return of 10%.

In: Finance