Questions
Learning Objectives: ● review implementing the interface Comparable<T> ● programming against interfaces not objects. ● review...

Learning Objectives:

● review implementing the interface Comparable<T>

● programming against interfaces not objects.

● review reading in data from a file

● use the internet to learn about the interface Comparator<T>

● use a Comparator to provide an alternative way to order elements in a

collection

Description:

Turn in:

Turn in the assignment via Canvas

Create a package called booksthat includes 3 files: Book.java, BookApp.java, and books.csv (provided).

Class Book represents Pulitzer prize winning books that have a title, an author and a year, when they won the award. Implement the class Book exactly as specified in the UML diagram below.
You are allowed to create private methods to structure your code, but fields, constructors, and public methods must not be changed nor added or removed.

Notice that class Book implements the interface Comparable<T>. The method specified in the interface is not listed in the UML class diagram of class Book. However, the fact that Book implements Comparable<T> implies that the interface method needs to be implemented.
The interface Comparable<T> implements the natural order. In case of class Book it should sort by title.

Also notice that class Book is immutable. It has getters but no setters.

Method toString:

The toString method should return a string of the following form: name by author ( year )
Make sure to include the @Override annotation

Method getList:

Note that the method getList is underlined. Underlining a method in a UML class diagrams indicates that the method is static.
The method getList should readin the data from the csv file book.csv. If a line doesn’t follow the pattern title,author,yearthen a message should be written to the standard error stream (see sample output) The program should continue reading in the next line. NO exception should be thrown .

Please note that the sample output is only provided to help clarify the instructions. The program still needs to fulfill all the requirement when I test it with another csv file (e.g. where all lines are correct or other lines have an issue)

Write a test client called BookApp.java

● It should read in the data from the file book.csv. Two lines have an issue. Treat them as described above.

● Print the number of books that were read in.

Make sure to determine the number of books at run time. I will test your code with a different csv file.

● Sort the list in natural order and print the list

Sort the books in the list in reverse order using a Comparator<T>that is provided in class Collections

● List the book in the newly reversed order

Sample Output:

Problem reading in "No Pulitzer prize for fiction was awarded in 2012" Problem reading in "The Brief, Wondrous Life of Oscar Wao,Junot Diaz,2008" Number of books read in: 14

Sorted book list:
A Visit from the Goon Squad by Jennifer Egan (2011)
Empire Falls by Richard Russo (2002)
Gilead by Marilynne Robinson (2005)
Interpreter of Maladies by Jhumpa Lahiri (2000)
March by Geraldine Brooks (2006)
Middlesex by Jeffrey Eugenides (2003)
Olive Kitteridge by Elizabeth Strout (2009)
The Amazing Adventures of Kavalier & Clay by Michael Chabon (2001) The Goldfinch by Donna Tartt (2014)
The Hours by Michael Cunningham (1999)
The Known World by Edward P. Jones (2004)
The Orphan Master's Son by Adam Johnson (2013)
The Road by Cormac McCarthy (2007)
Tinkers by Paul Harding (2010)

Reverse order:
Tinkers by Paul Harding (2010)
The Road by Cormac McCarthy (2007)
The Orphan Master's Son by Adam Johnson (2013)
The Known World by Edward P. Jones (2004)
The Hours by Michael Cunningham (1999)
The Goldfinch by Donna Tartt (2014)
The Amazing Adventures of Kavalier & Clay by Michael Chabon (2001) Olive Kitteridge by Elizabeth Strout (2009)
Middlesex by Jeffrey Eugenides (2003)
March by Geraldine Brooks (2006)
Interpreter of Maladies by Jhumpa Lahiri (2000)
Gilead by Marilynne Robinson (2005)
Empire Falls by Richard Russo (2002)
A Visit from the Goon Squad by Jennifer Egan (2011)

In: Computer Science

You have been given the unadjusted trial balance for the Bogie & Bacall Company (“B&B”) as...

You have been given the unadjusted trial balance for the Bogie & Bacall Company (“B&B”) as of 12/31/2016. B&B prepares financial statements annually. Your required tasks are as follows:

1. On the designated worksheet, prepare in journal entry form the adjusting journal entries for the following items. Letter entries to correspond to the below information and present them in alphabetical order. (Round all numbers to the nearest dollar)

a. On April 1, 2016 B&B paid Lorre Advertising $48,000 for two years of advertising services. Equal services are provided in year 1 and year

2. b. B&B needed some additional storage space so on July 1, 2016 they rented a unit for an annual rate of $10,200. The entire amount was expensed when paid.

c. $4,250 of store supplies were purchased during the year and the asset Store Supplies was increased. $3,000 of these supplies were used during the year.

d. $6,500 of office supplies were purchased during the year and were immediately expensed. A count of the office supplies on hand December 31, 2016, indicates a balance of $1,250.

e. On August 1, 2016, B&B issued a 9-month note receivable to Greenstreet & Co. at an annual interest rate of 6%. Principal and interest will be paid at the end of the 9-months. The note was recorded in Notes Receivable and is the only note outstanding.

f. Sales salaries of $4,800 and office salaries of $5,500 had been earned and remained unpaid at 12/31/16.

g. On December 1, 2016, B&B rented a portion of one store to Paul Henreid Co. The contract was for 6 months and B&B required the 6 months of cash upfront on December 1st. The rent is being earned equally over the next 6 months. When cash was received, unearned rent was appropriately recorded.

h. On May 1, 2016, B&B collected $19,200 for consulting services to be performed from May 1, 2016 to April 30, 2017. The company credited the revenue account when the cash was received.

i. At 12/31/2016, based on the aging method, B&B determines that uncollectible accounts are $5,250.

In: Accounting

[The following information applies to the questions displayed below.] Selected comparative financial statements of Korbin Company...

[The following information applies to the questions displayed below.]

Selected comparative financial statements of Korbin Company follow:

KORBIN COMPANY
Comparative Income Statements
For Years Ended December 31, 2018, 2017, and 2016
2018 2017 2016
Sales $ 444,857 $ 340,797 $ 236,500
Cost of goods sold 267,804 215,043 151,360
Gross profit 177,053 125,754 85,140
Selling expenses 63,170 47,030 31,218
Administrative expenses 40,037 29,990 19,630
Total expenses 103,207 77,020 50,848
Income before taxes 73,846 48,734 34,292
Income tax expense 13,735 9,990 6,961
Net income $ 60,111 $ 38,744 $ 27,331
KORBIN COMPANY
Comparative Balance Sheets
December 31, 2018, 2017, and 2016
2018 2017 2016
Assets
Current assets $ 46,886 $ 36,682 $ 49,036
Long-term investments 0 900 3,460
Plant assets, net 89,807 95,152 57,474
Total assets $ 136,693 $ 132,734 $ 109,970
Liabilities and Equity
Current liabilities $ 19,957 $ 19,777 $ 19,245
Common stock 64,000 64,000 46,000
Other paid-in capital 8,000 8,000 5,111
Retained earnings 44,736 40,957 39,614
Total liabilities and equity $ 136,693 $ 132,734 $ 109,970

Required:

1. Complete the below table to calculate each year's current ratio.

Current Ratio
Choose Numerator: / Choose Denominator: = Current ratio
/ = Current ratio
2018: / = 0 to 1
2017: / = 0 to 1
2016: / = 0 to 1

2. Complete the below table to calculate income statement data in common-size percents. (Round your percentage answers to 2 decimal places.)

KORBIN COMPANY
Common-Size Comparative Income Statements
For Years Ended December 31, 2018, 2017, and 2016
2018 2017 2016
Sales    % % %
Cost of goods sold -1 -1 -1
Gross profit
Selling expenses -1 -1 -1
Administrative expenses -1 -1 -1
Total expenses
Income before taxes -1 -1 -1
Income tax expense -1 -1 -1
Net income % % %

3. Complete the below table to calculate the balance sheet data in trend percents with 2016 as the base year. (Round your percentage answers to 2 decimal places.)

KORBIN COMPANY
Balance Sheet Data in Trend Percents
December 31, 2018, 2017 and 2016
2018 2017 2016
Assets
Current assets % % 100.00 %
Long-term investments 100.00
Plant assets, net 100.00
Total assets % % 100.00 %
Liabilities and Equity
Current liabilities % % 100.00 %
Common stock 100.00
Other paid-in capital 100.00
Retained earnings 100.00
Total liabilities and equity % % 100.00 %

In: Accounting

AX Development Ltd purchased machinery on 1 April 2016 for $1 200 000; it had an...

AX Development Ltd purchased machinery on 1 April 2016 for $1 200 000; it had an estimated useful life of 12 years. AX Development uses the cost model and the straight-line method for depreciation. On 31 March 2018, the fair value less costs to sell for the machinery is $890 000, and the value-in-use is estimated to be $900 000. On 31 March 2019, the fair value less costs to sell for the machinery is $820 000, and the value-in-use is estimated to be $800 000.

(i) At 31 March 2018, prepare the journal entry to recognise the impairment loss. Show all workings.

(ii) Prepare the PPE section, in the Statement of Financial Position as at 31 March 2018, after recognising the impairment loss. What should your carrying amount be equal to?

(iii) What is the new annual depreciation rate for the machinery for the year ending 31 March 2019?

(iv) At 31 March 2019, prepare the journal entry to recognise the reversal of the impairment loss.

(v) Prepare the PPE section, in the Statement of Financial Position as at 31 March 2019, after the reversal of the impairment loss. What should your carrying amount be equal to?

(vi) What is the new annual depreciation rate for the machinery for the year ending 31 March 2020?

In: Accounting

.Leadership Models for Health Care Managers Transformational Leadership This week, , you will write an essay...

.Leadership Models for Health Care Managers

Transformational Leadership

This week, , you will write an essay in which you discuss transformational leadership.

• Watch James MacGregor Burns on Leadership. https://www.youtube.com/watch?v=bugXWk820B8

• Referencing the video and your textbook readings for this week, write an essay in which you:

*Comment on how watching and listening to a primary, conceptual developer of the transformational leadership theory has enhanced your understanding of this approach in its underpinnings as well as the breadth and scope of its application.

*In particular, discuss the aspects of intended change and lasting change.

*How might you, as a leader, use aspects of this theory in your leadership practice?

*Support your ideas with detailed examples or evidence from the video, your textbook, or a peer-reviewed journal .

Your essay should be 3 pages in length and follow APA formatting and citation.

Support your opinions with detailed examples or information from your textbook or a peer-reviewed journal

Your essay should be 2-3 pages in length and follow APA formatting and citation.

Your textbook may be used as a reference.

The APA format for your text is as follows: Northouse, P. G. (2016). Leadership: Theory and practice (7th ed.). Thousand Oaks, CA: Sage.

In: Nursing

2) In anova the f-ration is of?

 

2) In anova the f-ration is of?

a) sample mean (M)

b) sample means (M) divided by variances (SS)

c) Two variances (SS) each divided by a corresponding degree of freedom (df)

d) Sample variances (SS) divided by sample means (M)

3) For an independent measures research study, Cohen's d helps to describe?

a) The risk type I error

b) The risk for type II error

c) The size of the effect between two samples means without taking into account sample size

d) whether the difference between sample means is due to Type I error rate

5) Under what circumstances are post hoc tests necessary?

a) when you reject the null hypothesis with exactly 2 treatment conditions

b) when you reject the null hypothesis with 3+ treatment conditions

c) when you fail to reject the null hypothesis with exactly 2 treatment conditions

d) when you fail to reject the null hypothesis with 3+ treatment conditions

15) A researcher report that there is a significant between two treatments at the .05 level of significance. This means that

a) if the researcher repeated the experiment there is a 95% probability that the same decision would be reached

b) the difference obtained in the experiment is at least 5% larger than the standard error

c) there is a 5% probability (or less) that the difference occurred simply by chance without any treatment and you committed a type I error

d) The average score for one treatment is at least 5% higher than the average score for the other treatment

21) For which of the following situations would a repeated-measures study be appropriate?

a) Compare attitude score for males v. females

b) Compare personality scores for indivituals diagnosed with eating disorder

c) Compare salary levels for indivituals with and without college degrees

d) compare reaction times before and after taking a pain medication

23) The purpose of a post hoc test is

a) To determine whether of not a Type I error was committed

b) To determine how much difference exists between variances

c) To determine which treatment means are significantly different in a design with 3+ treatments

d) To determine whether a Type II error was committed

In: Statistics and Probability

The Bureau of Labor Statistics (BLS) adjusts the numbers from the household survey to estimate the...

The Bureau of Labor Statistics (BLS) adjusts the numbers from the household survey to estimate the employment picture for the entire population. Once the adjustment is made, the BLS uses the figures to generate key employment indicators.

The following table presents information from the household surveys conducted for November 2017 and, for purposes of comparison, November 2016. The numbers in the table are listed in thousands. For example, the number of unemployed in the table for November 2017 indicates that about 6.6 million people were unemployed at that time.

Use the information lists that follow the table to help you fill in the missing values in the table.

November

2016

2017

Civilian noninstitutional population 254,540 255,949
Civilian labor force 159,457 161,327
Participation rate 62.6%
Employed 152,048 153,918
Employment–population ratio 59.7%
Unemployed 7,409 6,610
Official unemployment rate 4.6%
Unemployed 15 weeks or more 2,929 2,514
U-1 labor underutilization 1.8%
Discouraged workers 5,837 5,238
U-4 labor underutilization 8.0%

The following list shows you how to compute the statistics most commonly used to indicate the health of an economy:

The participation rate is the percentage of the working-age population in the labor force—either employed or searching for employment. In November 2016, the participation rate was 159,457254,540×100=62.6%159,457254,540×100=62.6%.
The employment–population ratio is the percentage of the working-age population that is employed. In November 2016, the employment-population ratio was 152,048254,540×100=59.7%152,048254,540×100=59.7%.
The official unemployment rate is the percentage of the labor force that does not have a job but is actively searching for employment. In November 2016, the official unemployment rate was 7,409159,457×100=4.6%7,409159,457×100=4.6%.

To get a more accurate picture of underemployment in the economy, the BLS calculates several alternative measures of labor underutilization:

The U-1 measure of labor underutilization measures the percentage of the labor force that has been unemployed for 15 weeks or more at the time of the household survey. In November 2016, U-1 was 2,929159,457×100=1.8%2,929159,457×100=1.8%.
Another measure, the U-4 measure of labor underutilization, treats discouraged workers as though they were unemployed and part of the labor force. To calculate U-4, the BLS divides the sum of unemployed and discouraged workers by the sum of the labor force and discouraged workers. In November 2016, U-4 was 7,409+5,837159,457+5,837×100=8.0%7,409+5,837159,457+5,837×100=8.0%.

Based on the numbers in the previous table, indicate whether each of the following statements accurately describes the differences in the employment situation between November 2016 and November 2017.

Statement

True

False

The U-1 and U-4 measures of labor underutilization were lower in November 2017 than they were in November 2016.
In November 2017, a larger fraction of the civilian noninstitutional population was employed than in November 2016.
The typical unemployed worker in November 2017 was more likely to have been unemployed for 15 weeks or more than the typical unemployed worker in November 2016.
A smaller number of jobless people who wanted a job and were available to work had given up on their job search in November 2017 compared to November 2016.
A smaller fraction of the civilian noninstitutional population was in the labor force in November 2017 than in November 2016.

The official unemployment rate and the U-4 measure of labor underutilization are two different measures of joblessness in the economy.

Excluding discouraged workers from the official unemployment rate may cause the official rate to   the true extent of unemployment

In: Economics

The beginning inventory at Funky Party Supplies and data on purchases and sales for a three-month...

The beginning inventory at Funky Party Supplies and data on purchases and sales for a three-month period ending March 31, 2016, are as follows:

Date

Transaction

Number of Units

Per Unit

Total

Jan. 1 Inventory 2,500 $60.00 $150,000
10 Purchase 7,500 68.00 510,000
28 Sale 3,750 120.00 450,000
30 Sale 1,250 120.00 150,000
Feb. 5 Sale 500 120.00 60,000
10 Purchase 18,000 70.00 1,260,000
16 Sale 9,000 125.00 1,125,000
28 Sale 8,500 125.00 1,062,500
Mar. 5 Purchase 15,000 71.60 1,074,000
14 Sale 10,000 125.00 1,250,000
25 Purchase 2,500 72.00 180,000
30 Sale 8,750 125.00 1,093,750
Instructions
1. Determine the inventory on March 31, 2016, and the cost of goods sold for the three-month period, using the first-in, first-out method

The method of inventory costing based on the assumption that the costs of merchandise sold should be charged against revenue in the order in which the costs were incurred.

and the periodic inventory system.
2. Determine the inventory on March 31, 2016, and the cost of goods sold for the three-month period, using the last-in, first-out method

The method of inventory costing based on the assumption that the cost of merchandise sold is the cost of the most recent purchases.

and the periodic inventory system.
3. Determine the inventory on March 31, 2016, and the cost of goods sold for the three-month period, using the weighted average cost method

The method of inventory costing in which a weighted average unit cost for each item is computed each time a purchase is made.

and the periodic inventory system. Round the weighted average unit cost to the nearest cent.
4. Compare the gross profit and the March 31, 2016, inventories.

none

X

FIFO

1. Determine the inventory on March 31, 2016, and the cost of goods sold for the three-month period, using the first-in, first-out method

The method of inventory costing based on the assumption that the costs of merchandise sold should be charged against revenue in the order in which the costs were incurred.

and the periodic inventory system.

Merchandise inventory, March 31, 2016
Cost of merchandise sold

Points:

Feedback

Check My Work

none

X

LIFO

2. Determine the inventory on March 31, 2016, and the cost of goods sold for the three-month period, using the last-in, first-out method

The method of inventory costing based on the assumption that the cost of merchandise sold is the cost of the most recent purchases.

and the periodic inventory system.

Merchandise inventory, March 31, 2016
Cost of merchandise sold

Points:

Feedback

Check My Work

none

X

Weighted Average

3. Determine the inventory on March 31, 2016, and the cost of goods sold for the three-month period, using the weighted average cost method

The method of inventory costing in which a weighted average unit cost for each item is computed each time a purchase is made.

and the periodic inventory system. Round the weighted average unit cost to the nearest cent.

Merchandise inventory, March 31, 2016
Cost of merchandise sold

Points:

Feedback

Check My Work

none

X

Final Question

4. Compare the gross profit and the March 31, 2016, inventories, using the following column headings.

Question not attempted.

1

FIFO

LIFO

Weighted Average

2

Sales

3

Cost of merchandise sold

4

Gross profit

5

6

Inventory, March 31, 2016

Solution

1

FIFO

LIFO

Weighted Average

2

Sales

3

Cost of merchandise sold

4

Gross profit

5

6

Inventory, March 31, 2016

Points:

Feedback

Check My Work

In: Accounting

Not In Subjectlist . Crititcal Thinking ! Is That Even A Thing ? In 200-300 words...

Not In Subjectlist . Crititcal Thinking !

Is That Even A Thing ?

In 200-300 words paraphrase of this article: "Is that even a thing", New York Times, by Alexander Stern, April 16, 2016. Your final product will be a paraphrase.

https://opinionator.blogs.nytimes.com/2016/04/16/is-that-even-a-thing/

In: Psychology

Costco Wholesale Corporation Consolidated Statements of Earnings For Fiscal Years Ended ($ millions) August 28, 2016...

Costco Wholesale Corporation
Consolidated Statements of Earnings
For Fiscal Years Ended ($ millions) August 28, 2016 August 30, 2015 August 31, 2014
Revenue
Net Sales $116,073 $113,666 $110,212
Membership fees 2,646 2,533 2,428
Total revenue 118,719 116,199 112,640
Operating expenses
Merchandise costs 102,901 101,065 98,458
Selling, general and administrative 12,068 11,445 10,899
Preopening expenses 78 65 63
Operating Income 3,672 3,624 3,220
Other income (expense)
Interest expense (133) (124) (113)
Interest income and other, net 80 104 90
Income before income taxes 3,619 3,604 3,197
Provision for income taxes 1,243 1,195 1,109
Net income including noncontrolling interests 2,376 2,409 2,088
Net income attributable to noncontrolling interests (26) (32) (30)
Net income attributable to Costco $2,350 $2,377 $2,058
Costco Wholesale Corporation
Consolidated Balance Sheets
($ millions, except par value and share data) August 28, 2016 August 30, 2015
Assets
Current assets
Cash and cash equivalents $3,379 $4,801
Short-term investments 1,350 1,618
Receivables, net 1,252 1,224
Merchandise inventories 8,969 8,908
Deferred income taxes and other current assets 268 228
Total current assets 15,218 16,779
Property and equipment
Land 5,395 4,961
Buildings and improvements 13,994 12,618
Equipment and fixtures 6,077 5,274
Construction in progress 701 811
Gross property and equipment 26,167 23,664
Less accumulated depreciation and amortization (9,124) (8,263)
Net property and equipment 17,043 15,401
Other assets 902 837
Total assets $33,163 $33,017
Liabilities and equity
Current liabilities
Accounts payable $7,612 $9,011
Current portion long-term debt $1,100 $1,283
Accrued salaries and benefits 2,629 2,468
Accrued member rewards 869 813
Deferred membership fees 1,362 1,269
Other current liabilities 2,003 1,695
Total current liabilities 15,575 16,539
Long-term debt, excluding current portion 4,061 4,852
Other liabilities 1,195 783
Total liabilities 20,831 22,174
Equity
Preferred stock, $0.005 par value:
100,000,000 shares authorized; no shares issued and outstanding 0 0
Common stock, $0.005 par value:
900,000,000 shares authorized;
437,524,000 and 437,952,000 shares issued and outstanding 2 2
Additional paid-in-capital 5,490 5,218
Accumulated other comprehensive loss (1,099) (1,121)
Retained earnings 7,686 6,518
Total Costco stockholders’ equity 12,079 10,617
Noncontrolling interests 253 226
Total equity 12,332 10,843
Total liabilities and equity $33,163 $33,017


HINT: For Sales use "Total revenues" for your computations, when applicable.

(a) Compute net operating profit after tax (NOPAT) for 2016. Assume that the combined federal and state statutory tax rate is 37%. (Round to the nearest whole number.)

2016 NOPAT = Answer ($ millions)


(b) Compute net operating assets (NOA) for 2016 and 2015.

2016 NOA = Answer ($ millions)

2015 NOA = Answer ($ millions)


(c) Compute Costco’s RNOA, net operating profit margin (NOPM) and net operating asset turnover (NOAT) for 2016. (Do not round until final answer. Round two decimal places. Do not use NOPM x NOAT to calculate RNOA)

2016 RNOA = Answer %

2016 NOPM = Answer %

2016 NOAT = Answer

(d) Compute net nonoperating obligations (NNO) for 2016 and 2015.

2016 NNO = Answer ($ millions)

2015 NNO = Answer ($ millions)


(e) Compute return on equity (ROE) for 2016. (Do not round until final answer. Round answer two decimal places)

2016 ROE = Answer%


(f) Infer the nonoperating return component of ROE for 2016. (Use answers from above to calculate. Round two decimal places.)

Answer%

In: Accounting