Assignment
Examine the Main and Address classes. You are going to add two classes derived from Address: BusinessAddress and PersonAddress.
Create BusinessAddress class
The printLabel method should print (using System.out.println())
First line – the businessName field
Second line – the address2 field if it is not null or empty
Third line – the StreetAddress field if it is not null or empty
Fourth line – city field followed by a comma and space, the state field followed by two spaces, and the zip field
Create PersonAddress class
The printLabel method should print (using System.out.println())
First line – the personName field
Second line – the StreetAddress field
Third line – city field followed by a comma and space, the state field followed by two spaces, and the zip field
Modify Main class
Add the following three BusinessAddress objects to the list.
|
BusinessName |
Address2 |
StreetAddress |
City |
State |
Zip |
|
Columbus State |
Eibling 302B |
550 East Spring St. |
Columbus |
OH |
43215 |
|
AEP |
P.O. Box 2075 |
null |
Columbus |
OH |
43201 |
|
Bill’s Coffee |
null |
2079 N. Main St. |
Columbus |
OH |
43227 |
Add the following three PersonAddress objects to the list.
|
PersonName |
StreetAddress |
City |
State |
Zip |
|
Saul Goodman |
1200 N. Fourth St. |
Worthington |
OH |
43217 |
|
Mike Ehrmentraut |
207 Main St. |
Reynoldsburg |
OH |
43211 |
|
Gustavo Fring |
2091 Elm St. |
Pickerington |
OH |
43191 |
Example Output
Columbus State
Eibling 302B
550 East Spring St.
Columbus, OH 43215
====================
AEP
P.O. Box 2075
Columbus, OH 43201
====================
Bill's Coffee
2079 N. Main St.
Columbus, OH 43227
====================
Saul Goodman
1200 N. Fourth St.
Worthington, OH 43217
====================
Mike Ehrmentraut
207 Main St.
Reynoldsburg, OH 43211
====================
Gustavo Fring
2091 Elm St.
Pickerington, OH 43191
====================
My code
package home;
public class Main {
public static void main(String[] args) {
Address[] addressList = new Address[6];
// TODO Add 3 person addresses to list
addressList[3] = new PersonAddress("1200 N. Fourth St.","Worthington","OH","43217","Saul Goodman");
addressList[4] = new PersonAddress("207 Main St.","Reynoldsburg","OH","43217","Mike Ehrmentraut");
addressList[5] = new PersonAddress("2091 Elm St.","Pickerington","OH","43191","Gustavo Fring");
// TODO Add 3 business address to list
addressList[0] = new BusinessAddress("550 East Spring St.","Columbus","OH","43215","Columbus State","Eibling 302B");
addressList[1] = new BusinessAddress(null,"Columbus","OH","43201","AEP","P.O. Box 2075");
addressList[2] = new BusinessAddress("2079 N. Main St.","Columbus","OH","43227","Bill’s Coffee",null);
for (Address address : addressList) {
address.printLabel();
System.out.println("====================");
}
}
}
package home;
public class BusinessAddress extends Address {
// two private String fields businessName and address2
private String businessName;
private String address2;
//Constructor
public BusinessAddress(String streetAddress, String city, String state, String zip, String businessName, String address2) {
super(streetAddress, city, state, zip);
this.businessName = businessName;
this.address2 = address2;
}
//getters and setters
public String getBusinessName() {
return businessName;
}
public void setBusinessName(String businessName) {
this.businessName = businessName;
}
public String getAddress2() {
return address2;
}
public void setAddress2(String address2) {
this.address2 = address2;
}
@Override
public void printLabel() {
String result ="";
if(address2==null)
result = businessName+"\n"+super.toString();
else
result = businessName+"\n"+address2+"\n"+super.toString();
System.out.println(result);
}
}
}
package home;
public class PersonAddress extends Address {
private String personName;
//Constructor
public PersonAddress(String streetAddress, String city, String state, String zip, String personName) {
super(streetAddress, city, state, zip);
this.personName = personName;
}
//getter and setter
public String getPersonName() {
return personName;
}
public void setPersonName(String personName) {
this.personName = personName;
}
@Override
public void printLabel() {
System.out.println(personName+"\n"+super.toString());
}
}
package home;
public abstract class Address {
private String streetAddress;
private String city;
private String state;
private String zip;
public Address(String streetAddress, String city, String state, String zip) {
this.streetAddress = streetAddress;
this.city = city;
this.state = state;
this.zip = zip;
}
public String getStreetAddress() {
return streetAddress;
}
public void setStreetAddress(String streetAddress) {
this.streetAddress = streetAddress;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public String getZip() {
return zip;
}
public void setZip(String zip) {
this.zip = zip;
}
public String toString() {
return streetAddress + "\n" +
city + ", " + state + " " + zip + "\n";
}
public abstract void printLabel();
}In: Computer Science
Financial Statement Interpretation
Please take the company Apple Inc. and perform a Financial Analysis using the available data for the most recent fiscal year (i.e. 12/31/17) and compare that year to the previous fiscal year (i.e. 12/31/16).
Your analysis should include at least one analytical equation from each of the five sections of Financial Analysis which are listed below:
· Liquidity
· Asset Management
· Debt Management
· Profitability
· Market Value
In your analysis should include the following interpretations:
1. Has the firm improved its’ performance from the previous year?
2. Is the firm managed efficiency?
3. As a potential investor would you consider this a stock you would purchase?
In: Finance
| This cost data from Hickory Furniture is for the year 2017. | |||||
| Month | Invoices Processed | Overtime Wages | |||
| January | 12000 | $7,760 | |||
| February | 8000 | $6,800 | |||
| March | 1000 | $6,000 | |||
| April | 7000 | $6,100 | |||
| May | 5000 | $6,200 | |||
| June | 10000 | $7,300 | |||
| July | 11000 | $7,400 | |||
| August | 9000 | $6,900 | |||
| September | 5000 | $6,500 | |||
| October | 9000 | $6,600 | |||
| November | 8000 | $6,800 | |||
| December | 11000 | $7,450 | |||
| A. Using the high-low method, express the factory utility expenses as an equation where x represents number of chairs produced. | |||||
| B. Predict the utility costs if 900 chairs are produced. | |||||
| C. Predict the utility costs if 750 chairs are produced. | |||||
| D. Using Excel, create a scatter graph of the cost data and explain the relationship between number of chairs processed and utility expenses. |
In: Accounting
A family friend, Mr. Burn Out availed of the early retirement scheme offered by his employer. He said that he was already tired of the same routine of spending eight full hours in an office doing the same thing for the last twenty years.
Mr. Burn Out plans to get into the field of entrepreneurship. He would invest part of his retirement pay in a business that would deal with the sale of medical supplies to local clinics and hospitals.
When Mr. Burn Out learned that you are an accountant, he confessed that he is excited with his planned investment project, but very much afraid because he cannot afford to fail and lose his hard-earned retirement pay.
You advised that a Feasibility Study be prepared for his planned investment project. The study, you said, would determine the viability of his proposed business undertaking. it would cover key areas, such as marketing, production or purchasing, and finance, among others. You emphasized that the financial aspect is the most critical of them all.
Mr. Burn Out requested you to prepare a feasibility study for his proposed business. You immediately started and gathered the following relevant data.
1. Projected sales for the first year of operations are $288,000, spread evenly during the year. All sales will be on account with an average collection period of one month.
2. The cost ratio will be 60% of sales.
3. At the end of the first year, the acid-test ratio will be 1:1, while the current ratio will be 2:1.
4. Once the business is underway, purchases will replace the stock sold each month. The average payment period for accounts payable arising from the purchases of merchandise will be two (2) months.
5. Mr. Burn Out will open an account with the nearest bank and deposit $260,000 to start the business.
6. Various fixed assets will be acquired for cash at a total cost of $240,000. These fixed assets will be depreciated at the rate of 10% per year using the straight-line method.
7. Operating expenses, other than depreciation, are estimated at $70,000 per year. There will be no accruals and prepayment at year-end.
8. Mr. Burn Out will make drawings in excess of the amount necessary to meet the above plans.
Question: The projected balance of inventories at the end of the first year of operations is?
In: Accounting
Category Prior Year Current Year
Accounts payable ??? ???
Accounts receivable 320,715 397,400
Accruals 40,500 33,750
Additional paid in capital 500,000 541,650
Cash 17,500 47,500
Common Stock 94,000 105,000
COGS 328,500 428,048.00
Current portion long-term debt 33,750 35,000
Depreciation expense 54,000 54,731.00
Interest expense 40,500 41,017.00
Inventories 279,000 288,000
Long-term debt 339,670.00 401,877.00
Net fixed assets 946,535 999,000
Notes payable 148,500 162,000
Operating expenses (excl. depr.) 126,000 161,905.00
Retained earnings 306,000 342,000
Sales 639,000 850,323.00
Taxes 24,750 48,686.00
What is the firm's current year gross profit margin?
In: Finance
A stock is expected to pay a dividend of $0.71 at the end of the year. The dividend is expected to grow at a constant rate of 7.9%. The required rate of return is 12.3%. What is the stock's current price?
Note: Enter your answer rounded off to two decimal points. Do not enter $ or comma in the answer box. For example, if your answer is $12.345 then enter as 12.35 in the answer box.
In: Finance
A stock is expected to pay a dividend of $1.06 at the end of the year. The dividend is expected to grow at a constant rate of 7.7%. The required rate of return is 10.3%. What is the stock's current price?
Note: Enter your answer rounded off to two decimal points. Do not enter $ or comma in the answer box. For example, if your answer is $12.345 then enter as 12.35 in the answer box.
In: Finance
E12-16 Allocating profits and losses to the partners
Polacco and Walsh have formed a partnership. During their first year of operations, the partnership earned $140,000. Their profit-and-loss-sharing agreement states that, first, each partner will receive 10% of their capital balances. The second level is based on services, with $25,000 to Polacco and $15,000 to Walsh. The remainder then will be shared 4:1 between Polacco and Walsh, respectively.
Requirements
1. Calculate the amount of income each partner will receive under their profit-and- loss-sharing agreement assuming Polacco's capital balance is $78,000 and Walsh's capital balance is $78,000.
2. Journalize the entry to close the Income Summary account for the year.
In: Accounting
Evergreen company financial year-end is December 31.
Beginning balance:
Debit balance of 131: 33.000 (Customer Brox)
Credit balance of 2293: 1.000
During the year of Y, the following transactions related to receivables and cash occurred: (Unit: 1000 VND)
1.Sold merchandise to Lennox Company for 11.000 (including 10% VAT) on credit.
2.Sold merchandise to Maddox Company for 88.000 (including 10% VAT) for cash in bank
3.Received 50% of the invoice on 28 Feb from Lennox via bank transfer 4.Withdrawn 1.000 from bank checking account for cash on hand.
5.Used cash on hand to pay for electricity expenses : 2.200 (including 10% VAT) 6.Buy goods of 10.000(excluding 10% VAT) on account.
7.Fully paid for goods of transaction 6 by bank checking account
8.Advanced to an employee for purchases of material: 2.000
9.Offerred to Maddox 10% discount on selling amount in transaction 2 due to fault in the color of merchandise.
10.At the year end, estimated that 1% of trade receivables might not be collected.
Required: a/Prepare the journal entries for these transaction. b/Present the information related to receivables in the statement of financial postion.
In: Accounting
Copy equipment was acquired at the beginning of the year at a cost of $56,000 that has an estimated residual value of $8,000 and an estimated useful life of 5 years. It is estimated that the machine has an estimated 1,000,000 copies. This year 240,000 copies were made. Determine the (a) depreciable cost, (b) depreciation rate, and (c) the units-of-production depreciation for the year.
In: Accounting