Questions
Similar conditions as in previous question. A simple 3-phase power system includes generator G, step-up transformer...

Similar conditions as in previous question. A simple 3-phase power system includes generator G, step-up transformer TX1, transmission line TL, step-down transformer TX2 and load L. All elements are rated for S = 50 MVA (3 phase).

G: series impedance 0, rated voltage 600 V (line-to-line)

TX1: series impedance ZTX1, voltage ratio 600 V : 100 kV (line-to-line)

TL: series impedance ZTL;

TX2: series impedance ZTX2; voltage ratio 100 kV : 1kV (line-to-line)

L: impedance ZL.

Per unit system is based on  S = 50 MVA and the first base voltage VbaseG = 600 V (line-to-line) at the generator. In per unit system representation, current through the entire system equals 0.32 + j0.58 per unit.

Determine current (magnitude only) in the transmission line (TL) in Amps. Express your answer as a number with one digit after decimal point (as in 123.4)

In: Electrical Engineering

12) The cross-price elasticity of demand for coffee and tea is likely to be A) greater...

12) The cross-price elasticity of demand for coffee and tea is likely to be
A) greater than zero.
B) less than zero.
C) zero.
D) infinity.
13) The cross-price elasticity of demand for coffee and coffee-cream is likely to be
A) greater than zero.
B) less than zero.
C) zero.
D) infinity.
14) The cross-price elasticity of demand for coffee and caskets is likely to be
A) less than zero.
B) greater than zero.
C) zero.
D) infinity.
15) When purchases of tennis socks decline following an increase in the price of tennis sneakers (other things remaining equal), the relationship between these two items can be described as
A) substitutable.
B) complementary.
C) unique.
D) ordinary.
16) The owner of a produce store found that when the price of a head of lettuce was raised from 50 cents to $1, the quantity sold per hour fell from 18 to 8. The arc elasticity of demand for lettuce is
A) -0.56.
B) -1.15.
C) -0.8.
D) -1.57.
17) Suppose the price of crude oil drops from $150 a barrel to $120 a barrel. The quantity bought remains unchanged at 100 barrels. The coefficient of price elasticity of demand in this example would be
A) -0.5.
B) infinity.
C) -1.0.
D) 0.
18) If a firm decreases the price of a good and total revenue decreases, then
A) the demand for this good is price elastic.
B) the demand for this good is price inelastic.
C) the cross elasticity is negative.
D) the income elasticity is less than 1.
19) When total revenue reaches its peak (elasticity equals 1), marginal revenue reaches
A) 1.
B) zero.
C) -1.
D) Cannot be determined from the information provided
20) If the income elasticity of a particular good is negative 0.2, it would be considered
A) a superior good.
B) a normal good.
C) an inferior good.
D) an elastic good.

In: Economics

Marcia Miller died July 23, 2017. Marcia (born April 2, 1930) resided at 117 Brandywine Way,...

Marcia Miller died July 23, 2017. Marcia (born April 2, 1930) resided at 117 Brandywine Way, Eastern City, PA 19000 and was a lifelong Pennsylvania resident. Her first husband, Arthur Adams, died in 1999. In June 1999, she married Matt Miller, a U.S. citizen, who survived her. Marcia has three children (Andy, Annie, and Archie Adams) from her first marriage.

Date of death values of the properties discovered at Marcia’s death are listed below.

Principal residence with a value of $420,000. Purchased by Marcia in 2001 and titles in the names of Matt and Marcia Miller, joint tenants with right of survivorship.

Household furnishings acquired by Marcia during her first marriage and values at $62,000 when she died.

$1 million cash in money market account in Marcia’s name. On her date of death, there also was $2,200 of accrued interest in the account.

$17,000 checking account at Keystone State Bank in the names of Marcia and Matt as tenants in common.

Stock portfolio in Marcia’s name with fair market value at her death of $5.6 million.

$1 million like insurance policy. Marcia purchased the policy in 1990 and held incidents of ownership. Beneficiary is Marcia’s estate, and Marcia held incidents of ownership.

Trust at Quaker State Bank with value of $500,000. The trust was created under the will of Marcia’s uncle, Josh Judson, who died in 1992. Marcia was entitled to receive all the income annually for life and was granted the power to will the property to such of her descendants as she so desired with the specification that, if she did not exercise the power, the property would pass to Josh’s Former housekeeper, Yvonne Jones.

Marcia’s will includes the following provisions:

I bequeath to Matt all of my tangible, personal property.

To First Lutheran Church I leave $50,000.

To a trust with PHL Bank I leave $200,000. Matt is to receive all the trust income quarterly for life, and the remainder is to be divided equally at his death among my three children or their estates.

I leave my sister Annette $100,000, but if she disclaims this amount, it will go to my beloved Matthew.

I appointed the property on the trust at Quaker State Bank to Annie Adams.

The rest of my property I leave to Andy (my first born).

Other pertinent information follows:

As of her date of death, Marcia owed her country club $800.

The cost of Marcia’s funeral and tombstone totaled $15,000.

Her accountant’s, attorney’s, and executor’s fees are estimated to be $120,000.

Annette made a qualified disclaimer of the $100,000 bequest.

Marcia’s executor, Susan, will make whatever elections will result in the lower tax payable. During her life, Marcia never made any taxable gifts and never consented to gift splitting.

Assume that, under state law, taxes and nay other costs associated with death are payable from the estate’s residue and that the state death tax owed is equal to the state death tax credit available on the federal estate tax return.

Prepare an estate tax return (Form 706) for Marcia. You will also need to prepare the following sub-schedules for Marcia:

B, C, D, E, F, J, K, M, O (These forms all need to be downloaded from the IRS website and the numbers must be manually loaded into the forms and then printed).

In: Accounting

Mary Higgins is a freelance writer with enough spare time on her hands to play the...

Mary Higgins is a freelance writer with enough spare time on her hands to play the stock market fairly seriously. Each morning she observes the change in stock price of a particular stock and decides whether to buy or sell, and if so, how many shares to buy or sell. Assume that on day 1, she has $100,000 cash to invest and that she spends part of this to buy her first 500 shares of the stock at the current price of $50 per share. From that point on, she follows a fairly simple “buy low, sell high” strategy. Specifically, if the price has increased three days in a row, she sells 25% of her shares of the stock. If the price has increased two days in a row (but not three), she sells 10% of her shares. In the other direction, if the price has decreased three days in a row, she buys up to 25% more shares, whereas if the price has decreased only two days in a row, she buys up to 10% more shares. The reason for the “up to” proviso is that she cannot buy more than she has cash to pay for. Assume a fairly simple model of stock price changes, as described in the file P16_51.xlsx. Each day the price can change by as much as $2 in either direction, and the probabilities depend on the previous price change: decrease, increase, or no change. Build a simulation model of this strategy for a period of 75 trading days. (You can assume that the stock price on each of the previous two days was $49.) Choose interesting @RISK output cells, and then run @RISK for at least 1000 iterations and report your findings. - please how to use R to resolve? Thanks.

In: Statistics and Probability

Black Box Cable TV is able to purchase an exclusive right to sell a premium movie...

Black Box Cable TV is able to purchase an exclusive right to sell a premium movie channel (PMC) in its market area. Let's assume that Black Box Cable pays $150,000 a year for the exclusive marketing rights to PMC. Since Black Box has already installed cable to all of the homes in its market area, the marginal cost of delivering PMC to subscribers is zero. The manager of Black Box needs to know what price to charge for the PMC service to maximize her profit. Before setting price, she hires an economist to estimate demand for the PMC service. The economist discovers that there are two types of subscribers who value premium movie channels. First are the 4,000 die-hard TV viewers who will pay as much as $150 a year for the new PMC premium channel. Second, the PMC channel will appeal to 20,000 occasional TV viewers who will pay as much as $20 a year for a subscription to PMC.

If Black Box Cable TV is unable to price discriminate, what price will it choose to maximize its profit, and what is the amount of the profit?
a. price = $20; profit = $400,000
b. price = $20; profit = $330,000
c. price = $150; profit = $450,000
d. price = $150; profit = $600,000

If Black Box Cable TV is able to price discriminate, what would be the maximum amount of profit it could generate?
a. $500,000
b. $600,000
c. $850,000
d. $925,000

What is the deadweight loss associated with the non-discriminating pricing policy compared to the price discriminating policy?
a. $375,000
b. $400,000
c. $475,000
d. It cannot be determined from the information provided.

In: Economics

to be done in java Your task is to finish the StockItem class so that it...

to be done in java

Your task is to finish the StockItem class so that it meets the following criteria

• The StockItem class will have 4 attributes:

a stock number;

a name;

the price of the item;

the total number of items currently in stock

• The first three of the above characteristics will need to be set at the time a StockItem object is created, with the total number of items set to 0 at this time. The stock number and name will not need to be changed after an item is created.

• The following methods are also required:

o A method that allows the price to be re-set during the object's lifetime

o a method that takes an integer argument and adds this to the total number of items in stock

o a method that returns the total value of items of this stock type;

calculated by multiplying the price of the item by the number of items in stock (price * units)

Required Methods: StockItem(String, String, double) (class constructor) setPrice(double) increaseTotalStock(int) getStockNumber(): String getName(): String getTotalStock(): int getPrice(): double calculateTotalPrice(): double

Requested files StockItem.java

/** * A class representing an item in stock in some sort * of inventory system */

public class StockItem {

//TODO: add fields for a: name, stockNumber, price, units.

//TODO: create a constructor that takes name, stockNumber and price as arguments

// and sets units to 0.

//TODO: create accessor ("getter") methods for price, stock number and name.

//TODO: create a method increaseTotalStock that increases units by a given quantity.

//TODO:create a mutator ("setter") method setPrice that sets price to a given amount.

//TODO: create a method calculateTotalPrice that returns the total price of the current inventory

// (Calculated as current price * number of units) }

In: Computer Science

Write a program that generates a random number between 1 and 100 and asks the user...

Write a program that generates a random number between 1 and 100 and asks the user to
guess what the number is. If the user’s guess is higher than the random number, the program
should display “Too high, try again.” If the user’s guess is lower than the random number, the
program should display “Too low, try again.” The program should use a loop that repeats until
the user correctly guesses the random number. Your program should also keep a count of the
number of guesses that the user makes. When the user correctly guesses the random number,
the program should display the number of guesses.
Style guidelines
#include directives must follow header comments, before the rest of the program.
Variable names:
--must be meaningful
--loop index names can be simple (i, j, k, etc)
--The initial letter should be lowercase, following words should be capitalized, no other caps or punctuation (ie: weightInPounds). This is called "camel case".
Named constants:
—use for most numeric literals (including array sizes). —name should be all capitals with underscores:

const double TAX_RATE = 0.0675;
—should occur near the top of the program (not inside functions).
Line length of source code should be no longer than 80 characters (no wrapping of lines).
Indentation:
--Use 2-4 spaces (but be consistent throughout your program). --Indent blocks, within blocks, etc.
--Use blank lines to separate sections.
Comments for variables:
All variable declarations should be commented as follows:
int rank; // numeric value for a card, A=1, J=11, Q=12, K=13

Comments for functions:
Function definitions should be commented to describe what it does, what the parameters are, and what the function returns (when appropriate). See the template and the example below. If the function body contains more than about five statements, there should be comments to describe the various sections of code in the function body.
Template:
//***********************************************************
// function name: short description of what the function does. //
// param-1 description of first parameter (if any)
// param-2 description of second parameter (if any)
// (remaining params, if any)
// returns: description of what function returns (if not void) //***********************************************************
Example:
//***********************************************************
// getBestPlayer: determines which player scored the most points
// p the array of player information
// size the number of players in the array
// returns the name of player who scored the most points
//***********************************************************
string getBestPlayer(Player p[], int size) {
// function body goes here
}
In-code comments:
DO NOT comment every line of code! In general, try to avoid using comments that describe WHAT the code is doing. These are redundant (we can just read the code). Comments that explain WHY the code is doing what it is doing are more helpful. Try to minimize in-code comments, and write readable code instead.
Follow these recognized good programming practices:
The grader may deduct for these issues:

1. Useappropriatedatatypes:

double populationSize; // you cannot have a fractional amount 
 // of people like 2008.55, use int


2. Avoidduplicatecode(don’tcopy,pasteandmodify):

if (monthlySales > 3000) {

cout << “Commission: $" << price * 0.25 << endl;

}

else {

cout << “Commission: $" << price * 0.29 << endl;
 }

better:

double rate;

if (monthlySales > 3000) {
 rate = 0.25;

}

else {

rate = 0.29;
cout << “Commission: $" << price * rate << endl;
3. Donotuseuninitializedvariables:

int total; //should be initialized to 0;
 for (..;..;..)

total = total + x; //on first use, total has garbage in it

4. Useanamedconstantforanarraysize:

const int SIZE = 100; //NOT: int SIZE;
 . . .

double myArray[SIZE];

5. Avoidoutofboundsarrayaccess:
 for example:

for (int i=0; i<=SIZE; i++) { // when i == SIZE it goes 

// beyond the end of the array

. . . myArray[i] . . .
 }

6. Donotuseglobalvariables(butglobalnamedconstantsaregood).

7. Usereferenceparametersonlywhennecessary.

In: Computer Science

Java Programming II Homework 2-1 In this assignment you are being asked to write some methods...

Java Programming II Homework 2-1 In this assignment you are being asked to write some methods that operate on an array of int values. You will code all the methods and use your main method to test your methods. Your class should be named Array Your class will have the following methods (click on the method signatures for the Javadoc description of the methods): [ https://bit.ly/2GZXGWK ] public static int sum(int[] arr) public static int sum(int[] arr, int firstIndex, int lastIndex) public static double average(int[] arr) public static double average(int[] arr, int firstIndex, int lastIndex) public static int maxValue(int[] arr) public static int maxValue(int[] arr, int firstIndex, int lastIndex) public static int indexOfFirstMaxValue(int[] arr) public static int indexOfFirstMaxValue(int[] arr, int firstIndex, int lastIndex) public static int numberOfBelowAverageElements(int[] arr) public static int numberOfBelowAverageElements(int[] arr, int firstIndex, int lastIndex) public static void rotateElements(int[] arr) public static void rotateElements(int[] arr, int rotationCount) public static void reverseArray(int[] arr) For example, given the following array: myArray = {45, 22, 18, 89, 82, 79, 15, 69, 100, 55, 48, 72, 16, 98, 57, 75, 44, 32, 21, 14, 7, 16, 49, 58, 72} Your methods will return the following values: 1. Sum of whole array = 1253 2. Sum of elements 12-18 = 343 3. Average of whole array = 50.12 4. Average of elements 12-18 = 49.0 5. Max of whole array = 100 6. Max of elements 12-18 = 98 7. Index of first Max of whole array = 8 8. Index of first Max of elements 12-18 = 13 9. Count of elements below average of whole array = 13 10. Count of elements below average of elements 12-18 = 4 11. Rotating once myArray = {72, 45, 22, 18, 89, 82, 79, 15, 69, 100, 55, 48, 72, 16, 98, 57, 75, 44, 32, 21, 14, 7, 16, 49, 58} 12. Rotating 5 more times myArray = {14, 7, 16, 49, 58, 72, 45, 22, 18, 89, 82, 79, 15, 69, 100, 55, 48, 72, 16, 98, 57, 75, 44, 32, 21} 13. Reversing the array myArray = {21, 32, 44, 75, 57, 98, 16, 72, 48, 55, 100, 69, 15, 79, 82, 89, 18, 22, 45, 72, 58, 49, 16, 7, 14}

In: Computer Science

Java Programming II Homework 2-1 In this assignment you are being asked to write some methods...

Java Programming II Homework 2-1 In this assignment you are being asked to write some methods that operate on an array of int values. You will code all the methods and use your main method to test your methods. Your class should be named Array Your class will have the following methods (click on the method signatures for the Javadoc description of the methods): [ https://bit.ly/2GZXGWK ]

public static int sum(int[] arr) public static int sum(int[] arr, int firstIndex, int lastIndex)

public static double average(int[] arr) public static double average(int[] arr, int firstIndex, int lastIndex)

public static int maxValue(int[] arr) public static int maxValue(int[] arr, int firstIndex, int lastIndex)

public static int indexOfFirstMaxValue(int[] arr)

public static int indexOfFirstMaxValue(int[] arr, int firstIndex, int lastIndex)

public static int numberOfBelowAverageElements(int[] arr)

public static int numberOfBelowAverageElements(int[] arr, int firstIndex, int lastIndex)

public static void rotateElements(int[] arr) public static void rotateElements(int[] arr, int rotationCount)

public static void reverseArray(int[] arr)

For example, given the following array: myArray = {45, 22, 18, 89, 82, 79, 15, 69, 100, 55, 48, 72, 16, 98, 57, 75, 44, 32, 21, 14, 7, 16, 49, 58, 72}

Your methods will return the following values:

1. Sum of whole array = 1253

2. Sum of elements 12-18 = 343

3. Average of whole array = 50.12

4. Average of elements 12-18 = 49.0

5. Max of whole array = 100

6. Max of elements 12-18 = 98

7. Index of first Max of whole array = 8

8. Index of first Max of elements 12-18 = 13

9. Count of elements below average of whole array = 13

10. Count of elements below average of elements 12-18 = 4 1

1. Rotating once myArray = {72, 45, 22, 18, 89, 82, 79, 15, 69, 100, 55, 48, 72, 16, 98, 57, 75, 44, 32, 21, 14, 7, 16, 49, 58}

12. Rotating 5 more times myArray = {14, 7, 16, 49, 58, 72, 45, 22, 18, 89, 82, 79, 15, 69, 100, 55, 48, 72, 16, 98, 57, 75, 44, 32, 21}

13. Reversing the array myArray = {21, 32, 44, 75, 57, 98, 16, 72, 48, 55, 100, 69, 15, 79, 82, 89, 18, 22, 45, 72, 58, 49, 16, 7, 14}

In: Computer Science

Write a program, called NationalTax, that will simulate calculating a citizen's income tax for the year....

Write a program, called NationalTax, that will simulate calculating a citizen's income tax for the year.

A country uses lettered ID's to identify its citizens. Valid ID's will be either 8 or 9 characters long. All characters entered will be alphabetic characters only (a-z or A-Z).

  • Display a welcome message.
  • Prompt the user for their ID and read it in.
  • Next, determine if the ID is valid based on its length.
    • If it is not valid, simply state that the ID is invalid and let the program end naturally (you may NOT use System.exit).
    • However, if it is valid, then do the following:
      • Prompt the user for the tax year (entered as a four-digit integer). No validity check needs to happen here.
      • Prompt the user for their annual income (this includes dollars and cents) and read it in. Since no annual income can be less than zero, if the user enters a negative amount, simply convert it to its positive amount. You may not use if/else statements here. Use the appropriate Math library method.
      • Convert the ID to all CAPS.
      • Display the ID.
      • Display the annual income as dollars and cents.
      • Set the tax amount to be log10 of their annual income multiplied by 100. Display this as their initial tax amount.
      • Then if the first character of the ID is in the range:
        • A - G, then the person works for the government. Reduce their tax by 10%. Display that they are a government employee, that they receive a 10% tax reduction, and display the new tax amount.
        • H - P, then the person works in the public sector. There is no tax reduction. Display they they are a public sector employee and that they receive no tax reduction.
        • Q - U, then the person is unemployed. Display that they are unemployed and that they receive no tax reduction.
        • Otherwise the person is retired. Reduce their tax by 25%. Display that they are retired, that they receive a 25% tax reduction, and display the new tax amount.
      • Then if the last character of the ID is greater than the first character:
        • the person is 21 years old or older. They pay an additional $100 in taxes. Add this to their current tax amount. Display that they are 21 years of age or older, that there is an additional $100 tax, and display the new tax amount.
        • Otherwise the person is less than 21 years old. There is no additional tax. Display that the are under 21 years of age and do not pay the additional tax.
      • Then if the ASCII value of the fifth letter (remember indexing starts at 0) of the ID (as a capital letter) is divisible by 7
        • that person is a millionaire. Their tax is the larger of the current tax amount and $15,000. Display that they are a millionaire, that their tax is the larger of their current tax amount (display the value) and $15,000, and display their new tax amount.
        • Otherwise they are not. Display nothing.
      • Then if the ID contains the string "MED" (remember case does not matter in the ID):
        • then they are a medical professional. Their tax is reduced by $100. Display that they are a medical profession, they their tax is reduced by 100, and display the new tax amount.  
        • Otherwise they are not. Display nothing.
      • Then if the final tax amount is negative, change it to 0.
      • Finally, in one printf statement, display a message that tells the user the ID, the tax year, their annual income, and their final tax amount owed.

In: Computer Science