(JAVA)
1.) Create a class called Rabbit that with 2 attributes: 1) speed and 2) color. Then, create a constructor that has no parameters, setting the default speed to 0 and the color to “white”; this is called a default constructor. Next, create a second constructor that takes in two parameters. The second constructor should assign those parameters to the attributes. Then, in main, create two Rabbit objects. For the first Rabbit object, call the first constructor. For the second Rabbit object, call the second constructor (passing it a speed of 5 and a color of “purple”). Using the dot ‘.’ Operator, print out the first rabbit's speed and the second rabbit's color. This is a test to see if you can design constructors inside your class and initialize attributes.
Sample output
0
purple
(JAVA)
2.) Create a class called Sloth that has a weight attribute (in kg). Create a constructor for the class that takes in (as a parameter) the initial weight of the Sloth. Then, write a function called eat( ) that takes in the number of leaves the Sloth should eat. Each leaf weighs one gram, so you must increase the weight of the Sloth by one gram. According to a site dedicated to saving Sloths, they can eat between 200-500 grams of leaves per day. To finish the class out, include a showWeight() method that prints out how much the sloth weighs. In main, create a sloth object starting at 100 kilos and show the sloth's weight. Then, make the sloth eat 400, 300, and 650 leaves, showing the weight of the sloth after each time it eats. NOTE: if you’re output does not match exactly (because of the rounding of floating point math), that’s OK. For example, Java will include some extra “precision”.
Sample output
This sloth weighs 100.4 kilos
This sloth weighs 100.7 kilos
This sloth weighs 101.35 kilos
In: Computer Science
For the following exercises, given v, draw v, 3v and 1/2 v.
⟨2, −1⟩
In: Math
1. How are Type 1 and Type 2 errors related to significance level ?
2. what is z-critical value ? how is the z-critical value used in hypothesis testing?
3. provide an example of how to report the results of a z-test in correct APA style.
In: Statistics and Probability
In: Statistics and Probability
In the energy level diagram shown below, the energy difference between States 3 and 4 is half the energy difference between states 2 and 3. An electron undergoes a transition (a quantum \"leap\") from State 4 to State 3 resulting in the emission of a photon having a wavelength of 660 nm. (Note: 1 nm = 10-9 m.)
What is the frequency the emitted photon resulting from an electron making a transition from State 4 to State 3.
f4 to 3 =
What is the frequency the emitted photon resulting from an electron making a transition from State 3 to State 2.
f3 to 2 =
What is the wavelength of the photon that is emitted when an electron makes a transition from State 3 to State 2?
λ3 to 2 =
What are the frequency and wavelength of a photon that is emitted when an electron makes a transition from State 4 to State 2?
f4 to 2 =
λ4 to 2 =
The energy difference between States 1 and 2 is five times the energy difference between States 3 and 4. What are the frequency and wavelength of a photon that is emitted when an electron makes a transition from State 4 to State 1?
f4 to 1 =
λ4 to 1 =
In: Physics
1.Given the following for the Vitale Company; the company began
operations on 1/1/1.
Preferred Stock, 4%, cumulative Common Stock $20,000 Cash Dividends
paid
Year 1 $1100
Year 2 $700
Year 3 $1500
Year 1 Dividends received by the Preferred shareholders is: common
stock is:
Year 2 Dividends received by the Preferred shareholders is: common
stock is:
Year 3 Dividends received by the Preferred shareholders is: common
stock is:
2. Specialty Packaging Corporation began business on March 1, 2013 by issuing 20,000 shares of common stock. The stock has a $1 par value but sold for $8 per share. At December 31, 2013, the common stock had a market value of $6. On its December 31, 2013 balance sheet, Specialty Packaging would report
3.
treasury stock is closed or no closed?
In: Accounting
If possible, find
A + B, A − B, 2A, and 2A − 5B.
(If not possible, enter IMPOSSIBLE.)
A =
|
|
3 | −1 | 1 |
|
||
| 2 | 4 | 3 |
, B =
|
|
−1 | 1 | −5 |
|
||
| −4 | 3 | −2 |
(a) A + B
(b) A − B
(c) 2A
(d) 2A − 5B
In: Math
1. If d1=.15, What is N(d1)? (round to 4 decimal places)
2. S0=105; X=100; r=.02; T=60 days; standard deviation of daily returns = .012; Assume 365 calendar days in a year and 255 trading days in a year. Assume N(d1) =0.76 and N(d2) = 0.74 (irrespective of your calculations for d1 and d2), what is the price of a call option according to Black-Scholes? (round to 2 decimal places)
In: Finance
ABOUT CHINA
IT'S
1)degree of openness
2)main X
3)main M
4)GDP
5)GNP
6)HDI (total and by each dimension)
7)GNH
8)Gini Index
9)Green GDP
10) stocks of capitals (natural, intellectual, others if possible)
all info should be
* over 20years
* graph the indicators in the last 20 years approx.
11) Assess the economic performance of this country and its sustainability.
12) further information to complement the profile of the country
12 questions to answer about China
In: Economics
Problem 14-18 Common-Size Statements and Financial Ratios for a Loan Application [LO14-1, LO14-2, LO14-3, LO14-4]
Paul Sabin organized Sabin Electronics 10 years ago to produce and sell several electronic devices on which he had secured patents. Although the company has been fairly profitable, it is now experiencing a severe cash shortage. For this reason, it is requesting a $520,000 long-term loan from Gulfport State Bank, $110,000 of which will be used to bolster the Cash account and $410,000 of which will be used to modernize equipment. The company’s financial statements for the two most recent years follow:
| Sabin Electronics | ||||
| Comparative Balance Sheet | ||||
| This Year | Last Year | |||
| Assets | ||||
| Current assets: | ||||
| Cash | $ | 78,000 | $ | 170,000 |
| Marketable securities | 0 | 20,000 | ||
| Accounts receivable, net | 503,000 | 320,000 | ||
| Inventory | 965,000 | 615,000 | ||
| Prepaid expenses | 22,000 | 24,000 | ||
| Total current assets | 1,568,000 | 1,149,000 | ||
| Plant and equipment, net | 1,503,800 | 1,350,000 | ||
| Total assets | $ | 3,071,800 | $ | 2,499,000 |
| Liabilities and Stockholders Equity | ||||
| Liabilities: | ||||
| Current liabilities | $ | 810,000 | $ | 450,000 |
| Bonds payable, 12% | 700,000 | 700,000 | ||
| Total liabilities | 1,510,000 | 1,150,000 | ||
| Stockholders' equity: | ||||
| Common stock, $15 par | 710,000 | 710,000 | ||
| Retained earnings | 851,800 | 639,000 | ||
| Total stockholders’ equity | 1,561,800 | 1,349,000 | ||
| Total liabilities and stockholders' equity | $ | 3,071,800 | $ | 2,499,000 |
| Sabin Electronics | ||||
| Comparative Income Statement and Reconciliation | ||||
| This Year | Last Year | |||
| Sales | $ | 5,100,000 | $ | 4,410,000 |
| Cost of goods sold | 3,895,000 | 3,470,000 | ||
| Gross margin | 1,205,000 | 940,000 | ||
| Selling and administrative expenses | 657,000 | 552,000 | ||
| Net operating income | 548,000 | 388,000 | ||
| Interest expense | 84,000 | 84,000 | ||
| Net income before taxes | 464,000 | 304,000 | ||
| Income taxes (30%) | 139,200 | 91,200 | ||
| Net income | 324,800 | 212,800 | ||
| Common dividends | 112,000 | 91,000 | ||
| Net income retained | 212,800 | 121,800 | ||
| Beginning retained earnings | 639,000 | 517,200 | ||
| Ending retained earnings | $ | 851,800 | $ | 639,000 |
During the past year, the company introduced several new product lines and raised the selling prices on a number of old product lines in order to improve its profit margin. The company also hired a new sales manager, who has expanded sales into several new territories. Sales terms are 2/10, n/30. All sales are on account.
Required:
1. To assist in approaching the bank about the loan, Paul has asked you to compute the following ratios for both this year and last year:
a. The amount of working capital.
b. The current ratio.
c. The acid-test ratio.
d. The average collection period. (The accounts receivable at the beginning of last year totaled $270,000.)
e. The average sale period. (The inventory at the beginning of last year totaled $520,000.)
f. The operating cycle.
g. The total asset turnover. (The total assets at the beginning of last year were $2,480,000.)
h. The debt-to-equity ratio.
i. The times interest earned ratio.
j. The equity multiplier. (The total stockholders’ equity at the beginning of last year totaled $1,339,000.)
2. For both this year and last year:
a. Present the balance sheet in common-size format.
b. Present the income statement in common-size format down through net income.
In: Accounting