Questions
JAVA: Suppose we have a number of triangles and quadrilaterals in a 2-dimensional coordinate plane. we...

JAVA: Suppose we have a number of triangles and quadrilaterals in a 2-dimensional coordinate plane. we want to be able to easily determine the perimeter of each shape and move shapes around the coordinate plane. Download the Shape.java and Point.java from Moodle. - Shape.java is an interface contains getPerimeter() and move() abstract methods. - Point.java is a class object which provides getX(), getY(), distanceTo(Point p) and move() methods. Design two classes named Quadrilateral and Triangle that implement Shape interface to determine their perimeter of each shape and move shapes around the coordinate plane. Test your classes in a Driver class that use (1.0, 1.0), (1.0, 2.0), (2.0, 1.0) and (2.0, 2.0) as coordinates for Quadrilateral vertices and (1.0, 1.0), (1.0, 2.0), (2.0, 1.0) as coordinate for Triangle. Use methods from Point Object to calculate their perimeters and display their results. Use move method from Point Object to increment x coordinate by 1.0 and y coordinate by 2.0 for all vertices of both shapes. Calculate their perimeters and display their results.

SHAPE

import java.util.*;

public interface Shape {
public double getPerimeter();
public void move(double deltaX, double deltaY);
}

POINT

import java.util.*;


public class Point {
private double x;
private double y;
public Point(double x, double y) {
   this.x = x;
   this.y = y;
}
public double getX() {
   return x;
}

public double getY() {
return y;
}
public double distanceTo(Point p) {
   return Math.sqrt(Math.pow(this.getX() - p.getX(), 2) + Math.pow(this.getY() - p.getY(), 2));
}
public void move(double deltaX, double deltaY) {
x += deltaX;
y += deltaY;
}
}

In: Computer Science

I need to deep clone these 4 classes, using the cloneable interface. This is my code...

I need to deep clone these 4 classes, using the cloneable interface. This is my code so far. Is it correct or do I need to make any changes?

class Record implements Cloneable {

private String CNAME;
private ArrayList<Subject> eCores;
private Major eMajor;
private ArrayList<Subject> eElectives;
private int totalCredit;
private Status status;
private ArrayList<Student> students;

@Override
protected Record clone() throws CloneNotSupportedException {
Record record = (Record) super.clone();
record.eMajor = (Major) eMajor.clone();
eCores = new ArrayList<>();
for (Subject s : eCores) {
Subject s1 = (Subject) s.clone();
record.eCores.add(s1);
}
eElectives = new ArrayList<>();
for (Subject ss : eElectives) {
Subject ss1 = (Subject) ss.clone();
record.eElectives.add(ss1);
}
return record;
}

public class Subject implements Cloneable {

private String subjectName;
private String subjectCode;
private int subjectCreditPoint;
private ArrayList<Student> studentList;

@Override
protected Subject clone() throws CloneNotSupportedException {
return (Subject) super.clone();
}

abstract class Student implements Cloneable, Enrollment {

private String studentName;
private String studentDOB;
private String studentSex;//Student Gender
private int studentNumber;
private ArrayList<Record> record;

@Override
protected Student clone() throws CloneNotSupportedException {
Student student = (Student) super.clone();
record = new ArrayList<>();
for (Record r : record) {
Record r1 = (Record) r.clone();
student.record.add(r1);
}
return student;

}

class Major implements Cloneable {

private String mName;
private ArrayList<Subject> mCores;
@Override
protected Major clone() throws CloneNotSupportedException {
Major major = (Major) super.clone();
mCores = new ArrayList<>();
for (Subject s : mCores) {
Subject s1 = (Subject) s.clone();
major.mCores.add(s1);
}
return major;
}

In: Computer Science

a) What is Asset Liability Management? Enumerate the roles and responsibilities of the various governance structures...

a) What is Asset Liability Management? Enumerate the roles and responsibilities of the various governance structures available to a bank with regard to its interest rate risk management. b) What is Interest Rate Risk? Mention and explain the various sources of interest rate risk in a typical banking book. c) A bank has the following balance sheet extract as at 31st March 2018. Using the table above, i) Calculate 1-year; (a) Rate Sensitive assets (RSAs) (b) Rate Sensitive Liabilities (RSLs) (c) 1-year re-pricing Gap of the bank ii) What is the gap ratio of the bank? iii) What is the impact of 2% increase in interest rate on the bank’s net interest income over 1-year period? iv) Suppose interest rate increase by 2.5% on assets and 2% on liabilities over the next 1-year. Calculate the cumulative impact on the 1-year Net Interest Income of the bank. Question 2 The Treasurer of Esabelle Company Ltd has forecasted that the company will have excess cash in the next 12 months and is therefore looking for a place to invest. As a treasury consultant advise the treasurer with regard to the following: a) The things to consider before investing b) The available Investment products on the Ghanaian financial market c) The various investment strategies he can adopt and considerations that should be made before adopting such strategies. Question 3 a) Explain what is meant by Bank Credit Creation and Cash Reserve Requirement b) Ansaba Bank Ltd received GHS 1m deposit from one of its trusted customers who had hidden the cash under his pillow since 1st July 2007 on 15 November 2017. The bank is required by law to keep 10 % of all its customer deposit with the Central Bank in a non-interest bearing current account. i) Calculate the maximum loan Ansaba Bank can grant with this loan if the bank does not keep any excess reserve ii) Suppose the number of banks in the economy is 5, how much loans can be created? What if the number of banks in the economy is infinite? iii) Explain two mechanisms the central bank can use to influence credit creation in the economy. iv) The Bank of Ghana’s Monetary Policy Committee (MPC) has reduced the Policy rate cumulatively by 300 basis points since the beginning of the year. Explain briefly the impact the reduction in the policy rate will have on the economy of Ghana. Question 4 a) The following extracts were taken from the Bank of Ghana websites as at 23rd June 2018: 91-Day Treasury Bill Rate-13.3251% Interbank Rate-16.23% Monetary Policy Rate-17% Using the above information and the new model, calculate the Ghana Reference Rate as at 23rd June 2018. The current Cash Reserve Requirement (CRR) is 10% and the industry agreed Cash in Vault (CIV) limit is 2%. b) The following extracts were taken from the balance sheet for the month ended 31st March 2018 for Bank XYZ which has been operating in Ghana for the past 20 years. Products Balances (GHS m) Customer Rate Personal Loans (Floating) 350 GRR + 5% Corporate Loans (Floating) 565 GRR+4% Time deposits(1yr maturity) 300 GRR-3% Savings 500 GRR-10% In addition the following data is available: 91-day Treasury bill rate is forecasted to reduce by 200bps over the next 1 year, whilst the Monetary Policy and the Interbank Overnight Rates are forecasted to decline by 300bps and 250bps respectively. i) State the various interest rates on the bank’s products. What is the Bank’s Net Interest margin? ii) Suppose the forecasted interest rates are true, calculate the impact on the bank’s net interest margin in the next 1 year. iii) Repeat (ii) assuming the bank is able to pass on only 50% and 75% of the rate change to its liability and assets customers respectively. iv) The bank’s internal funds transfer pricing to the Corporate Banking unit is 18.5%. At a management meeting held recently, the Corporate Director was not happy with the internal funding rate as he claims it is making pricing unprofitable. Do you agree with his complain? Explain your answer. a) What is Asset Liability Management? Enumerate the roles and responsibilities of the various governance structures available to a bank with regard to its interest rate risk management. b) What is Interest Rate Risk? Mention and explain the various sources of interest rate risk in a typical banking book. c) A bank has the following balance sheet extract as at 31st March 2018. Using the table above, i) Calculate 1-year; (a) Rate Sensitive assets (RSAs) (b) Rate Sensitive Liabilities (RSLs) (c) 1-year re-pricing Gap of the bank ii) What is the gap ratio of the bank? iii) What is the impact of 2% increase in interest rate on the bank’s net interest income over 1-year period? iv) Suppose interest rate increase by 2.5% on assets and 2% on liabilities over the next 1-year. Calculate the cumulative impact on the 1-year Net Interest Income of the bank. Question 2 The Treasurer of Esabelle Company Ltd has forecasted that the company will have excess cash in the next 12 months and is therefore looking for a place to invest. As a treasury consultant advise the treasurer with regard to the following: a) The things to consider before investing b) The available Investment products on the Ghanaian financial market c) The various investment strategies he can adopt and considerations that should be made before adopting such strategies. Question 3 a) Explain what is meant by Bank Credit Creation and Cash Reserve Requirement b) Ansaba Bank Ltd received GHS 1m deposit from one of its trusted customers who had hidden the cash under his pillow since 1st July 2007 on 15 November 2017. The bank is required by law to keep 10 % of all its customer deposit with the Central Bank in a non-interest bearing current account. i) Calculate the maximum loan Ansaba Bank can grant with this loan if the bank does not keep any excess reserve ii) Suppose the number of banks in the economy is 5, how much loans can be created? What if the number of banks in the economy is infinite? iii) Explain two mechanisms the central bank can use to influence credit creation in the economy. iv) The Bank of Ghana’s Monetary Policy Committee (MPC) has reduced the Policy rate cumulatively by 300 basis points since the beginning of the year. Explain briefly the impact the reduction in the policy rate will have on the economy of Ghana. Question 4 a) The following extracts were taken from the Bank of Ghana websites as at 23rd June 2018: 91-Day Treasury Bill Rate-13.3251% Interbank Rate-16.23% Monetary Policy Rate-17% Using the above information and the new model, calculate the Ghana Reference Rate as at 23rd June 2018. The current Cash Reserve Requirement (CRR) is 10% and the industry agreed Cash in Vault (CIV) limit is 2%. b) The following extracts were taken from the balance sheet for the month ended 31st March 2018 for Bank XYZ which has been operating in Ghana for the past 20 years. Products Balances (GHS m) Customer Rate Personal Loans (Floating) 350 GRR + 5% Corporate Loans (Floating) 565 GRR+4% Time deposits(1yr maturity) 300 GRR-3% Savings 500 GRR-10% In addition the following data is available: 91-day Treasury bill rate is forecasted to reduce by 200bps over the next 1 year, whilst the Monetary Policy and the Interbank Overnight Rates are forecasted to decline by 300bps and 250bps respectively. i) State the various interest rates on the bank’s products. What is the Bank’s Net Interest margin? ii) Suppose the forecasted interest rates are true, calculate the impact on the bank’s net interest margin in the next 1 year. iii) Repeat (ii) assuming the bank is able to pass on only 50% and 75% of the rate change to its liability and assets customers respectively. iv) The bank’s internal funds transfer pricing to the Corporate Banking unit is 18.5%. At a management meeting held recently, the Corporate Director was not happy with the internal funding rate as he claims it is making pricing unprofitable. Do you agree with his complain? Explain your answer.

In: Accounting

U.S. Manufactured General Aviation Shipments, 1984–2016 Year Planes Year Planes Year Planes Year Planes 1984 3,861...

U.S. Manufactured General Aviation Shipments, 1984–2016
Year Planes Year Planes Year Planes Year Planes
1984 3,861 1992 2,371 2000 4,246 2008 4,509
1985 3,459 1993 2,394 2001 4,064 2009 3,015
1986 2,925 1994 2,358 2002 3,637 2010 2,764
1987 2,515 1995 2,507 2003 3,567 2011 2,753
1988 2,642 1996 2,545 2004 3,785 2012 2,946
1989 2,965 1997 2,979 2005 4,287 2013 3,045
1990 2,574 1998 3,630 2006 4,577 2014 3,061
1991 2,451 1999 3,934 2007 4,709 2015 3,022

Make a forecast for 2016 using a method of your choice (including a judgment forecast). Justify your method. (Round your answer to the nearest whole number.)

The two year moving average forecast for 2016 is _______.

In: Statistics and Probability

On March 11, 20XX, the existing or current (spot) one-year, two-year, three-year, and four-year zero-coupon Treasury...

On March 11, 20XX, the existing or current (spot) one-year, two-year, three-year, and four-year zero-coupon Treasury security rates were as follows:

1R1 = 2.23%, 1R2 = 2.55%, 1R3 = 2.79%, 1R4 = 2.90%

Using the unbiased expectations theory, calculate the one-year forward rates on zero-coupon Treasury bonds for years two, three, and four as of March 11, 20XX. (Do not round intermediate calculations. Round your answers to 2 decimal places. (e.g., 32.16))

In: Finance

Use the following cash flows to answer: Year 0 = ($1,550); Year 1 = $850; Year...

Use the following cash flows to answer:

Year 0 = ($1,550); Year 1 = $850; Year 2 = $900. The firms WACC = 8%.

What is the Profitability Index (PI)?

a)

0.0056

b)

1.01

c)

1.51

d)

1.13

In: Finance

The following transactions were completed by Winklevoss Inc., whose fiscal year is the calendar year: Year...

The following transactions were completed by Winklevoss Inc., whose fiscal year is the calendar year:

Year 1
July 1 Issued $32,300,000 of 20-year, 9% callable bonds dated July 1, Year 1, at a market (effective) rate of 11%, receiving cash of $27,116,993. Interest is payable semiannually on December 31 and June 30.
Dec. 31 Paid the semiannual interest on the bonds. The bond discount amortization of $129,575 is combined with the semiannual interest payment.
31 Closed the interest expense account.
Year 2
June 30 Paid the semiannual interest on the bonds. The bond discount amortization of $129,575 is combined with the semiannual interest payment.
Dec. 31 Paid the semiannual interest on the bonds. The bond discount amortization of $129,575 is combined with the semiannual interest payment.
31 Closed the interest expense account.
Year 3
June 30

Recorded the redemption of the bonds, which were called at 98. The balance in the bond discount account is $4,664,707 after payment of interest and amortization of discount have been recorded. (Record the redemption only.)

CHART OF ACCOUNTS
Winklevoss Inc.
General Ledger
ASSETS
110 Cash
111 Petty Cash
121 Accounts Receivable
122 Allowance for Doubtful Accounts
126 Interest Receivable
127 Notes Receivable
131 Merchandise Inventory
141 Office Supplies
142 Store Supplies
151 Prepaid Insurance
191 Land
192 Store Equipment
193 Accumulated Depreciation-Store Equipment
194 Office Equipment
195 Accumulated Depreciation-Office Equipment
LIABILITIES
210 Accounts Payable
221 Salaries Payable
231 Sales Tax Payable
232 Interest Payable
241 Notes Payable
251 Bonds Payable
252 Discount on Bonds Payable
253 Premium on Bonds Payable
EQUITY
311 Common Stock
312 Paid-In Capital in Excess of Par-Common Stock
315 Treasury Stock
321 Preferred Stock
322 Paid-In Capital in Excess of Par-Preferred Stock
331 Paid-In Capital from Sale of Treasury Stock
340 Retained Earnings
351 Cash Dividends
352 Stock Dividends
390 Income Summary
REVENUE
410 Sales
610 Interest Revenue
611 Gain on Redemption of Bonds
EXPENSES
510 Cost of Merchandise Sold
515 Credit Card Expense
516 Cash Short and Over
521 Sales Salaries Expense
522 Office Salaries Expense
531 Advertising Expense
532 Delivery Expense
533 Repairs Expense
534 Selling Expenses
535 Rent Expense
536 Insurance Expense
537 Office Supplies Expense
538 Store Supplies Expense
541 Bad Debt Expense
561 Depreciation Expense-Store Equipment
562 Depreciation Expense-Office Equipment
590 Miscellaneous Expense
710 Interest Expense
711 Loss on Redemption of Bonds

In: Accounting

Statement of Profit or Loss for years 2016 to 2019 Year 2019 Year 2018 Year 2017...

Statement of Profit or Loss for years 2016 to 2019 Year 2019

Year 2018

Year 2017

Year 2016

$

$

$

$

Sales revenue

1,095,910

1,060,900

1,030,000

1,000,000

Less: Cost of goods sold

(895,358)

(866,755)

(842,540)

(820,000)

Gross profit

200,552

194,145

187,460

180,000

Other operating expenses

(162,877)

(161,827)

(160,900)

(160,000)

Income before tax

37,675

32,318

26,560

20,000

Less: Income tax expense

(3,768)

(3,232)

(2,656)

(2,000)

Net income

33,907

29,086

23,904

18,000

Required:

  1. Compute the index-number trend percentages for the accounts below in all years, using 2016 as the base period.
  1. Sales revenue;
  2. Gross profit;
  3. Other operating expenses; and
  4. Net income. .
  1. For items (i) and (iv) in Part (a) above, analyze the trend, the observed results, and the likely reason(s) behind respectively.

In: Accounting

The following transactions were completed by Winklevoss Inc., whose fiscal year is the calendar year: Year...

The following transactions were completed by Winklevoss Inc., whose fiscal year is the calendar year:

Year 1
July 1 Issued $74,000,000 of 20-year, 11% callable bonds dated July 1, Year 1, at a market (effective) rate of 13%, receiving cash of $63,532,267. Interest is payable semiannually on December 31 and June 30.
Oct. 1 Borrowed $200,000 by issuing a six-year, 6% installment note to Nicks Bank. The note requires annual payments of $40,673, with the first payment occurring on September 30, Year 2.
Dec. 31 Accrued $3,000 of interest on the installment note. The interest is payable on the date of the next installment note payment.
31 Paid the semiannual interest on the bonds. The bond discount amortization of $261,693 is combined with the semiannual interest payment.
Year 2
June 30 Paid the semiannual interest on the bonds. The bond discount amortization of $261,693 is combined with the semiannual interest payment.
Sept. 30 Paid the annual payment on the note, which consisted of interest of $12,000 and principal of $28,673.
Dec. 31 Accrued $2,570 of interest on the installment note. The interest is payable on the date of the next installment note payment.
31 Paid the semiannual interest on the bonds. The bond discount amortization of $261,693 is combined with the semiannual interest payment.
Year 3
June 30 Recorded the redemption of the bonds, which were called at 98. The balance in the bond discount account is $9,420,961 after payment of interest and amortization of discount have been recorded. Record the redemption only.
Sept. 30 Paid the second annual payment on the note, which consisted of interest of $10,280 and principal of $30,393.

Required:

1. Journalize the entries to record the foregoing transactions. Round all amounts to the nearest dollar. Refer to the Chart of Accounts for exact wording of account titles.
2. Indicate the amount of the interest expense in (a) Year 1 and (b) Year 2.
3.

Determine the carrying amount of the bonds as of December 31, Year 2.

1. Journalize the entries to record the foregoing transactions. Round all amounts to the nearest dollar. Refer to the Chart of Accounts for exact wording of account titles.

Year 1

PAGE 10

JOURNAL

ACCOUNTING EQUATION

DATE DESCRIPTION POST. REF. DEBIT CREDIT ASSETS LIABILITIES EQUITY

1

2

3

4

5

6

7

8

9

10

Year 2

PAGE 10

JOURNAL

ACCOUNTING EQUATION

DATE DESCRIPTION POST. REF. DEBIT CREDIT ASSETS LIABILITIES EQUITY

1

2

3

4

5

6

7

8

9

10

11

12

Year 3

PAGE 10

JOURNAL

ACCOUNTING EQUATION

DATE DESCRIPTION POST. REF. DEBIT CREDIT ASSETS LIABILITIES EQUITY

1

2

3

4

5

6

7

8

2. Indicate the amount of the interest expense in (a) Year 1 and (b) Year 2.

a. Year 1:
b. Year 2:

3. Determine the carrying amount of the bonds as of December 31, Year 2.

In: Accounting

The following transactions were completed by Winklevoss Inc., whose fiscal year is the calendar year: Year...

The following transactions were completed by Winklevoss Inc., whose fiscal year is the calendar year:

Year 1
July 1 Issued $74,000,000 of 20-year, 11% callable bonds dated July 1, Year 1, at a market (effective) rate of 13%, receiving cash of $63,532,267. Interest is payable semiannually on December 31 and June 30.
Oct. 1 Borrowed $200,000 by issuing a six-year, 6% installment note to Nicks Bank. The note requires annual payments of $40,673, with the first payment occurring on September 30, Year 2.
Dec. 31 Accrued $3,000 of interest on the installment note. The interest is payable on the date of the next installment note payment.
31 Paid the semiannual interest on the bonds. The bond discount amortization of $261,693 is combined with the semiannual interest payment.
Year 2
June 30 Paid the semiannual interest on the bonds. The bond discount amortization of $261,693 is combined with the semiannual interest payment.
Sept. 30 Paid the annual payment on the note, which consisted of interest of $12,000 and principal of $28,673.
Dec. 31 Accrued $2,570 of interest on the installment note. The interest is payable on the date of the next installment note payment.
31 Paid the semiannual interest on the bonds. The bond discount amortization of $261,693 is combined with the semiannual interest payment.
Year 3
June 30 Recorded the redemption of the bonds, which were called at 98. The balance in the bond discount account is $9,420,961 after payment of interest and amortization of discount have been recorded. Record the redemption only.
Sept. 30 Paid the second annual payment on the note, which consisted of interest of $10,280 and principal of $30,393.

Required:

1. Journalize the entries to record the foregoing transactions. Round all amounts to the nearest dollar. Refer to the Chart of Accounts for exact wording of account titles.
2. Indicate the amount of the interest expense in (a) Year 1 and (b) Year 2.
3.

Determine the carrying amount of the bonds as of December 31, Year 2.

1. Journalize the entries to record the foregoing transactions. Round all amounts to the nearest dollar. Refer to the Chart of Accounts for exact wording of account titles.

Year 1

PAGE 10

JOURNAL

ACCOUNTING EQUATION

DATE DESCRIPTION POST. REF. DEBIT CREDIT ASSETS LIABILITIES EQUITY

1

2

3

4

5

6

7

8

9

10

Year 2

PAGE 10

JOURNAL

ACCOUNTING EQUATION

DATE DESCRIPTION POST. REF. DEBIT CREDIT ASSETS LIABILITIES EQUITY

1

2

3

4

5

6

7

8

9

10

11

12

Year 3

PAGE 10

JOURNAL

ACCOUNTING EQUATION

DATE DESCRIPTION POST. REF. DEBIT CREDIT ASSETS LIABILITIES EQUITY

1

2

3

4

5

6

7

8

2. Indicate the amount of the interest expense in (a) Year 1 and (b) Year 2.

a. Year 1:
b. Year 2:

3. Determine the carrying amount of the bonds as of December 31, Year 2.

In: Accounting