1. Write a Java program from scratch that meets the following requirements:
a. The program is in a file called Duplicates.java that defines a class called Duplicates (upper/lower case matters)
b. The program includes a Java method called noDuplicates that takes an array of integers and returns true if all the integers in that array are distinct (i.e., no duplicates). Otherwise it returns false. Make sure the method is public static.
example tests: noDuplicates({}) returns true
noDuplicates({-1, 1}) returns true noDuplicates({4,22,100,99,1,5,7}) returns true
noDuplicates({4,22,100,99,22,5,7}) returns false
c. The program’s main method calls noDuplicates on the above test cases and prints each return value.
2. Write a Java program from scratch that meets the following requirements:
a. The program is in a file called Matching.java that defines a class called Matching.
b. The program includes a Java method called find that takes two Strings and returns an integer. If the second string does not appear in the first string, find returns -1. If the second string appears in the first string, find returns the index of the character where the second string begins in the first string. Make sure the method is public static.
example tests:
find("","") returns 0
find("", "a") returns -1
find("Hello World", "World") returns 6
find("World", "Hello World") returns -1
In: Computer Science
Consider a list called A:
A = [-6, 10, 100, 5, -20, 1000, 9, -15]
Make a for loop that iterates over A and:
In: Computer Science
Pennewell Publishing Inc. (PP) is a zero growth company. It currently has zero debt and its earnings before interest and taxes (EBIT) are $80,000. PP's current cost of equity is 10%, and its tax rate is 40%. The firm has 10,000 shares of common stock outstanding selling at a price per share of $48.00.
Refer to Exhibit 16.1. Assume that PP is considering changing from its original capital structure to a new capital structure with 35% debt and 65% equity. This results in a weighted average cost of capital equal to 9.4% and a new value of operations of $510,638. Assume PP raises $178,723 in new debt and purchases T-bills to hold until it makes the stock repurchase. What is the stock price per share immediately after issuing the debt but prior to the repurchase?
a. |
$45.90 |
|
b. |
$53.33 |
|
c. |
$48.12 |
|
d. |
$58.75 |
|
e. |
$51.06 |
Pennewell Publishing Inc. (PP) is a zero growth company. It currently has zero debt and its earnings before interest and taxes (EBIT) are $80,000. PP's current cost of equity is 10%, and its tax rate is 40%. The firm has 10,000 shares of common stock outstanding selling at a price per share of $48.00.
Refer to Exhibit 16.1. PP is considering changing its capital structure to one with 30% debt and 70% equity, based on market values. The debt would have an interest rate of 8%. The new funds would be used to repurchase stock. It is estimated that the increase in risk resulting from the added leverage would cause the required rate of return on equity to rise to 12%. If this plan were carried out, what would be PP's new value of operations?
a. |
$484,359 |
|
b. |
$487,805 |
|
c. |
$521,173 |
|
d. |
$560,748 |
|
e. |
$584,653 |
In: Finance
In: Psychology
b. A graduated cylinder contains 45.0mL of water. When a metal rod is submerged into the water, the liquid level rises to 50.0mL. What is the volume of the metal rod in cm3? If the metal rod weighed 55.0g, what is the density of the metal rod in g/mL and g/cm3?
c. What is the mass of a substance that has a density of 8.0g/cm3 and a volume of 125cm3?
d. Determine the volume of a substance that has a mass of 750.0g and a density of 2.5g/mL.
e. A student finds that a piece of metal has a mass of 12.54g. When the metal is placed inside a flask that has a volume of 25.00mL, the student finds that 20.54g of water is required to finish filling the flask with the metal in it. If the density of water is 0.9970g/cm3, what is the density of the metal?
In: Chemistry
What did you like best as a preschool teacher, and least, about your last job as a patient observer? What are your strengths and weaknesses?
In: Psychology
In: Computer Science
In psychology use the term Social Identity Theory to answer these questions and put into a paragraph response! a) describe the media example in enough detail so that I can understand it; b) to define the psychological principles or ideas that are related to the example; and c) to explicitly tie the example to the psychological principle. You may need to write more than the examples below in order to get these points across. In my experience, parts b) and c) give students the most problems. One thing to note about these examples is that in them I: 1) refer to the chapter in which the relevant principles are discussed; and 2) if necessary, provide quotations to help me define terms. If quotations are used, cite the section in which the words appear in the book.
In: Psychology
Stewart invented “Max” a board game similar to “Tic Tac Toe.” In May 2017, Stewart began negotiating with Big Board, Inc., to license “Max” for distribution outside the United States. On June 11, 2017, the parties met and orally discussed terms. As compensation, Big Board promised to pay Stewart the amount due from another board game he had developed for Big Board two years ago. On June 26, 2017, Lisa, a Big Board employee, sent Stewart an email titled “Max Deal” that repeated all terms previously discussed and added that they “have been agreed to by Big Board subject to a written contract” and was signed with an electronic signature “Best Regards Lisa”.On July 01, 2017, Stewart emailed Big Board a more formal draft of the terms prepared by his lawyer, which Stewart signed, stating the contract needed to be signed and returned within 10 days but Big Board did not sign or return the contract. Big Board subsequently displayed Max at its pre-Toy Fair in August 2017. After the fair, Big Board sent Stewart an unsigned email saying that it no longer wished to license his game.
Analyze the facts, discuss the applicable law, and reach a logical conclusion as to whether or not there is a legal contract/agreement. Make reasonable assumptions when necessary to complete your analysis. Answer must be no less than 250 words.
BUSINESS LAW
In: Operations Management
[The following information applies to the questions displayed
below.]
Forten Company, a merchandiser, recently completed its
calendar-year 2017 operations. For the year, (1) all sales are
credit sales, (2) all credits to Accounts Receivable reflect cash
receipts from customers, (3) all purchases of inventory are on
credit, (4) all debits to Accounts Payable reflect cash payments
for inventory, and (5) Other Expenses are paid in advance and are
initially debited to Prepaid Expenses. The company’s income
statement and balance sheets follow.
FORTEN COMPANY Comparative Balance Sheets December 31, 2017 and 2016 |
|||||||
2017 | 2016 | ||||||
Assets | |||||||
Cash | $ | 79,900 | $ | 93,500 | |||
Accounts receivable | 95,970 | 70,625 | |||||
Inventory | 305,656 | 271,800 | |||||
Prepaid expenses | 1,410 | 2,295 | |||||
Total current assets | 482,936 | 438,220 | |||||
Equipment | 137,500 | 128,000 | |||||
Accum. depreciation—Equipment | (46,625 | ) | (56,000 | ) | |||
Total assets | $ | 573,811 | $ | 510,220 | |||
Liabilities and Equity | |||||||
Accounts payable | $ | 73,141 | $ | 144,675 | |||
Short-term notes payable | 16,000 | 10,000 | |||||
Total current liabilities | 89,141 | 154,675 | |||||
Long-term notes payable | 55,000 | 68,750 | |||||
Total liabilities | 144,141 | 223,425 | |||||
Equity | |||||||
Common stock, $5 par value | 202,750 | 170,250 | |||||
Paid-in capital in excess of par, common stock | 57,500 | 0 | |||||
Retained earnings | 169,420 | 116,545 | |||||
Total liabilities and equity | $ | 573,811 | $ | 510,220 | |||
FORTEN COMPANY Income Statement For Year Ended December 31, 2017 |
||||||
Sales | $ | 682,500 | ||||
Cost of goods sold | 305,000 | |||||
Gross profit | 377,500 | |||||
Operating expenses | ||||||
Depreciation expense | $ | 40,750 | ||||
Other expenses | 152,400 | 193,150 | ||||
Other gains (losses) | ||||||
Loss on sale of equipment | (25,125 | ) | ||||
Income before taxes | 159,225 | |||||
Income taxes expense | 52,250 | |||||
Net income | $ | 106,975 | ||||
Additional Information on Year 2017 Transactions
Required:
1. Prepare a complete statement of cash flows;
report its operating activities using the indirect method.
(Amounts to be deducted should be indicated with a minus
sign.)
In: Accounting
1. To understand the value of records in a programming language, write a small program in a C-based language that uses an array of structs that store student information, including name, age, GPA as a float, and grade level as a string (e.g., “freshmen, junior, senior” etc.). Also, write the same program in the same language without using structs.
Note: Code and with output screenshots
In: Computer Science
compile a list of three (3) popular Linux/BSD distributions. Try to select distributions that your peers have not already posted.
Describe each of the three Linux/BSD distributions and provide a screenshot of each of the distributions.
In: Computer Science
In: Civil Engineering
What are the advantages of a spot stocking facility, and a full-line stocking facility
In: Operations Management
Entries for Stock Dividends
Healthy Life Co. is an HMO for businesses in the Fresno area. The following account balances appear on Healthy Life’s balance sheet: Common stock (440,000 shares authorized ; 4,000 shares issued), $100 par, $400,000; Paid-In Capital in excess of par— common stock, $80,000; and Retained earnings, $3,600,000. The board of directors declared a 2% stock dividend when the market price of the stock was $139 a share. Healthy Life reported no income or loss for the current year.
If an amount box does not require an entry, leave it blank. If no entry is required, select "No entry required" from the dropdown.
a1. Journalize the entry to record the declaration of the dividend, capitalizing an amount equal to market value.
a2. Journalize the entry to record the issuance of the stock certificates.
b. Determine the following amounts before the stock dividend was declared: (1) total paid-in capital, (2) total retained earnings, and (3) total stockholders' equity.
Total paid-in capital | $ |
Total retained earnings | $ |
Total stockholders' equity | $ |
c. Determine the following amounts after the stock dividend was declared and closing entries were recorded at the end of the year: (1) total paid-in capital, (2) total retained earnings, and (3) total stockholders' equity.
Total paid-in capital | $ |
Total retained earnings | $ |
Total stockholders' equity |
In: Accounting