Write a JPanel (Conversion.java) and its testing class (testConversion.java) with appropriate…

Problem Description:

Write a JPanel (Conversion.java) and its testing class (testConversion.java) with appropriate layout to create a user interface as shown in the figure below. Your program should let the user enter a value in pound and should display the anwer in kilograms in a text area when the “Convert!” button is clicked. Note, your answers should be expressed in three decimal places, and use append() method to append the answers to the text area so that any previous answers won’t go away.

 

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

Hi, I need help with my C++ code. Create a Priority Queue UsingHeap in C++ that simulates an airline

Hi, I need help with my C++ code. Create a Priority Queue UsingHeap in C++ that simulates an airline algorithm to determine thepriority of passengers who are wait-listed for a flight. It needsto imput the user name and the time that he/she has arrived to thegate. It calculates a priority key based upon arrival time at thegate. Code to use as reference struct RecType {           intpriority;           char name[20]; }; struct NodeType {           intpriority;           char name[20];           NodeType* next; }; class pque { private:           RecTypex[100];           intlastIndex;           voidmaxreheapifyUpward (RecType x [], int lastIndex);           voidmaxreheapifyDownward (RecType x [], int lastIndex);           intfindLargeChildIndex (int parentIndex, int lastIndex); public:           pque();           voidpenque (RecType r);           RecTypepdeque ( );           boolisEmpty ( ); }; CODE For Ints //The code below is for an int heap array. //Also this code doesn’t use a class //Parts of the code are missing and is so indicated. //Modify this code so that it is for a record heap array. //Modify this code so that it is for class bool isEmpty(); void penque (int x); int pdeque ( ); void maxreheapifyUpward (int x [], int lastIndex); void maxreheapifyDownward (int x [], int lastIndex); int findLargeChildIndex (int parentIndex, int lastIndex); int lastIndex = -1; int x[100]; int main() {     int n;     cout << “input number” <

> n;     while (n>=0)     {         penque(n);        cout << “inputnumber” << endl;        cin >> n;     }     while (!isEmpty())     {        n = pdeque();        cout << n <

0 )           {                   parentIndex = childIndex/2;                   if (x [childIndex] using namespace std; class pque { public:     struct RecType     {         int priority;         string name;     };     RecType x[100];     int lastIndex;     RecType userInput; private:     void maxreheapifyUpward (RecType x [], intlastIndex)     {         int parentIndex;         int childIndex =lastIndex;         while (childIndex> 0 )         {            parentIndex = childIndex/2;            if (x[childIndex].priority <= x[parentIndex].priority)                break;            else            {                ///swap values at child and at parent.                RecType tempIndex = x[childIndex];                x[childIndex] = x[parentIndex];                x[parentIndex] = tempIndex;                ///Update child to parent                childIndex = parentIndex;            }         }     }     void maxreheapifyDownward (RecType x [], intlastIndex)     {         int parentIndex =0;       int largeChildIndex;         ///cout << “himaxreheapifyDownward” << endl;         while (parentIndex< lastIndex)         {            ///cout << “hi maxreheapifyDownward 2” << endl;            largeChildIndex = findLargeChildIndex (x, parentIndex,lastIndex);            if (largeChildIndex < 0 || x[largeChildIndex].priority <= x[parentIndex].priority)                break;            else            {                ///swap value at parentIndex with value at largeChildIndex               RecType temp = x[parentIndex];                x[parentIndex] = x[largeChildIndex];                x[largeChildIndex] = temp;                ///update parentIndex                parentIndex = largeChildIndex;            }         }     }     int findLargeChildIndex (RecType x[], intparentIndex, int lastIndex)     {         int lChildIndex = (2* parentIndex) + 1;         int rChildIndex = (2* parentIndex) + 2;         //case both childrenexist         if (rChildIndex <=lastIndex && lChildIndex <= lastIndex)         {            ///compare value at rChildIndex and at lChildIndex            ///return the index where the value is smaller            if (x[rChildIndex].priority > x[lChildIndex].priority)            {                return rChildIndex;            }            else            {                return lChildIndex;            }         }         ///case only leftchild exist         else if (lChildIndex<= lastIndex)         {            return lChildIndex;         }         ///case both childrenmissing         else         {            return -1;         }     } public:     pque() {lastIndex=-1;}     void penque (int p, string n)     {         lastIndex++;         x[lastIndex].priority= p;         x[lastIndex].name =n;        maxreheapifyUpward(x,lastIndex);     }     RecType pdeque ()     {         RecType returnValue =x[0];         x[0] =x[lastIndex];         lastIndex–;        maxreheapifyDownward(x,lastIndex);         returnreturnValue;     }     bool isEmpty ()     {         if (lastIndex <0){return true;}         else{returnfalse;}     } }; int main() {     pque recordList;     while (recordList.userInput.priority >=0)     {         cout << “inputnumber” << endl;         cin >>recordList.userInput.priority;         if(recordList.userInput.priority == -1)         {            break;         }         cout << “inputname” << endl;         cin >>recordList.userInput.name;        recordList.penque(recordList.userInput.priority,recordList.userInput.name);     }     while (!recordList.isEmpty())     {        recordList.userInput =recordList.pdeque();        cout . . .


 

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

John has just graduated from the College of Business Administration at State University and…

John has just graduated from the College of Business Administration at State University and has joined his family’s small business, which employs twenty-five semiskilled workers. During the first week on the job, hid dad called him in and said: “john, I’ve had a chance to observe you working with the men and women for the past two days and, although I hate to, I feel I must say something. You are just too nice to people. I know they taught you that human relations stuff at the university, but it just doesn’t work here. I remember when we discussed the Hawthorne studies when I was in school and everybody at the university got all excited about them, but believe me, there is more to managing [people than just being nice to them.”

1. How would you react to your father’s comments if you were John? 2. Do you think John’s father understood and interpreted the Hawthorne studies correctly? 3. How would you explain to your father perspective that is needed and how the study of organizational behavior will help the business be successful in the new paradigm?

Attachments:

 

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

Formally show the sensitivity of the EOQ formula with respect to the holding and setup costs…

a) Formally show the sensitivity of the EOQ formula with respect to the holding and

setup costs. That is, formulate the EOQ as a function of holding and setup costs,

and calculate the partial derivatives. Keeping everything else constant, how

does the optimal order quantity change if holding costs double? And if setup

costs double? (6 points)

b) The SIT@SP building is open year-round and faces a constant demand of 10

packages of printer paper per week. Holding a package of printer paper in stock

costs 5% per year of its price of 10$. The fixed costs of ordering a batch from

the store are 10$. What is the optimal number of packages to buy with each

order? An order takes 3 days to be delivered. When should the order be placed?

(5 points)

c) The facility services representative mistakenly read the wrong line from the

printer paper demand table, and took the value from TUM Campus Straubing

(also starts with S). Therefore, she estimated a demand of 30 packages of

printer paper per week instead of 10. How much larger are total costs per week

because of this mistake, as a percentage of the total costs per week under the

optimal order quantity? (7 points)

d) TUM Campuses Munich Downtown, Garching, and Straubing open year-round

and are currently stocking their printer paper separately, per campus. They order from the store in Munich for 6€ per package, holding costs are estimated at

5% per year of that price, and the fixed cost per order is 7€. Downtown uses

100 packages per week, Garching uses 50 packages per week, and Straubing

uses 30 packages per week. A student that followed Introduction to SCM at

TUM Asia notices that it is better to order centrally, and informs the President.

He, in turn, decides that all paper is from now on stocked and ordered centrally.

However, ordering centrally leads to an extra cost of on average 0.20€ per demanded package, for extra distribution. Compare the costs per year in the new

situation with those in the old situation. Did the President make the right decision?

Attachments:

 

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

Problem 12-5A Lai Inc. had the following investment transactions: held for trading investment and ac

Problem 12-5A Lai Inc. had the following investment transactions: held for trading investment and accounts for them using theWhich of your answers in the table above would change if the company were reporting under IFRS, would any alterrnative(s) to

Problem 12-5A Lai Inc. had the following investment transactions: held for trading investment and accounts for them using the fair value through profit or loss model, Purchased Chang Corporation preferred shares as 1. Received a cash dividend on the Chang preferred shares. Purchased Government of Canada bonds for cash, intending to hold them until maturity and accounts for them using the amortized cost model. Accrued interest on the Government of Canada bonds. 2. 3. 4 Sold half of the Chang preferred shares at a price less than originally paid. Purchased 25% of Xing Ltd.&#39;s common shares, which was enough to achieve significant influence and accounts for the investment using the equity method. Received Xing&#39;s financial statements, which reported a net loss for the year. 5. 6 7 Received a cash dividend from Xing. The fair value of Chang&#39;s preferred shares was lower than cost at year end. 8 9 The fair value of the Government of Canada bonds was higher than amortized cost at year end and the fair value of Xing Ltd.&#39;s common shares was unknown. 10. Using the following table format, indicate whether each of the above transactions would result in an increase (+), a decrease (-), or have no effect (NE) on the specific element in th Statement of Financial Position Income Statement Shareholders” Equity Revenues Expenses and Losses Assets Liabilities and Gains Profit 1. 2. 3. 4. 5. 6. 7, 8. 9. 10. Which of a Which of your answers in the table above would change if the company were reporting under IFRS, would any alterrnative(s) to the models chosen be allowed? (Select values only for those i Statement of Financial Position Shareholders Equity Income Statement Expenses and Losses Revenues Liabilities and Gains Profit Assets Which of your answers in the table above would change if the company were reporting under ASPE, would any alternative(s) to the models that were initially chosen be allowed? (Select values Statement of Financial Position Income Statement Shareholders” Equity Revenues and Gains Expenses and Losses Liabilities Profit: Assets

 

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

SEC 320 Risk Analysis, Loss Prevention and Emergency Planning SEC 320 Week 2 Case Study 1 Security A

SEC 320 Risk Analysis, Loss Prevention and Emergency Planning

 

 

SEC 320 Week 2 Case Study 1 Security Assessment

 

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

Consider the following spot interest rates for maturities of one, two, three, and four years. r 1 =

Consider the following spot interest rates for maturities of one, two, three, and four years.

           r1 = 5.2%    r2 = 5.6%     r3 = 6.3%     r4 = 7.1%

Assuming a constant real interest rate of 2 percent, what are the approximate expected inflation rates for the next four years? (Do not round intermediate calculations. Enter your answers as a percent rounded to 2 decimal places. Omit the “%” sign in your response.)

I1 %

  I2 %

  I3 %

   I4 %
hint Use the Fisher hypothesis and the unbiased expectations theory.

 

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

Globalization at Levi Strauss – Blue jeans are a legendary component of American culture…. 1 answer below »

Case Study 1

Globalization at Levi Strauss

Blue jeans are a legendary component of American culture. They were created in the United States in 1873, when Levi Strauss patented the riveted denim jeans that proved so successful among customers that they launched an entire industry. Yet, the one company that has perhaps been most synonymous with blue jeans—Levi Strauss—doesn’t actually make its blue jeans in the United States.

In the late 1990s and early part of this decade, Levi Strauss undertook a substantial shift in the location of its manufacturing operations. In 1997, Levi Strauss closed 11 plants and laid off 7,400 employees to cut excess production. In 1999, Levi’s announced a large-scale layoff of almost 6,000 jobs and the closing of more factories in Georgia, North Carolina, Virginia, Texas, Tennessee and Arkansas in an effort to move production to foreign facilities. Over time, the layoffs and the closing continued.

Once a mainstay of U.S. manufacturing, plants in areas such as San Antonio, San Francisco, El Paso, and Brownsville, were closed, and by 2004, Levi Strauss had shut its domestic operations and moved production facilities to foreign countries such as Mexico and China. Costs were a major factor for this decision. What might cost $6.67 to make in the United States costs about $3.00 in Mexico and $1.50 in China. While Levi Strauss was reluctant to move these jobs, it faced a competitive market operating with lower costs and lower prices.

Questions

  1. How did the four environmental factors discussed in this chapter influence Levi’s decision to move its manufacturing outside the United States?
  2. How would you evaluate this decision from a business perspective? What about from an ethical perspective?
  3. Assume that you are an employee working for Levi Strauss and are assigned to the management team in one of the manufacturing facilities in Mexico. What differences would you anticipate in terms of how you manage your Mexican employees versus how you manage employees located in the United States?

Case Study 2

Are Affirmative Action Plan Goals Evidence of Discrimination?

Xerox Corporation manufactures and markets copy machines and also provides facilities management services through Xerox Business Services (XBS). In the 1990s, Xerox started a Balanced Workforce Initiative (BWF) that involved the publication of specific affirmative action goals for each job and each salary grade level within the company. This plan was started in an effort to ensure proportional representation of all racial and gender groups throughout the company. The BWFs were based on government labor force data and established annually. Part of the annual performance evaluation for managers was how well they met the desired racial and gender compositions for their locations. In one instance, BWF reports compiled for the Houston office indicated that black employees were overrepresented and white employees were under-represented. Over a period of five years, steps were taken to reduce the percentage of black employees in the office in an effort to correct this imbalance. Six black employees filed suit against Xerox stating that they were denied promotion opportunities in the Houston office even though they were qualified for the jobs into which they wanted to be promoted. They also indicated that they felt the BWF data adversely affected their opportunity for advancement. Each plaintiff had a slightly different situation, but they collectively raised concerns that included denial of promotions, salary disparities, hostile work environment, and termination.

Questions

  1. Based on the evidence presented, has discrimination occurred? If so, which type of discrimination (i.e., disparate treatment, disparate impact, both)? If you aren’t sure, what questions would you want to have answered to make your determination?
  2. Which party (plaintiffs or defendant) has the burden of proof in this case? What defense could Xerox offer if the plaintiffs make a case of discrimination? Discuss how successful you think the company will be at defending its actions.
  3. Could Xerox have achieved the same goals in a less discriminatory manner? If so, how? If not, why not?
  4. How do the actions in this case differ from the intent and recommended practices for affirmative action?

 

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

Interview questions When you think about times that you had good leadership, what >>…

Interview questions

When you think about times that you had good leadership, what
>> >>> specific
>> >>> leader behaviors contributed to how you performed?
>> >>>
>> >>> 2. Have you ever had a bad leadership experience? What in your
>> >>> opinion
>> >>> went wrong and how would you change it if you had the chance?
>> >>>
>> >>> 3. As a leader do you ever find yourself basing your leadership style
>> >>> off
>> >>> of the employee’s developmental (maturity) level? Do you feel that
>> >>> this
>> >>> is
>> >>> an effective way to lead?
>> >>>
>> >>> 4. Do you feel that your leadership style changes depending on the
>> >>> situation that you/ your employee are in?
>> >>>
>> >>> 5. Some employees might lose commitment working for the company for
>> >>> longer
>> >>> time. What would you do to keep the employee motivated?
>> >>>
>> >>> 6. Once you see that employee has been working for the company for
>> >>> longer
>> >>> time and has proven himself that he doesn’t need directing and
>> >>> motivating
>> >>> anymore, would you still supervise him or delegate him to be an
>> >>> example
>> >>> for
>> >>> others?

 

 

 

 

 

 

 

 

 

 

 

 

…………………Answer Preview…………………..

  1. When you think about times that you had good leadership, what specific leader behaviors contributed to how you performed?

At one of my previous job capacities I came across a individual who apparently considered more as my mentor more than my boss although he was technically my boss. This was attributed to the traits he exhibited in his leadership capacity such as good communication skills, charismatic and above all he was open-minded a factor that highly encouraged employees to air their views. Through this I learnt……………………..

APA

643 Words

Added to cart

 

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"