Questions
Part 2: An electric company charges to their customers based on Kilowatt-Hours (Kwh) used. The rules...

Part 2: An electric company charges to their customers based on Kilowatt-Hours (Kwh) used. The rules to compute the charge are: First 100 Kwh, 35 cents per Kwh Each of the next 100 Kwh (up to 200 Kwh), 45 cents per Kwh (the first 100 Kwh used is still charged at 35 cents each) Each of the next 300 Kwh (up to 500 Kwh) 65 cents per Kwh All Kwh over 500, 80 cents per KH Create a C# Form with a textbox to enter Kwh used, a read-only textbox to display the electricity charges, and a button to compute the charges. The Kwh used could be a number with decimals. Requirements: 1. Input validation: Use the KWH textbox validating event to ensure the KWH cannot exceed 2000. Test your program with (1) Kwh=4500, (2) Kwh = 350 2. Turn in the form’s screenshot and the code.

In C# using Visual Studios 2017 Windows form app

In: Computer Science

After running the experiment with the pivot, comment out the line, update the pivot selection to...

After running the experiment with the pivot, comment out the line, update the pivot selection to use the median of the first, middle, and last items, and run the experiment.

What line needs to be commented out and how would I update the pivot selection to use the median?

Example.java

package sorting;

import java.io.IOException;
import java.util.Random;
import sorters.QuickSort;

public class Example {

   public static void main(String args[]) throws IOException {
       int n = 100;   // adjust this to the number of items to sort
       int runs = 11;
      
       
       partB(n, runs);


   public static void partB(int n, int runs) {
       int [] data = new int[n];
       QuickSort quicksort = new QuickSort();
      
       labels(runs);
       for (int i = 0; i < runs; i++) {
           randomArray(data);
           quicksort.sort(data);
       }
       System.out.println();
      
   }
  
   public static void labels(int runs) {
       for(int i = 0; i < runs; i++) {
           String label = "Run " + i;
           System.out.printf("%12s ", label);
       }
       System.out.println();      
   }
  
   public static void randomArray(int [] data) {
       Random rand = new Random();      
       for(int j = 0; j < data.length; j++) {
           data[j] = rand.nextInt();
       }  
   }
  
}

QuickSort.java

package sorters;

// note that this class can only sort primitive ints correctly.

public class QuickSort {
  
   private int[] items;
  
   public void sort(int[] items) {
       this.items = items;
      
       long start = System.nanoTime();
       quicksort(0, items.length-1);
       long finish = System.nanoTime();
       //System.out.println(Arrays.toString(items));
       System.out.printf("%12s ", finish-start);
   }
  
   private int partition(int left, int right) {
       int i = left;
       int j = right;
        int temp;
        int pivot = (int) items[(left + right) / 2];
      
      
        while (i <= j) {
           while((int) items[i] < pivot)
               i++;
            while((int) items[j] > pivot)
                j--;
            if(i <= j) {
                temp = items[i];
                items[i] = items[j];
                items[j] = temp;
                i++;
                j--;
            }
        }
        return i;
   }

   private void quicksort(int left, int right) {

       int index = partition(left, right);

        if(left < index - 1)
           quicksort(left, index-1);
        if(index < right)
            quicksort(index, right);
   }
}

In: Computer Science

1. Consider the production possibility frontier for a simple two-good (closed) economy. Quantities of good x...

1. Consider the production possibility frontier for a simple two-good (closed) economy. Quantities of good x produced are plotted on the horizontal axis. Quantities of good y produced are plotted on the vertical axis. Suppose that the production of both x and y depends only on labor input and that the production functions for these goods are: x = f(lx) = lx and y = f(ly) = ly. Total labor supply is limited by: lx + ly = 100. The typical individual’s utility function is given by U(x,y) = x·y. The equilibrium price ratio px*/py* is equal to [r]. (NOTE: Write your answer in number format, with 2 decimal places of precision level; do not write your answer as a fraction. Add a leading zero and trailing zeros when needed. HINTS: First derive the production possibility frontier equation.)

In: Economics

On a 100-acre farm, a farmer is able to produce 3,000 bushels of wheat when he...

On a 100-acre farm, a farmer is able to produce 3,000 bushels of wheat when he hires 2 workers. He is able to produce 4,400 bushels of wheat when he hires 3 workers. Which of the following possibilities is consistent with the property of diminishing marginal product?

Group of answer choices

The farmer is able to produce 5,600 bushels of wheat when he hires 4 workers.

The farmer is able to produce 5,400 bushels of wheat when he hires 4 workers.

The farmer is able to produce 5,200 bushels of wheat when he hires 4 workers.

Any of the above could be correct.

The marginal seller is the seller who

Group of answer choices

cannot compete with the other sellers in the market.

would leave the market first if the price were any lower.

can produce at the lowest cost.

has the largest producer surplus.

In: Economics

Ben is considering acquiring a new automobile that he will use 100% for business. The purchase...

Ben is considering acquiring a new automobile that he will use 100% for business. The purchase price of the automobile would be $64,500. If Ben leased the car for five years, the lease payments would be $875 per month. Ben will acquire the on January 1, 2020. The inclusion dollar amounts from the IRS table for the next five years are $63, $140, $208, $251, and $289. Ben wants to know the effect on his adjusted gross income of purchasing versus leasing the car for the next five years. He does not claim any available additional first-year depreciation. Write a letter to Ben to present your calculations. Then prepare a memo for the tax files on these matters. Ben's address is 150 Avenue I Memphis, TN 80800

Please clearly explain the calculations and explain how to write the letter and memo.

In: Accounting

1. Classify this news event as Systematic or Unsystematic and indicate whether prices will increase or...

1. Classify this news event as Systematic or Unsystematic and indicate whether prices will increase or decrease.

US home construction drops 30.2% in April as virus rages.

Systematic, Increase

Systematic, Decrease

Unsystematic, Increase

Unsystematic, Decrease

2. Classify this news event as Systematic or Unsystematic and indicate whether prices will increase or decrease.

Home Depot's sales soared in the first quarter, despite an increase in costs due to the coronavirus.

Systematic, Increase

Systematic, Decrease

Unsystematic, Increase

Unsystematic, Decrease

3. Classify this news event as Systematic or Unsystematic and indicate whether prices will increase or decrease.

Walmart says it will discontinue Jet, which it acquired for $3B in 2016

Systematic, Increase

Systematic, Decrease

Unsystematic, Increase

Unsystematic, Decrease

4. A stock with a price of $10 per share must have a lower market capitalization than a stock with $100 per share.

In: Finance

On January 1, 2020, Suncadia (lessee) leased 100 golf carts from the manufacturer, Yakima Inc. (lessor)...

On January 1, 2020, Suncadia (lessee) leased 100 golf carts from the manufacturer, Yakima Inc. (lessor) for a 7-year period.

Pertinent information follows:

  • Lease term is 7 years.
  • The first annual payment of $30,000 is due at the inception of the lease.
  • The remaining annual lease payments are all at 31 December each year.
  • At the end of the lease term, Suncadia can buy the golf carts at a price below the fair value of the golf carts.
  • Suncadia’s year end is December 31. The estimated useful life of the golf carts is 10 years.
  • Suncadia’s borrowing rate is 6%.
  • Fair value of the golf carts is $190,000.

Required:

  1. Calculate the present value of the lease payments.
  2. Prepare the amortization table.
  3. Classify the lease agreement.
  4. Prepare the journal entry(ies) for the lessor and the lessee for the 2020 fiscal year related to the lease arrangement.

In: Accounting

On January 1, 2020, Suncadia (lessee) leased 100 golf carts from the manufacturer, Yakima Inc. (lessor)...

On January 1, 2020, Suncadia (lessee) leased 100 golf carts from the manufacturer, Yakima Inc. (lessor) for a 7-year period.

Pertinent information follows:

  • Lease term is 7 years.
  • The first annual payment of $30,000 is due at the inception of the lease.
  • The remaining annual lease payments are all at 31 December each year.
  • At the end of the lease term, Suncadia can buy the golf carts at a price below the fair value of the golf carts.
  • Suncadia’s year end is December 31. The estimated useful life of the golf carts is 10 years.
  • Suncadia’s borrowing rate is 6%.
  • Fair value of the golf carts is $190,000.

Required:

  1. Calculate the present value of the lease payments.
  2. Prepare the amortization table.
  3. Classify the lease agreement.
  4. Prepare the journal entry(ies) for the lessor and the lessee for the 2020 fiscal year related to the lease arrangement.

In: Accounting

On January 1, 2020, Suncadia (lessee) leased 100 golf carts from the manufacturer, Yakima Inc. (lessor)...

On January 1, 2020, Suncadia (lessee) leased 100 golf carts from the manufacturer, Yakima Inc. (lessor) for a 7-year period.

Pertinent information follows:

  • Lease term is 7 years.
  • The first annual payment of $30,000 is due at the inception of the lease.
  • The remaining annual lease payments are all at 31 December each year.
  • At the end of the lease term, Suncadia can buy the golf carts at a price below the fair value of the golf carts.
  • Suncadia’s year end is December 31. The estimated useful life of the golf carts is 10 years.
  • Suncadia’s borrowing rate is 6%.
  • Fair value of the golf carts is $190,000.

Required:

  1. Calculate the present value of the lease payments.
  2. Prepare the amortization table.
  3. Classify the lease agreement.
  4. Prepare the journal entry(ies) for the lessor and the lessee for the 2020 fiscal year related to the lease arrangement.

In: Accounting

(Conceptual Question) Address the following questions pertaining to capital structure theories: What does the MM theory...

(Conceptual Question) Address the following questions pertaining to capital structure theories:

  • What does the MM theory with no taxes (i.e., perfect capital markets) state about the value of a levered firm versus the value of an otherwise identical but unlevered firm? What does this imply about the optimal capital structure?

  • Why does the MM theory with corporate taxes (otherwise markets are perfect) lead to 100% debt?

  • According to the static trade-off theory, if a firm went from zero debt to successively higher levels of debt, why would you expect its stock price to first rise, then hit a peak, and then begin to decline?

  • Explain how asymmetric information and signals affect capital structure decisions.

  • Which capital structure theories does the empirical evidence seem to support? What issues should managers consider when making capital structure decisions?

In: Finance