PYTHON.
Tasks:
Assume the content of the file myData1.txt:
5
100
111
OK
55
5
55
5
The interaction of your program should be displayed in the Shell window similarly as shown below:
Task 1
What is the input file name?
myData.txt
This file cannot be opened
What is the input file name?
myData1.txt
Task 2
What is the output file name?
myResults1.txt
Task 3
The number of characters is: 15
The number of words is: 8
The number of lines is: 8
Task 4
Discarded bad data: 111, OK
Task 5
The tally sheet based on your input file is:
Number of 5’s: 3
Number of 55’s: 2
Number of 100’s: 1
Task 6
The tally sheet written to the file: myResults1.txt
Copy of the content of the file myResults1.txt is:
Number of 5’s: 3
Number of 55’s: 2
Number of 100’s: 1
In: Computer Science
Create one sql script file to complete the following. You cannot run separate SQL statements for the homework. You will also need to place a semicolon after each SQL statement, a requirement for SQL files containing multiple SQL statements
In: Computer Science
Mai Corporation was organized on January 1, 2016,During its first year, the corporation issued 40,000 shares of $50 par value preferred stock and 300,000 shares of $10 par value common stock. At December 31, the company declared the following cash dividends:
December2016 $90,000
December2017 130,000
December2018 190,000
Required:
1. Show the allocation of dividends to each class of stock, assuming that the
preferred stock is 8% and not cumulative.
2. Show the allocation of dividends to each class of stock, assuming that the
preferred stock is 9% and cumulative.
In: Accounting
Listed below is the number of movie tickets sold at the Library Cinema-Complex, in thousands, for the period from 2004 to 2016. Compute a five-year weighted moving average using weights of 0.1, 0.1, 0.2, 0.3, and 0.3, respectively. Describe the trend in yield. (Round your answers to 3 decimal places.)
| 2004 | 8.61 | |
| 2005 | 8.14 | |
| 2006 | 7.67 | |
| 2007 | 6.59 | |
| 2008 | 7.37 | |
| 2009 | 6.88 | |
| 2010 | 6.71 | |
| 2011 | 6.61 | |
| 2012 | 5.58 | |
| 2013 | 5.87 | |
| 2014 | 5.94 | |
| 2015 | 5.49 | |
| 2016 | 5.43 | |
The weighted moving averages are:
In: Statistics and Probability
Needed
At A3M Ltd equipment is depreciated at 25% p.a. straight-line for accounting purposes, but the allowable rate for taxation is 20% p.a. The tax rate is 30%.
Equipment costed $640 000 on 1 July 2013. Assuming that no equipment is purchased or sold during the years ended 30 June 2016.
Required
a) the accounting expense and tax deduction for each year ending 2014 to 2018.
b) the impact of depreciation on the calculation of current tax expense for 2017 and 2018.
c) the effect on the deferred tax asset account for 2016, 2017 and 2018.
In: Accounting
Bonita Co. is building a new hockey arena at a cost of $2,620,000. It received a downpayment of $450,000 from local businesses to support the project, and now needs to borrow $2,170,000 to complete the project. It therefore decides to issue $2,170,000 of 11%, 10-year bonds. These bonds were issued on January 1, 2016, and pay interest annually on each January 1. The bonds yield 10%. Prepare the journal entry to record the issuance of the bonds on January 1, 2016. Prepare a bond amortization schedule up to and including January 1, 2020, using the effective interest method.
In: Accounting
One objective of financial accounting is to provide relevant information for decision-making, including investment decisions by shareholders and potential shareholders. In this case, the balance sheet of LinkedIn showed a shareholders’ equity at September 30, 2016 that was much smaller than what Microsoft, after a bidding process, paid for that equity.
Discuss whether you feel that the accounting process resulted in a misleading presentation of LinkedIn’s equity at September, 30, 2016.
If you feel the accounting process could be improved, suggest a way of improving it. If you feel not improvement is feasible or desirable, explain your opinion.
In: Accounting
Accounting records for Ontario Corporation yield the following data for the year ended June 30, 2016 (assume sales returns are non-existent):
Inventory, June 30, 2015 ........................................................... $ 8,000
Purchases of inventory (on account) .............................................. 66,000
Sales of inventory-81 % on account; 19% for cash (cost $52,000) .......... 99,000
Inventory at FIFO, June 30, 2016 ................................................. 22,000
Requirements
1. Journalize Ontario's inventory transactions for the year under the perpetual system.
2. Report ending inventory, sales, cost of goods sold, and gross profit on the appropriate financial statement.
In: Finance
Indiana Co. began a construction project in 2016 with a contract price of $150
million to be received when the project is completed in 2018. During 2016, Indiana
incurred $36 million of costs and estimates an additional $84 million of costs to
complete the project. Indiana recognizes revenue over time and for this project
recognizes revenue over time according to the percentage of the project that has
been completed.
Suppose that, in 2017, Indiana incurred additional costs of $63.75 million and
estimated an additional $42.75 million in costs to complete the project. What profit
or loss will Indiana record for 2017?
In: Accounting
In 2016 the Democratic Party had a contested primary election between Hillary Clinton and Bernie Sanders. They just did so again, between Joe Biden and Bernie Sanders. This essentially split the party between a progressive wing in support of Bernie Sanders and a more centrist mainstream wing in support of Hillary Clinton then Joe Biden. How was the 2016 and 2020 primary elections indicative of this division within the Democratic party? In what ways were these Democratic candidates different and how was that illustrative of current divisions within the Democratic party?
*This is all the information*
In: Economics