Questions
Hello i am working on an assignment for my programming course in JAVA. The following is...

Hello i am working on an assignment for my programming course in JAVA. The following is the assignment:

In main, first ask the user for their name, and read the name into a String variable. Then, using their name, ask for a temperature in farenheit, and read that value in. Calculate and print the equivalent celsius, with output something like

 Bob, your 32 degrees farenheit would be 0 degrees celsius

Look up the celsius to farenheit conversion if you do not remember it, your answer should not always be a whole number.

☑ Then have your program ask for the temperature in celsius and print the equivalent farenheit, in the same way.

I have correctly been able to do the first step, however i am unable to figure out how to properly code for the second task, where the program asks for the temperature in celsius and prints the farenheit equivalent. Here is what i have done.

import java.util.Scanner;


public class TempConverter {

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Scanner scName = new Scanner(System.in);
String name;
System.out.print("Enter your name : ");
name = scName.nextLine();
System.out.print("Hi "+name+" Enter temperature in farenheit : ");
double temp = sc.nextDouble();
double tempInCel = (temp - 32) * 5 / 9;
double tempInFahr = (temp *9/5)+ 32;
System.out.println(name+", your "+temp+" degrees farenheit would be "+tempInCel+" degrees celsius");
System.out.println(", your "+temp+ " degrees celsius would be" +tempinFahr+" degrees celsius");
}

}

In: Computer Science

Suppose you are the director of the sales department of Easy Toys Ltd. You need a...

Suppose you are the director of the sales department of Easy Toys Ltd. You need a database application to record your new business leads. Your requirements are:

1 The identity of the staff who is developing the new business lead, including the staff’s first name, last name, and employee number.

2 The identity of the potential client, including the company name, key contact person, and the company address.

3 Information about each new business lead, including the type of product classifications (e.g. STEM / dolls / electronic toys / cars).

4 Information about each contact made to develop the new business lead, including the date of the contact, how much time the staff has spent on the contact, and a brief summary of the points discussed.

The IT department of Easy Toy Ltd tells you that they already have a lot of backlog and they cannot handle your request. You decide to build the system with one of your sales managers. Your sales manager proposes the following relational database design:

Table name

Primary key

Non-key attributes

Business lead

Employee name

First name, Last name, Company name, Key contact person, New product classification, Date of contact, Time spent, Brief summary

Required:

a) What are the problems in the above relational database design proposed by the sales manager?

b) Recommend a relational database design that can eliminate all the problems identified in part (a)

In: Computer Science

Create and initialize a string array, write and use 3 functions.Write a program. Create a string...

Create and initialize a string array, write and use 3 functions.Write a program.

Create a string array in the main(),called firstNameArray, initialize with7 first namesJim, Tuyet, Ann, Roberto, Crystal, Valla, Mathilda

Write a first function, named searchArray, that passes two arguments: a single person’s name and the array reference, into a function,This function should then search the array to see if the name is in the firstNameArray. If found, it will return the array index where the name is found, else it return the number 7.(This function needs 3 parameters –see code examples above)

Write the code in the main program to call/use the searchArray function. Check the return value for the index value returned. Print the name using the index number(0 to 6), or prints ‘name not found’ if it return a 7.

Write a second function, print AllNames, that will print all the names in the array.Pass the array into the function. (This function needs two parameters –see code example above)

Write the code in the main program to call/use this printAllNames function.

Write a third function, called deleteName, that will delete a name from the array. Check first to see if the name is in the array, before you try to delete it(use the searchArray function).If you find the name, then write “ “ to the location in the array. ... Just making spot blank.(This function requires 3 parameters –see code examples above).

Call the printAllNames function to print the array to verify you have deleted a value.Print out the array... if the spot/index in the array is blank do not print it.

C++

In: Computer Science

The Green Thumb Gardener is a retail store that sells plants, soil, and decorative pots. On...

The Green Thumb Gardener is a retail store that sells plants, soil, and decorative pots. On December 31, 2016, the firm's general ledger contained the accounts and balances that appear below. ACCOUNTS AND BALANCES Cash $ 5,700 Dr. Accounts Receivable 2,600 Dr. Allowance for Doubtful Accounts 52 Cr. Merchandise Inventory 11,300 Dr. Supplies 1,200 Dr. Prepaid Advertising 960 Dr. Store Equipment 8,100 Dr. Accumulated Depreciation—Store Equipment 1,500 Cr. Office Equipment 1,600 Dr. Accumulated Depreciation—Office Equipment 280 Cr. Accounts Payable 2,625 Cr. Social Security Tax Payable 430 Cr. Medicare Tax Payable 98 Cr. Federal Unemployment Tax Payable State Unemployment Tax Payable Salaries Payable Beth Argo, Capital 25,457 Cr. Beth Argo, Drawing 20,000 Dr. Sales 90,048 Cr. Sales Returns and Allowances 1,100 Dr. Purchases 46,400 Dr. Purchases Returns and Allowances 430 Cr. Rent Expense 6,000 Dr. Telephone Expense 590 Dr. Salaries Expense 14,100 Dr. Payroll Taxes Expense 1,270 Dr. Income Summary Supplies Expense Advertising Expense Depreciation Expense—Store Equipment Depreciation Expense—Office Equipment Uncollectible Accounts Expense ADJUSTMENTS a.–b. Merchandise inventory on December 31, 2016, is $12,321. c. During 2016, the firm had net credit sales of $35,000; the firm estimates that 0.6 percent of these sales will result in uncollectible accounts. d. On December 31, 2016, an inventory of the supplies showed that items costing $275 were on hand. e. On October 1, 2016, the firm signed a six-month advertising contract for $960 with a local newspaper and paid the full amount in advance. f. On January 2, 2015, the firm purchased store equipment for $8,100. At that time, the equipment was estimated to have a useful life of five years and a salvage value of $600. g. On January 2, 2015, the firm purchased office equipment for $1,600. At that time, the equipment was estimated to have a useful life of five years and a salvage value of $200. h. On December 31, 2016, the firm owed salaries of $1,830 that will not be paid until 2017. i. On December 31, 2016, the firm owed the employer’s social security tax (assume 6.2 percent) and Medicare tax (assume 1.45 percent) on the entire $1,830 of accrued wages. j. On December 31, 2016, the firm owed federal unemployment tax (assume 0.6 percent) and state unemployment tax (assume 5.4 percent) on the entire $1,830 of accrued wages. 3. Complete the worksheet. (Round your intermediate calculations and final answers to 2 decimal places.)

In: Accounting

P. 4-2 For each of the following indicate the amount of revenue that Beanville should recognize...

P. 4-2 For each of the following indicate the amount of revenue that Beanville should recognize in its 2017 (1) government-wide statements and (2) governmental fund statements. Provide a brief justification or explanation for your responses. The state in which Beanville is located collects sales taxes for its cities and other local governments. The state permits small merchants to remit sales taxes quarterly. The state sales tax rate is 6 percent. In December 2016, city merchants collected $50 million in sales taxes that they remitted to the state on January 15, 2017. The state, in turn, transferred the taxes to the city on February 15, 2017. In December 2016, the federal government awarded Beanville a reimbursement grant of $500,000 to train law-enforcement agents. The city had applied for the grant in January of that year. The city may incur allowable costs any time after receiving notification of the award. In 2017, the city incurred $400,000 in allowable costs and was reimbursed for $350,000. It was reimbursed for the $50,000 balance in February 2018. In January and February 2018, it incurred the remaining $100,000 in allowable costs and was reimbursed for them in April 2018. In December 2016 the city levied property taxes of $1 billion for the calendar year 2017. The taxes are due June 30, 2017. The city collected these taxes as follows: December 2016 $ 56 million January 1, 2016, to December 31, 2016 $ 858 million January 1, 2017, through March 31, 2017 ($18 million per month) $ 54 million Total $ 968 million It estimates the balance of $32 million would be uncollectible. In addition, in the period from January 1 through February 28, 2017, the city collected $16 million in taxes that were delinquent as of December 31, 2016. In the period March 1 through June 30 2017, the city collected $8 million of taxes that were also delinquent as of December 31, 2016. In December 2017 Beanville sold a city-owned warehouse to a private developer. Sales price was $4.2 million. The warehouse had cost $4 million when it was acquired 10 years earlier. It had an estimated useful life of 40 years (with no salvage value). In December 2017, Beanville's city-owned radio station held its annual fund drive. A local business offered to match all pledges made on December 2, 2017, up to $50,000, assuming that the amount pledged was actually collected. Based on past experience the city estimates that 90 percent of the pledges will actually be collected. By year-end 2017, the city had collected $25,000 of the pledges, and in January and February it collected an additional $15,000. It received $25,000 of the matching funds on February 15, 2018. Respond with respect only to the $50,000 in matching funds.

In: Accounting

Nineteen Measures of Solvency and Profitability The comparative financial statements of Blige Inc. are as follows....

Nineteen Measures of Solvency and Profitability

The comparative financial statements of Blige Inc. are as follows. The market price of Blige Inc. common stock was $62 on December 31, 2016.

Blige Inc.
Comparative Retained Earnings Statement
For the Years Ended December 31, 2016 and 2015
    2016     2015
Retained earnings, January 1 $2,822,400 $2,389,100
Add net income for year 651,200 489,300
Total $3,473,600 $2,878,400
Deduct dividends
On preferred stock $8,400 $8,400
On common stock 47,600 47,600
Total $56,000 $56,000
Retained earnings, December 31 $3,417,600 $2,822,400


Blige Inc.
Comparative Income Statement
For the Years Ended December 31, 2016 and 2015
    2016     2015
Sales $3,895,680 $3,584,000
Sales returns and allowances 19,380 12,600
Sales $3,876,300 $3,571,400
Cost of goods sold 1,403,060 1,290,820
Gross profit $2,473,240 $2,280,580
Selling expenses $836,910 $1,031,700
Administrative expenses 712,930 605,920
Total operating expenses 1,549,840 1,637,620
Income from operations $923,400 $642,960
Other income 48,600 41,040
$972,000 $684,000
Other expense (interest) 232,000 128,000
Income before income tax $740,000 $556,000
Income tax expense 88,800 66,700
Net income $651,200 $489,300


Blige Inc.
Comparative Balance Sheet
December 31, 2016 and 2015
    Dec. 31, 2016     Dec. 31, 2015
Assets
Current assets
Cash $639,200 $689,560
Temporary investments 967,440 1,142,690
Accounts receivable (net) 678,900 635,100
Inventories 511,000 394,200
Prepaid expenses 120,932 137,910
Total current assets $2,917,472 $2,999,460
Long-term investments 1,768,208 923,289
Property, plant, and equipment (net) 3,770,000 3,393,000
Total assets $8,455,680 $7,315,749
Liabilities
Current liabilities $858,080 $1,613,349
Long-term liabilities
Mortgage note payable, 8%, due 2021 $1,300,000 $0
Bonds payable, 8%, due 2017 1,600,000 1,600,000
Total long-term liabilities $2,900,000 $1,600,000
Total liabilities $3,758,080 $3,213,349
Stockholders' Equity
Preferred $0.7 stock, $50 par $600,000 $600,000
Common stock, $10 par 680,000 680,000
Retained earnings 3,417,600 2,822,400
Total stockholders' equity $4,697,600 $4,102,400
Total liabilities and stockholders' equity $8,455,680 $7,315,749

Required:

Determine the following measures for 2016, rounding to one decimal place, except for dollar amounts, which should be rounded to the nearest cent. Use the rounded answer of the requirement for subsequent requirement, if required. Assume 365 days a year.

10. Number of times interest charges are earned fill in the blank 10
11. Number of times preferred dividends are earned fill in the blank 11
12. Ratio of sales to assets fill in the blank 12
13. Rate earned on total assets %

In: Accounting

Nineteen Measures of Solvency and Profitability The comparative financial statements of Blige Inc. are as follows....

Nineteen Measures of Solvency and Profitability

The comparative financial statements of Blige Inc. are as follows. The market price of Blige Inc. common stock was $62 on December 31, 2016.

Blige Inc.
Comparative Retained Earnings Statement
For the Years Ended December 31, 2016 and 2015
    2016     2015
Retained earnings, January 1 $2,822,400 $2,389,100
Add net income for year 651,200 489,300
Total $3,473,600 $2,878,400
Deduct dividends
On preferred stock $8,400 $8,400
On common stock 47,600 47,600
Total $56,000 $56,000
Retained earnings, December 31 $3,417,600 $2,822,400


Blige Inc.
Comparative Income Statement
For the Years Ended December 31, 2016 and 2015
    2016     2015
Sales $3,895,680 $3,584,000
Sales returns and allowances 19,380 12,600
Sales $3,876,300 $3,571,400
Cost of goods sold 1,403,060 1,290,820
Gross profit $2,473,240 $2,280,580
Selling expenses $836,910 $1,031,700
Administrative expenses 712,930 605,920
Total operating expenses 1,549,840 1,637,620
Income from operations $923,400 $642,960
Other income 48,600 41,040
$972,000 $684,000
Other expense (interest) 232,000 128,000
Income before income tax $740,000 $556,000
Income tax expense 88,800 66,700
Net income $651,200 $489,300


Blige Inc.
Comparative Balance Sheet
December 31, 2016 and 2015
    Dec. 31, 2016     Dec. 31, 2015
Assets
Current assets
Cash $639,200 $689,560
Temporary investments 967,440 1,142,690
Accounts receivable (net) 678,900 635,100
Inventories 511,000 394,200
Prepaid expenses 120,932 137,910
Total current assets $2,917,472 $2,999,460
Long-term investments 1,768,208 923,289
Property, plant, and equipment (net) 3,770,000 3,393,000
Total assets $8,455,680 $7,315,749
Liabilities
Current liabilities $858,080 $1,613,349
Long-term liabilities
Mortgage note payable, 8%, due 2021 $1,300,000 $0
Bonds payable, 8%, due 2017 1,600,000 1,600,000
Total long-term liabilities $2,900,000 $1,600,000
Total liabilities $3,758,080 $3,213,349
Stockholders' Equity
Preferred $0.7 stock, $50 par $600,000 $600,000
Common stock, $10 par 680,000 680,000
Retained earnings 3,417,600 2,822,400
Total stockholders' equity $4,697,600 $4,102,400
Total liabilities and stockholders' equity $8,455,680 $7,315,749

Required:

Determine the following measures for 2016, rounding to one decimal place, except for dollar amounts, which should be rounded to the nearest cent. Use the rounded answer of the requirement for subsequent requirement, if required. Assume 365 days a year.

14. Rate earned on stockholders' equity fill in the blank %

15. Rate earned on common stockholders' equity fill in the blank %1

6. Earnings per share on common stock fill in the blank

17. Price-earnings ratio fill in the blank

In: Accounting

Back on December 23, 2000, Jasmine Crusher purchased a home in Pahoa, Hawaii for $1,500,000 which...

Back on December 23, 2000, Jasmine Crusher purchased a home in Pahoa, Hawaii for $1,500,000 which included the land and the home. Her property tax bill for 2001 showed assessed value of the land of $300,000 and of the building for $1,200,000. She used the home as her personal residence until October 15, 2010 when her employer transferred her to San Francisco. Jasmine put the house on the market for a sale price of $1,900,000 but was receiving no offers. In February 2011, she found out that a house down the road had just sold for $1,250,000. So, she decided to rent it and use it for occasional vacations for herself. Jasmine hired a management company to find the renters. Since the house is in Hawaii, the management firm never had a problem having the house rented for most of the year. Because Jasmine used a 15 year loan, the loan was completely paid off in December 2015. Jasmine turned over all bill paying responsibilities to the management company starting in 2014. Below are the details Jasmine received from the management company for 2014 and 2015. However, in 2016, she decided that the management company was charging her too much for the small amount of work they seemed to be doing, so she fired them on June 1 and took over all of the work of renting the house and paying the bills. On December 2, 2016, the nearby volcano erupted and Jasmine’s house was burned to the ground by one of the advancing lava flows, while she was working in San Francisco. As a result of having been so busy with work and the rental, Jasmine neglected to pay her homeowners insurance that was due July 1, 2016, so at the time of the eruption, she had no insurance. The 2016 information is a combination of the management company information through May 31, and Jasmine’s records for the rest of the year up until the house was caught in the lava flow. Jasmine sold the land in a fire sale “as-is” for $50,000 on December 31, 2016. Jasmine is a successful IT consultant with AGI, made up of wages and interest income, for 2016 of $375,500 and $365,750 for 2015.

2014

2015

2016

Days rented

300

310

300

Personal days used

32

28

29

Rental income per day

240

260

280

Property taxes

22,500

23,063

23,639

Interest on mortgage

18,000

15,000

0

Insurance

1,150

1,250

0

Alarm Company

500

600

600

Management company

12,000

12,000

5,000

Advertising

1,250

1,300

1,400

Repairs

2,500

1,000

1,950

Cleaning fees

3,000

3,500

3,250

Accounting fees

1,250

1,300

1,200

Utilities

2,400

2,500

2,600

Landscaper fees

1,800

1,900

2,100

Cable TV

1,500

1,600

1,800

Required: Calculate all of the impacts of the above transactions on Jasmine’s 2016 taxes. Explain how you arrived at each conclusion.


In: Accounting

1. Data from the financial statements of Dils Brothers Co. and J. Cox, Inc. are presented...

1. Data from the financial statements of Dils Brothers Co. and J. Cox, Inc. are presented below (in millions):

Dils Brothers Co.

J. Cox, Inc.

Total liabilities, 2016

$70,914

$47,422

Total liabilities, 2015

72,208

60,092

Total assets, 2016

100,372

73,744

Total assets, 2015

94,114

70,416

Revenue, 2016

306,932

163,040

Net income, 2016

280

1,572


To the nearest hundredth, what is the 2016 debt-to-total assets ratio for Dils Brothers Co.?

Select one:

A. 44.16

B. 3.78

C. 0.26

D. 0.71

2.

An economic event that requires accounting recognition defines:

Select one:

A. The cost principle

B. An asset

C. An accounting transaction

D. An income statement

3.

Which of the following statements is true regarding generally accepted accounting principles (GAAP)?

Select one:

A. U.S. GAAP is the same as GAAP in other countries.

B. GAAP is subject to change as conditions warrant.

C. Under GAAP, if two companies engage in the same transactions, they must choose the same accounting methods.

D. GAAP is a set of laws.

4.

Wonderland Company purchased equipment with a cost of $190,000, with an estimated residual value of $10,000, and an estimated life of 15 years. After 5 full years of recording depreciation by the straight-line method, it was determined that due to obsolescence, the equipment’s useful life should be reduced by 5 years and the residual value changed to zero.  

The depreciation expense for Year 6 is:

Select one:

A. $22,000

B. $26,000

C. $11,000

D. $20,000

5.

Data on the physical inventory for Ace Company as of December 31, 2016 are given below:

Inventory Items

Quantity on hand

Unit Cost

Unit Market Value

Appliances:

Refrigerators

12

$2,000

$1,800

Dishwashers

18

$1,200

$1,100

Ovens

15

$1,000

$1,200

Electronics:

Stereos

20

$1,400

$1,500

Televisions

25

$1,800

$1,704


Assuming Ace Company applies the LCM method on the inventory by major category of items, the inventory balance reported on the Balance Sheet as of December 31, 2016 will be:

Select one:

A. $132,000

B. $133,600

C. $133,200

D. $132,400

6.

M. Fields, Inc. wishes to accumulate $1,200,000 to be used to pay off a balloon note at the end of 4 years.  

How much will M. Fields invest today to accumulate the desired amount if the investment earns an annual rate of 12% compounded quarterly? (Select the closest amount.)

Select one:

A. $747,804

B. $130,496

C. $508,416

D. $704,000

7.

Blue Moon Company purchased a machine on January 1, 2016 for $120,000, with a 5-year life, and a $12,000 residual life.  

Compute the book value of the machine on December 31, 2018 if the company uses the double-declining balance method of depreciation.

Select one:

A. $25,920

B. $21,600

C. $48,000

D. $20,000

In: Accounting

The comparative financial statements of Blige Inc. are as follows. The market price of Blige Inc....

The comparative financial statements of Blige Inc. are as follows. The market price of Blige Inc. common stock was $71 on December 31, 2016.

Blige Inc.
Comparative Retained Earnings Statement
For the Years Ended December 31, 2016 and 2015
    2016     2015
Retained earnings, January 1 $2,474,150 $2,101,950
Add net income for year 570,000 430,500
Total $3,044,150 $2,532,450
Deduct dividends
On preferred stock $7,000 $7,000
On common stock 51,300 51,300
Total $58,300 $58,300
Retained earnings, December 31 $2,985,850 $2,474,150


Blige Inc.
Comparative Income Statement
For the Years Ended December 31, 2016 and 2015
    2016     2015
Sales $3,288,585 $3,025,500
Sales returns and allowances 16,360 10,630
Sales $3,272,225 $3,014,870
Cost of goods sold 1,165,080 1,071,870
Gross profit $2,107,145 $1,943,000
Selling expenses $690,680 $861,540
Administrative expenses 588,355 505,990
Total operating expenses 1,279,035 1,367,530
Income from operations $828,110 $575,470
Other income 43,590 36,730
$871,700 $612,200
Other expense (interest) 224,000 123,200
Income before income tax $647,700 $489,000
Income tax expense 77,700 58,500
Net income $570,000 $430,500


Blige Inc.
Comparative Balance Sheet
December 31, 2016 and 2015
    Dec. 31, 2016     Dec. 31, 2015
Assets
Current assets
Cash $638,430 $599,200
Temporary investments 966,270 992,970
Accounts receivable (net) 613,200 576,700
Inventories 467,200 365,000
Prepaid expenses 120,775 119,840
Total current assets $2,805,875 $2,653,710
Long-term investments 1,820,240 1,046,746
Property, plant, and equipment (net) 3,080,000 2,772,000
Total assets $7,706,115 $6,472,456
Liabilities
Current liabilities $850,265 $1,388,306
Long-term liabilities
Mortgage note payable, 8%, due 2021 $1,260,000 $0
Bonds payable, 8%, due 2017 1,540,000 1,540,000
Total long-term liabilities $2,800,000 $1,540,000
Total liabilities $3,650,265 $2,928,306
Stockholders' Equity
Preferred $0.7 stock, $50 par $500,000 $500,000
Common stock, $10 par 570,000 570,000
Retained earnings 2,985,850 2,474,150
Total stockholders' equity $4,055,850 $3,544,150
Total liabilities and stockholders' equity $7,706,115 $6,472,456

Required:

Determine the following measures for 2016, rounding to one decimal place, except for dollar amounts, which should be rounded to the nearest cent. Use the rounded answer of the requirement for subsequent requirement, if required. Assume 365 days a year.

13. Rate earned on total assets %
14. Rate earned on stockholders' equity %
15. Rate earned on common stockholders' equity %
16. Earnings per share on common stock $
17. Price-earnings ratio
18. Dividends per share of common stock $
19. Dividend yield %

In: Accounting