Questions
c++ Design the Weather class that contains the following members: Data members to store: -a day...

c++

Design the Weather class that contains the following members:

Data members to store:

-a day (an integer)

-a month (an integer)

-a year (an integer)

-a temperature (a float)

-a static data member that stores the total of all temperatures (a float)

Member functions:

-a constructor function that obtains a day, month, year and temperature from the user. This function should also accumulate/calculate the total of all temperatures (i.e., add the newly entered temperature to the total).

-a static function that computes and displays the day which has the lowest temperature. Note: An array of Weather objects and the size of the array will be passed to this function.

-a static function that computes and displays the average temperature. This function should use a parameter,if necessary.

Design the main( )function, which instantiates/creates any number of objects of the Weather class as requested by the user (i.e., creates a dynamic array of Weather objects). main( )should also call appropriate functions to compute and display the day that has the lowest temperature, as well as the average temperature.Your program should include all necessary error checking.

A sample run of this program could be as follows:

How many days => 4

Enter day, month, year, temperature => 29 11 2018 15.6

Enter day, month, year, temperature => 30 11 2018 8.7

Enter day, month, year, temperature => 1 12 2018 3.1

Enter day, month, year, temperature => 2 12 2018 3.5

Lowest temperature = 3.1C, Day 1/12/2018

Average temperature = 7.7 C

In: Computer Science

Power Drive Corporation designs and produces a line of golf equipment and golf apparel. Power Drive...

Power Drive Corporation designs and produces a line of golf equipment and golf apparel. Power Drive has 100,000 shares of common stock outstanding as of the beginning of 2018. Power Drive has the following transactions affecting stockholders’ equity in 2018.


March 1 Issues 46,000 additional shares of $1 par value common stock for $43 per share.

May 10 Purchases 4,100 shares of treasury stock for $46 per share.

June 1 Declares a cash dividend of $1.05 per share to all stockholders of record on June 15. (Hint: Dividends are not paid on treasury stock.)

July 1 Pays the cash dividend declared on June 1.

October 21 Reissues 2,050 shares of treasury stock purchased on May 10 for $51 per share.


Power Drive Corporation has the following beginning balances in its stockholders’ equity accounts on January 1, 2018: Common Stock, $100,000; Additional Paid-in Capital, $3,600,000; and Retained Earnings, $1,100,000. Net income for the year ended December 31, 2018, is $510,000.

Prepare the stockholders’ equity section of the balance sheet for Power Drive Corporation as of December 31, 2018 and answer the following questions.

a) Determine the amount of common stock to be reported on the December 31 balance sheet.

b) Determine the amount of additional paid-in capital to be reported on the December 31 balance sheet.

c) Determine the amount of total paid-in capital to be reported on the December 31 balance sheet.

d) Determine the amount of total stockholders’ equity to be reported on the December 31 balance sheet.

In: Accounting

C++ Assignment. Design the Weather class that contains the following members: Data members to store: -...

C++ Assignment.

Design the Weather class that contains the following members:

Data members to store:

- a day (an integer)

- a month (an integer)

- a year (an integer)

- a temperature (a float)

- a static data member that stores the total of all temperatures (a float)

Member functions:

- a constructor function that obtains a day, month, year and temperature from the user. This function should also accumulate/calculate the total of all temperatures (i.e., add the newly entered temperature to the total).

- a static function that computes and displays the day which has the lowest temperature. Note: An array of Weather objects and the size of the array will be passed to this function.

- a static function that computes and displays the average temperature. This function should use a parameter, if necessary.

Design the main( ) function, which instantiates/creates any number of objects of the Weather class as requested by the user (i.e., creates a dynamic array of Weather objects). main( ) should also call appropriate functions to compute and display the day that has the lowest temperature, as well as the average temperature. Your program should include all necessary error checking.

A sample run of this program could be as follows:

How many days => 4

Enter day, month, year, temperature => 29 11 2018 15.6

Enter day, month, year, temperature => 30 11 2018 8.7

Enter day, month, year, temperature => 1 12 2018 3.1

Enter day, month, year, temperature => 2 12 2018 3.5

Lowest temperature = 3.1 C, Day 1/12/2018

Average temperature = 7.7 C

In: Computer Science

Jaynes Inc. acquired all of Aaron Co.'s common stock on January I, 2017, by issuing 11,000...

Jaynes Inc. acquired all of Aaron Co.'s common stock on January I, 2017, by issuing 11,000 shares of SI par value common stock. Jaynes' shares had a $17 per share fair value. On that date, Aaron reported a net book value of S120,000. However, its equipment (with a five-year remaining life) was undervalued by $6,000 in the company's accounting records. Any excess of consideration transferred over fair value of assets and liabilities is assigned to an unrecorded patent to be amortized over ten years. The following figures came from the individual accounting records of these two companies as of December 31, 2017Aaton Co.276,000 144,000 Jaynes Inc S 720,000 528,000 Not given 00,000 Revenues Expenses Investment income Dividends paid 60,000 The following figures came from the individual accounting records of these two companies as of December 31, 2018 Aaron Co 336.000 180,000 Jaynes Inc Revenues Expenses Investment income Dividends paid Equipment Retained carnings, 12/31 18 balance 840,000 552,000 Not given 110,000 600,000 50,000 360,000 960.000 216000

A.What was the total for consolidated patents as of December 31, 2018?

B. What was consolidated equipment as of December 31, 2018?

C.What balance would Jaynes' Investment in Aaron Co. account have shown on December 31, 2018, when the equity method was applied for this acquisition?

D. What was consolidated net income for the year ended December 31, 2018?

Please provide solutions and answers

In: Accounting

Python Questions Suppose we run the Python program my_program.py from command line like this: Python my_program.py...

Python Questions

Suppose we run the Python program my_program.py from command line like this:

Python my_program.py 14 CSC121

Which of the following statement in my_program.py will display CSC121?

A.
import sys
print(sys.argv)
B.
 
 
 
import sys
print(sys.argv[0])
C.
 
 
import sys
print(sys.argv[1])
 
 
D.
import sys
print(sys.argv[2])
  1. from datetime import datetime
    dob = datetime(2015, 1, 1)
     

    Which of the following statements will change year to 2018?

    A.
    dob.year=2018
    B.
     
     
     
    dob.replace(year=2018)
    C.
     
     
    dob = dob.replace(year=2018)
     
     
    D.
    dob.set_year(2018)

10 points   

QUESTION 4

  1. from datetime import datetime
    dob = datetime(2011,12,10)
    today = datetime.now()
    age = today - dob

    What is the type of age?

    A.

    int

    B.

    float

    C.

    datetime

    D.

    timedelta

    Which of the following functions returns integers between 0 and 20 that are divisible by both 2 and 3?

    A.
    def divisible_2_3 ():
        for i in range(20):
            if i % 2 == 0 and i % 3 == 0:
                yield i
    B.
     
     
     
    def divisible_2_3 ():
        for i in range(20):
            if i % 2 == 0 and i % 3 == 0:
                return i
    C.
     
     
    def divisible_2_3 ():
        seq = []
        for i in range(20):
            if i % 2 == 0 and i % 3 == 0:
                yield seq
     
     
    D.
    def divisible_2_3 ():
        seq = []
        for i in range(20):
            if i % 2 == 0 and i % 3 == 0:
                return i

In: Computer Science

Quantitative Problem: Rosnan Industries' 2018 and 2017 balance sheets and income statements are shown below. Balance...

Quantitative Problem: Rosnan Industries' 2018 and 2017 balance sheets and income statements are shown below.

Balance Sheets:
2018 2017
  Assets
Cash and equivalents $100   $85  
Accounts receivable 275   300  
Inventories 375   350  
    Total current assets $750   $735  
Net plant and equipment 2,000   1,490  
Total assets $2,750   $2,225  
  Liabilities and Equity
Accounts payable $150   $85  
Accruals 75   50  
Notes payable 150   175  
    Total current liabilities $375   $310  
Long-term debt 450   290  
    Total liabilities $825   $600  
Common stock 1,225   1,225  
Retained earnings 700   400  
    Total common equity $1,925   $1,625  
Total liabilities and equity $2,750   $2,225  


Income Statements:
2018 2017
Sales $2,000   $1,500  
Operating costs excluding depreciation 1,250   1,000  
EBITDA $750   $500  
Depreciation and amortization 100   75  
EBIT $650   $425  
Interest 62   45  
EBT $588   $380  
Taxes (40%) 235   152  
Net income $353   $228  
Dividends paid $53   $48  
Addition to retained earnings $300   $180  
Shares outstanding 100   100  
Price $25.00   $22.50  
WACC 10.00%     

What is the firm’s 2018 current ratio? Do not round intermediate calculations. Round your answer to two decimal places.

If the industry average debt-to-assets ratio is 30%, then Rosnan’s creditors have a -Select-smallerbiggerCorrect 1 of Item 3 cushion than indicated by the industry average.

What is the firm’s 2018 net profit margin? Do not round intermediate calculations. Round your answer to four decimal places.

%

If the industry average profit margin is 12%, then Rosnan’s lower than average debt-to-assets ratio might be one reason for its high profit margin.
-Select-TrueFalseCorrect 1 of Item 4

What is the firm’s 2018 price/earnings ratio? Do not round intermediate calculations. Round your answer to two decimal places.

Using the DuPont equation, what is the firm’s 2018 ROE? Do not round intermediate calculations. Round your answer to two decimal places.

%

In: Finance

Alison and Chuck Renny began operations of their furniture repair shop (Lazy Sofa Furniture, Inc.) on...

Alison and Chuck Renny began operations of their furniture repair shop (Lazy Sofa Furniture, Inc.) on January 1, 2017. The annual reporting period ends December 31. The trial balance on January 1, 2018, follows (amounts are rounded to thousands of dollars to simplify).

Account Titles Debit Credit
Cash $ 6
Accounts Receivable 3
Supplies 2
Equipment 5
Accumulated Depreciation $ 0
Software 10
Accumulated Amortization 4
Accounts Payable 6
Notes Payable (long-term) 0
Salaries and Wages Payable 0
Interest Payable 0
Income Tax Payable 0
Deferred Revenue 0
Common Stock 14
Retained Earnings 2
Service Revenue 0
Supplies Expense 0
Depreciation Expense 0
Salaries and Wages Expense 0
Amortization Expense 0
Interest Expense 0
Income Tax Expense 0
Totals $ 26 $ 26

Transactions during 2018 (summarized in thousands of dollars) follow:

  1. Borrowed $16 cash on July 1, 2018, signing a six-month note payable.
  2. Purchased equipment for $23 cash on July 2.
  3. Issued additional shares of common stock on July 3 for $5.
  4. Purchased additional equipment on August 4, $3 cash.
  5. Purchased, on account, supplies on September 5 for future use, $10.
  6. On December 6, recorded revenues in the amount of $60, including $9 on credit and $51 received in cash.
  7. Paid salaries and wages expenses on December 7, $24.
  8. Collected accounts receivable on December 8, $8.
  9. Paid accounts payable on December 9, $11.
  10. Received a $4 deposit on December 10 for work to start January 15, 2019.

Data for adjusting journal entries on December 31:

  1. Amortization for 2018, $4.
  2. Supplies of $4 were counted on December 31, 2018.
  3. Depreciation for 2018, $2.
  4. Accrued interest on notes payable of $5.
  5. Wages earned but not yet paid, $3.
  6. Income tax for 2018 was $4 and will be paid in 2019.

C4-4 Part 6

  1. 6-a. Prepare an income statement.

  2. 6-b. Prepare statement of retained earnings.

  3. 6-c. Prepare a balance sheet.

(For all requirements, enter your answers in thousands of dollars.)

In: Accounting

Alison and Chuck Renny began operations of their furniture repair shop (Lazy Sofa Furniture, Inc.) on...

Alison and Chuck Renny began operations of their furniture repair shop (Lazy Sofa Furniture, Inc.) on January 1, 2017. The annual reporting period ends December 31. The trial balance on January 1, 2018, follows (amounts are rounded to thousands of dollars to simplify).

Account Titles Debit Credit
Cash $ 6
Accounts Receivable 3
Supplies 2
Equipment 5
Accumulated Depreciation $ 0
Software 10
Accumulated Amortization 4
Accounts Payable 6
Notes Payable (long-term) 0
Salaries and Wages Payable 0
Interest Payable 0
Income Tax Payable 0
Deferred Revenue 0
Common Stock 14
Retained Earnings 2
Service Revenue 0
Supplies Expense 0
Depreciation Expense 0
Salaries and Wages Expense 0
Amortization Expense 0
Interest Expense 0
Income Tax Expense 0
Totals $ 26 $ 26

Transactions during 2018 (summarized in thousands of dollars) follow:

  1. Borrowed $16 cash on July 1, 2018, signing a six-month note payable.
  2. Purchased equipment for $23 cash on July 2.
  3. Issued additional shares of common stock on July 3 for $5.
  4. Purchased additional equipment on August 4, $3 cash.
  5. Purchased, on account, supplies on September 5 for future use, $10.
  6. On December 6, recorded revenues in the amount of $60, including $9 on credit and $51 received in cash.
  7. Paid salaries and wages expenses on December 7, $24.
  8. Collected accounts receivable on December 8, $8.
  9. Paid accounts payable on December 9, $11.
  10. Received a $4 deposit on December 10 for work to start January 15, 2019.

Data for adjusting journal entries on December 31:

  1. Amortization for 2018, $4.
  2. Supplies of $4 were counted on December 31, 2018.
  3. Depreciation for 2018, $2.
  4. Accrued interest on notes payable of $5.
  5. Wages earned but not yet paid, $3.
  6. Income tax for 2018 was $4 and will be paid in 2019.
  1. Prepare the closing journal entry. (If no entry is required for a transaction/event, select "No Journal Entry Required" in the first account field. Enter your answers in thousands of dollars.)

In: Accounting

Cullumber Ltd. purchased a new machine on April 4, 2014, at a cost of $156,000. The...

Cullumber Ltd. purchased a new machine on April 4, 2014, at a cost of $156,000. The company estimated that the machine would have a residual value of $14,000. The machine is expected to be used for 10,000 working hours during its four-year life. Actual machine usage was 1,500 hours in 2014; 2,400 hours in 2015; 2,000 hours in 2016; 2,200 hours in 2017; and 1,900 hours in 2018. Cullumber has a December 31 year end.

Calculate depreciation for the machine under each of the following methods: (Round expense per unit to 2 decimal places, e.g. 2.75 and final answers to 0 decimal places, e.g. 5,275.)

(1) Straight-line for 2014 through to 2018.
2014 expense $enter a dollar amount
2015 expense $enter a dollar amount
2016 expense $enter a dollar amount
2017 expense $enter a dollar amount
2018 expense $enter a dollar amount


(2) Diminishing-balance using double the straight-line rate for 2014 through to 2018.
2014 expense $enter a dollar amount
2015 expense $enter a dollar amount
2016 expense $enter a dollar amount
2017 expense $enter a dollar amount
2018 expense $enter a dollar amount


(3) Units-of-production for 2014 through to 2018.
2014 expense $enter a dollar amount
2015 expense $enter a dollar amount
2016 expense $enter a dollar amount
2017 expense $enter a dollar amount
2018 expense $enter a dollar amount
Which method results in the highest depreciation expense over the life of the asset? Highest net income? Highest cash flow?

select a method that results in the highest depreciation expense over the life of the asset

Straight-line methodDiminishing-balance methodUnits-of-production methodAll three methods are the sameNo Impact



Which method results in the highest net income?

select a method that results in the highest net income

Straight-line methodDiminishing-balance methodUnits-of-production methodAll three methods are the sameNo Impact



Which method results in the highest cash flow?

select a method that results in the highest cash flow

Straight-line methodDiminishing-balance methodUnits-of-production methodAll three methods are the sameNo Impact

In: Accounting

NOTE: THIS IS ALL INFORMATION PROVIDED Eric Mendes and Becky Conners, each age 42, married on...

NOTE: THIS IS ALL INFORMATION PROVIDED

Eric Mendes and Becky Conners, each age 42, married on September 7, 2016. Eric and Becky will file a joint return for 2018. Eric’s Social Security number is 444-55-6667. Becky’s Social Security number is 321-21-4321. Becky adopted Mendes as her married name. They live at 4450 Emerald Street, Los Angeles, California 90032.

Eric divorced his former wife, Sara Mendes, in March of 2016. Under the divorce agreement Eric pays Sara $1,250 per month for the next 10 years or until Sara’s death, whichever comes first. During 2018, Eric made all twelve payments to her. In addition, Eric paid Sara $22,000 which is designated as being for her share of the marital property. Eric and Sara had no children. Sara’s Social Security number is 677-76-9292.

Eric’s 2018 salary is $150,000. He is an executive working for Maple Manufacturing Company. As part of his compensation package, Maple provides him with group term life insurance equal to twice his annual salary. His employer withheld $25,000 for federal income taxes and $8,500 for California income taxes.

Becky recently graduated from law school and is employed by the law firm of Davis and Davis. She received a salary of $85,000 in 2018. Her employer withheld $9,000 for federal income taxes and $4,000 for California income taxes.

Eric and Becky had $550 of interest income from Bank of America. They received a $1,900 refund on their 2017 California income tax return during the year. They itemized deductions during 2017 (itemized deductions exceeded their standard deduction by $600). During 2018 they paid $7,200 of mortgage interest and $8,000 of property taxes on their personal residence. They made charitable cash contributions of $1,800 to their church during 2018. Both spouses had health insurance the entire year and do not want to contribute to the Presidential Election Campaign.

Prepare Eric and Becky’s 2018 federal income tax return. Part of your assignment is to select the forms necessary to prepare this income tax return. Forms are available at IRS.gov

In: Accounting