If a demand curve is linear, does that mean its elasticity is constant?  Why or why not?...

  1. If a demand curve is linear, does that mean its elasticity is constant?  Why or why not?
  2. If the price is increased on an item, does that mean more revenue will be collected?  Why or why not?
  3. Describe Active Learning 2.
  4. What is the price sensitivity of supply and how is it calculated using the midpoint method?
  5. What is the connection between the slope of the supply curve and its elasticity?
  6. What are the five classifications of supply curves and distinguish between them?
  7. For many goods, price elasticity of supply is greater when?  Why?
  8. Describe Active Learning 3.
  9. A typical supply curve would gradually get more upward sloping.  Why is this and what does it tell us about the price elasticity of supply?
  10. Describe an example of an elasticity that is not price-related.

In: Economics

Trace the impact of a sale of government bonds by the Central bank on bond prices,...

Trace the impact of a sale of government bonds by the Central bank on bond prices, interest rates, investment, aggregate demand, real GDP, and the price level.

In: Economics

Linked List Outlab Political RiffRaff Manager General Overview In case you missed it we just had an...

Linked List Outlab

Political RiffRaff Manager

General Overview

In case you missed it we just had an election and America is very divided I have decided you will write a program to select our politicians that take office in a fair and just way. We just went through a year of all the slimy politicians, and all the political supporters on both sides of the aisle coming out of the woodwork spouting their verbal abuse on each other. And even though the election is over the attacks and bitterness hasn't ended. Both sides are claiming "election foul".

You are going to fix it.  

 Every year ACM sponsors programming competitions at the local, regional and world levels. This assignment is adapted from a problem that appeared at one of these competitions...........very loosely adapted. 

Purpose

The purpose of the assignment is to give you experience implementing a circular, doubly linked list and all the methods and management that is needed for such a list. 

Problem Statement

In a serious attempt to downsize (reduce) the riffRaff in politics, The New Rhinoceros Party with the motto "we promise to keep none of our promises." has decided on the following strategy. Every day all Rhino applicants will be placed in a large circle, facing inwards. Someone is arbitrarily chosen as number 1, and the rest are numbered up to N (so N is the amount of candidates in the circle and N will be standing next to 1  as the end of the potential candidates).

Now you will have two officials that will be the selectors, selector one holds a number we will call k, official two has a number we will call m. Selector k will start at candidate 1 (first candidate) and will move around the circle of candidates clockwise counting off candidates until it counts k candidates and then stop pointing at the kth candidate.

Selector m will start at candidate N (last candidate) and will move around the circle of candidates counter-clockwise counting off candidates until it gets to the mthcandidate. 

Now one of two things will have taken place, the selectors will be pointing at two different candidates, or they will be pointing at the same candidate. If the selectors are pointing to two different candidates we will remove the candidates from the circle of candidates (these candidates will be ELIMINATED), starting with k candidate first and then the m candidate. The k selector will need to move clockwise up to the next available candidate and prepare to start counting again. The m selector will do the same but it will always move counter-clockwise. After removal the two selectors will need to be ready to start counting again at the next available candidate.  

If both selectors stop and they are pointing to the same candidate we have found ourselves a worthy candidate that will be put into political office.......keep this candidate off to the side, but remove the candidate from the circle of candidates.......which means k selector will need to be moved clockwise to next available and m selector will need to be moved counterclockwise to the next available candidate. 

Each selector then starts counting again at the next available person and the process continues until no-one is left. Note that the two victims (sorry, trainees) leave the ring simultaneously, so it is possible for one official to count a person already selected by the other official.

Input File Format

Write a program that asks the user for the name of a valid input file. If the file exists, the program should read in (in that order) the three numbers (N, k and m; k, m > 0, 0 < N < 100) and determine the order in which the applicants are sent off for political retraining. Each set of three numbers will be on a separate line and the end of data will be signaled by three zeroes (0 0 0).

Here is a sample input file:

10 4 3
17 6 4
0 0 0

Output Requirements

The output should be sent to a file named LinkedListProgram.txt. For each input, the output should show the order in which the people are chosen. For each round in which two different people are chosen, list the person chosen by the counter-clockwise official first.

Here is the required output for the an input file:

Program 4
---------

N = 10, k = 4, m = 3

Output
------
4 8
9 5
3 1
2 6
10
7

End of Program 4

(Note: There seems to be an error in either the output or the instructions, because I cannot get get this exact output from the instructions given. Editing the code to make it match the output is fine.)

Requirements and Grading

12 points. You are required to design and implement your own linked list (in the style of what we have done in lecture this week) as opposed to using a built-in class provided by Java. The class you use should be doubly-linked (6 points), circular (3 point) and if it works of course(3 point).12 points. The program finds the correct answer. Your TA will test your program on some sample files after the assignment is due. Thus, please test your program thoroughly before submitting it.6 points. The program finds the solution in a reasonably efficient manner. For example, if N = 10, k = 1 and m = 450, the m judge should not circle around the candidates needlessly.5 points. The program sends it output to a file named LinkedListProgram.txt5 points. The program's output matches the required output format described above.10 points. The program uses good style. This includes factors such as appropriate commenting, good object oriented design, readable code that is high quality, etc.

In: Computer Science

ABC has been in business for over fifty years. It manufactures specialty items. The raw material...

ABC has been in business for over fifty years. It manufactures specialty items. The raw material needed, for the manufacturing process, once produced in the United States, now must be purchased from other countries. Due to changes in the U.S. trade laws, the prices to obtain such raw materials necessary for ABC’s manufacturing process has skyrocketed. The corporate officers, consisting of Ann, Bob and Clyde, have decided they have no choice but the wind down operations and close the company for economic reasons. In fact, the company has fallen into such severe economic distress that it has been unable to pay compensation to upper and mid-level managers. Hourly-wage paid employees, however, have been fully paid. Management employees were asked, and agreed, to take reductions in their salaries and to defer receipt of earned compensation given the company’s financial condition.

Ann, Bob and Clyde have told those management-level employees they are “sorry” for the non-payment of compensation. They have told those employees there is “simply no money left”. They have not taken any money, in the form of salary, for months, as well.

Those management-level employees who were not paid compensation have sued Ann, Bob and Clyde, in their individual capacities, for failing to pay earned compensation. Ann, Bob and Clyde fear they will lose everything they own, including personal residences, summer homes, luxury cars, etc., to satisfy judgments obtained against them. Will they be individually liable under these circumstances? What are their arguments against liability? What are the employees’ arguments in favor of imposing liability against them?

In: Operations Management

A sphere with radius R has a charge density given by ρ = cr3. Use Gauss's...

A sphere with radius R has a charge density given by

ρ = cr3.

Use Gauss's law to find an expression for the magnitude of the electric field at a distance r from the center of the sphere, where we have the following. (Use the following as necessary: c, r, R, and ε0. Assume c is positive.)

(a)    

r < R


E =

  

(b)    

r > R


E =

In: Physics

Martinez Company’s relevant range of production is 7,500 units to 12,500 units. When it produces and...

Martinez Company’s relevant range of production is 7,500 units to 12,500 units. When it produces and sells 10,000 units, its average costs per unit are as follows: Average Cost per Unit

Average Cost per Unit

Direct materials

$

5.50

Direct labor

$

3.00

Variable manufacturing overhead

$

1.50

Fixed manufacturing overhead

$

4.00

Fixed selling expense

$

2.50

Fixed administrative expense

$

2.00

Sales commissions

$

1.00

Variable administrative expense

$

0.50

1. For financial accounting purposes, what is the total amount of product costs incurred to make 10,000 units? (Do not round intermediate calculations.)

2. For financial accounting purposes, what is the total amount of period costs incurred to sell 10,000 units? (Do not round intermediate calculations.)

3. If 8,000 units are produced and sold, what is the variable cost per unit produced and sold? (Round your answer to 2 decimal places.)

4. If 12,500 units are produced and sold, what is the variable cost per unit produced and sold? (Round your answer to 2 decimal places.)

5. If 8,000 units are produced and sold, what is the total amount of variable costs related to the units produced and sold? (Do not round intermediate calculations.)

6. If 12,500 units are produced and sold, what is the total amount of variable costs related to the units produced and sold? (Do not round intermediate calculations.)

7. If 8,000 units are produced, what is the average fixed manufacturing cost per unit produced?

8. If 12,500 units are produced, what is the average fixed manufacturing cost per unit produced? (Round your answer to 2 decimal places.)

9. If 8,000 units are produced, what is the total amount of fixed manufacturing cost incurred to support this level of production?

10. If 12,500 units are produced, what is the total amount of fixed manufacturing cost incurred to support this level of production?

11. If 8,000 units are produced, what is the total amount of manufacturing overhead cost incurred to support this level of production? What is this total amount expressed on a per unit basis? (Round your "per unit" answer to 2 decimal places and other answers to the nearest whole dollar amount.)

12. If 12,500 units are produced, what is the total amount of manufacturing overhead cost incurred to support this level of production? What is this total amount expressed on a per unit basis? (Round your "per unit" answer to 2 decimal places and other answers to the nearest whole dollar amount.)

13. If the selling price is $21.50 per unit, what is the contribution margin per unit? (Do not round intermediate calculations. Round your answer to 2 decimal places.)

14. If 11,000 units are produced, what are the total amounts of direct and indirect manufacturing costs incurred to support this level of production? (Do not round intermediate calculations.)

15. What incremental manufacturing cost will Martinez incur if it increases production from 10,000 to 10,001 units? (Round your answer to 2 decimal places.)

In: Accounting

Perform the following calculations using 2s complement arithmetic. Indicate overflow where applicable. a. 14 + 2...

Perform the following calculations using 2s complement arithmetic. Indicate overflow where applicable.

a. 14 + 2 using 5 bits precision
b. 14 - 6 using 6 bits precision
c. 62 + 2 using 6 bits precision
d. -15 - 10 using 8 bits precision
e. 125 + 2 using 8 bits precision

In: Computer Science

Which ideas of economics are captured by PPC? By analyzing the PPC model, what are the...

Which ideas of economics are captured by PPC?

By analyzing the PPC model, what are the lessons that countries can learn to increase their GDP?

In: Economics

24. Determine whether each of the P-boxes with the following permutation table is a straight P-box,...

24. Determine whether each of the P-boxes with the following permutation table is a straight P-box, a compression P-box, or an expansion P-box. Detail your reason.    

a). P-box:   

1 1 2 3 4 4

b). P-box:

1 3 5 6 7

In: Computer Science

Task The task is to read a file, store the data into objects, and process the...

Task

The task is to read a file, store the data into objects, and process the objects. The file is formatted as pairs of lines: the first line of each pair is the name of a student, and the second line is a list of grades. This data will be stored in a Grades object. The Grades class will have several methods for processing the data.

For example, if this is the contents of the file being processed:

Alice
87 99 96 99 86 96 77 95 70 88
Bob
73 78 76 80 99 96 73 96 76 78 78 92 93 75 93
Camila
99 94 85 99 99 93 81 95 76 80 77 79 98 72 98 97 92
Diego
76 97 72 92 86 86 89 85 81 87 76 80 89

then the following should be printed:

Alice [87, 99, 96, 99, 86, 96, 77, 95, 70, 88]
        Name:    Alice
        Length:  10
        Average: 89.30
        Median:  91.5
        Maximum: 99
        Mininum: 70
Bob [73, 78, 76, 80, 99, 96, 73, 96, 76, 78, 78, 92, 93, 75, 93]
        Name:    Bob
        Length:  15
        Average: 83.73
        Median:  78.0
        Maximum: 99
        Mininum: 73
Camila [99, 94, 85, 99, 99, 93, 81, 95, 76, 80, 77, 79, 98, 72, 98, 97, 92]
        Name:    Camila
        Length:  17
        Average: 89.06
        Median:  93.0
        Maximum: 99
        Mininum: 72
Diego [76, 97, 72, 92, 86, 86, 89, 85, 81, 87, 76, 80, 89]
        Name:    Diego
        Length:  13
        Average: 84.31
        Median:  86.0
        Maximum: 97
        Mininum: 72 
    

Reading in the Data

Assume that the name of the file is data.txt . In Eclipse, the file needs to be in the top directory of the project. Reading all the data in the file can be accomplished by a sequence of code like:

Scanner in = null;
try {
    in = new Scanner(new File("data.txt"));
} catch (FileNotFoundException exception) {
    System.err.println("failed to open data.txt");
    System.exit(1);
}
while (in.hasNext()) {
    String name = in.next();
    while (in.hasNextInt()) {
        int grade = in.nextInt();
    }
}    
        

Of course, you need to add code so that Grades objects are created with the data that is read.

Testing

Each Grades object you create should be tested with the following static method.

public static void testGrades(Grades grades) {
    System.out.println(grades.toString()); 
    System.out.printf("\tName:    %s\n", grades.getName());
    System.out.printf("\tLength:  %d\n", grades.length());
    System.out.printf("\tAverage: %.2f\n", grades.average());
    System.out.printf("\tMedian:  %.1f\n", grades.median());
    System.out.printf("\tMaximum: %d\n", grades.maximum());
    System.out.printf("\tMininum: %d\n", grades.minimum());
}

This method should be included in your Lab2.java file exactly as it appears. testGrades should be called on each Grades object after all of its data has been stored in it. Note that this code requires that you implement several methods within the Grades class. Note: thetoString method should return a String and should not contain any print statements within it. See the example output above.

In: Computer Science

Explain how a "cap and trade" system works. What are its virtues and drawbacks?

Explain how a "cap and trade" system works. What are its virtues and drawbacks?

In: Economics

Develop a C++ program that determines the largest and second largest positive values in a collection...

Develop a C++ program that determines the largest and second largest positive values in a collection of data

Prompt the user to enter integer values until they enter any negative value to quit

  • You may presume the user will input at least two valid integer values

Create a loop structure of some sort to execute this input cycle

Maintain the largest and second largest integer as the user inputs data

  • This logic should be placed inside your loop structure
  • Arrays are not needed to solve the problem!

Display the largest and second largest values entered by the user

In: Computer Science

1)    A 2.00-kg package is released on a 53.1

1)    A 2.00-kg package is released on a 53.1

In: Physics

list the names of 5 CASE tools used in Software Engineering. you have to show also...

list the names of 5 CASE tools used in Software Engineering. you have to show also its purpose, usage, components, .....

In: Computer Science

You have been hired by a small office to link their five computers in a network....

You have been hired by a small office to link their five computers in a network. All PC’s have Windows 10 installed. 2 GHz processor, 4 GB of memory, and an 1 TB hard drive. In addition, the office has purchased a simple eight port hub. Security is not a concern for this office. In short, the owners have asked for a simple, inexpensive solution.

  1. What type of network would you recommend and why?
  2. Discuss the similarities and differences between peer-to-peer and client server network.

In: Computer Science