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 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:
- 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 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 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]) |
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
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?
|
In: Computer Science
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 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:
Data for adjusting journal entries on December 31:
C4-4 Part 6
6-a. Prepare an income statement.
6-b. Prepare statement of retained earnings.
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 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:
Data for adjusting journal entries on December 31:
In: Accounting
|
|
|
In: Accounting
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