Python HW
Open a new Jupyter notebook
Create a new function named fibonacci() that takes one required parameter:
Following the example on the Python tutorial:
https://docs.python.org/3/tutorial/introduction.html#first-steps-towards-programming
Our implementation will have a few changes:
Return the newly generated sequence as a list.
Note
In our example we are choosing to include the initial 0 value.
Expected Output
>>> fibonacci(10) [0, 1, 1, 2, 3, 5, 8]
Task 02
In this task, you'll be asked to create a simple for-loop to loop over a simple data construct, in this case, to provide the maximum, minimum, and average length of words in a speech performing a lexicographical analysis not unlike what's used to measure reading level.
Specifications
Expected Output
>>> lexicographics('''Don't stop believing,
Hold on to that feeling.''')
(5, 3, Decimal(4.0))In: Computer Science
We really need to get this new material-handling equipment in operation just after the new year begins. I hope we can finance it largely with cash and marketable securities, but if necessary we can get a short-term loan down at MetroBank.” This statement by Beth Davies-Lowry, president of Intercoastal Electronics Company, concluded a meeting she had called with the firm’s top management. Intercoastal is a small, rapidly growing wholesaler of consumer electronic products. The firm’s main product lines are small kitchen appliances and power tools. Marcia Wilcox, Intercoastal’s General Manager of Marketing, has recently completed a sales forecast. She believes the company’s sales during the first quarter of 20x1 will increase by 10 percent each month over the previous month’s sales. Then Wilcox expects sales to remain constant for several months. Intercoastal’s projected balance sheet as of December 31, 20x0, is as follows:
|
Cash |
$ |
50,000 |
|
|
Accounts receivable |
224,000 |
||
|
Marketable securities |
20,000 |
||
|
Inventory |
154,000 |
||
|
Buildings and equipment (net of accumulated depreciation) |
667,000 |
||
|
Total assets |
$ |
1,115,000 |
|
|
Accounts payable |
$ |
205,800 |
|
|
Bond interest payable |
9,000 |
||
|
Property taxes payable |
2,400 |
||
|
Bonds payable (6%; due in 20x6) |
360,000 |
||
|
Common stock |
450,000 |
||
|
Retained earnings |
87,800 |
||
|
Total liabilities and stockholders’ equity |
$ |
1,115,000 |
|
Jack Hanson, the assistant controller, is now preparing a monthly budget for the first quarter of 20x1. In the process, the following information has been accumulated:
|
Sales salaries |
$ |
28,000 |
|
|
Advertising and promotion |
16,000 |
||
|
Administrative salaries |
28,000 |
||
|
Depreciation |
20,000 |
||
|
Interest on bonds |
1,800 |
||
|
Property taxes |
600 |
||
In addition, sales commissions run at the rate of 2 percent of sales.
PLEASE PREPARE THE FOLLOWING:
In: Accounting
Objectives:
The class files are here: https://drive.google.com/file/d/1yCCQeZCS-uLoL_CK0Et9dX-KCaokXQxR/view?usp=sharing
class MyTunes
Creates an object of type MyTunes class that partially simulate the digital jukebox TouchTunes, using a queue which holds playlist. Tests the implementation of your Queue and Jukebox classes.
From main your program:
class Jukebox
Define the class Jukebox to manage three objects of type Queue<SongEntry>. The class Jukebox manages three objects of type Queue. An instance of the class may read a file which includes the user's requests for a the name of a song to be added to a specific playlist. It will then add songs to the three playlists "favorites", "lounge", and "road trip" accordingly.
Attributes:
Methods:
A method called fillPlaylists() reads the test file and then adds songs to one of the three queues. For example, if the file contains line:
favorites,title
Then the first song found that equals the title will be placed in the favorites playlist.
class Queue<Type>
Define the parameterized class Queue which implements Iterable. Objects of type Queue manage items in a singly linked list where we can enqueue() items to the end and dequeue() items from the front of the queue.
Attributes:
Methods:
Input File Format:
The format of the "tunes.txt" input file is:
favorites,Shadows - Original road trip,Tom's Diner favorites,Take Me Away road trip,Here With Me lounge,Nuvole Bianche lounge,Luka favorites,Stoned road trip,Get Happy favorites,We Belong road trip,Let's Dance road trip,Oh What a Feeling favorites,Stairway To The Stars road trip,Separate Ways (Worlds Apart) road trip,Road Home lounge,Traffic
Output of example 1 showing non-empty queues:
Welcome! We have over 59600 in FoothillTunes store! Total number of songs in playlists: 16 Songs in each playlist: favorites: [Shadows - Original, 0:0:25, Blue Oyster Cult, classic pop and rock; Take Me Away, 0:4:32, Blue Oyster Cult, classic pop and rock; Stoned, 0:11:47, Dido, classic pop and rock; We Belong, 0:3:43, Pat Benatar, classic pop and rock; Stairway To The Stars, 0:3:46, Blue Oyster Cult, classic pop and rock] lounge: [Solo, 0:4:41, Working Week, classic pop and rock; Nuvole Bianche, 0:5:58, Ludovico Einaudi, classical; Luka, 0:3:52, Suzanne Vega, classic pop and rock; Traffic, 0:4:5, Dawn Landes, classic pop and rock] road trip: [Tom's Diner, 0:2:40, Suzanne Vega, classic pop and rock; Here With Me, 0:4:41, Dido, classic pop and rock; Get Happy, 0:6:36, Jean Knight, classic pop and rock; Let's Dance, 0:2:45, Jake Shimabukuro, folk; Oh What a Feeling, 0:3:42, Gregory Isaac, classic pop and rock; Separate Ways (Worlds Apart), 0:5:25, Journey, classic pop and rock; Road Home, 0:5:8, The String Cheese Incident, folk] Enter your the number of songs you would like to play: 7 Playing 7 number of songs... Playing song title "Shadows - Original" Playing song title "Solo" Playing song title "Tom's Diner" Playing song title "Take Me Away" Playing song title "Nuvole Bianche" Playing song title "Here With Me" Playing song title "Stoned" Checking the size of each playlist: Playlist "favorites" is 2 song(s) remaining. Playlist "lounge" is 2 song(s) remaining. Playlist "road trip" is 5 song(s) remaining. Songs in each list: favorites: [We Belong, 0:3:43, Pat Benatar, classic pop and rock; Stairway To The Stars, 0:3:46, Blue Oyster Cult, classic pop and rock] lounge: [Luka, 0:3:52, Suzanne Vega, classic pop and rock; Traffic, 0:4:5, Dawn Landes, classic pop and rock] road trip: [Get Happy, 0:6:36, Jean Knight, classic pop and rock; Let's Dance, 0:2:45, Jake Shimabukuro, folk; Oh What a Feeling, 0:3:42, Gregory Isaac, classic pop and rock; Separate Ways (Worlds Apart), 0:5:25, Journey, classic pop and rock; Road Home, 0:5:8, The String Cheese Incident, folk] Done with MyTunes.
Output of example 2 with input test file "tunes_truncated.txt" where some queues are empty when calling dequeue() method of class Queue:
Welcome! We have over 59600 in FoothillTunes store! Total number of songs in playlists: 3 Songs in each playlist: favorites: [Shadows - Original, 0:0:25, Blue Oyster Cult, classic pop and rock] lounge: [Solo, 0:4:41, Working Week, classic pop and rock] road trip: [Tom's Diner, 0:2:40, Suzanne Vega, classic pop and rock] Enter your the number of songs you would like to play: 4 Playing 4 number of songs... Playing song title "Shadows - Original" Playing song title "Solo" Playing song title "Tom's Diner" Checking the size of each playlist: Playlist "favorites" has *no* songs remaining. Playlist "lounge" has *no* songs remaining. Playlist "road trip" has *no* songs remaining. Songs in each list: favorites: [ ] lounge: [ ] road trip: [ ] Done with MyTunes.
In: Computer Science
Take Five Systems, a new start-up, is developing a new iPhone application (“app”) and provides you with the following assumptions:
Development and testing of the new app will take four months. Month five is the first month of revenue generation.
Initial monthly app sales of 5,000 downloads at a price of $2.99
Unit sales will grow at 15% per month for months six through twelve and then will be flat thereafter
The app will become obsolete and will need to be revised/replaced after month 18
Take Five Systems is concerned about the accuracy of their revenue estimates in Question 1. Specifically, they wish to use sensitivity analysis to evaluate the impact on Month 18 revenue of the following:
Variations in 2% increments between 9-21% in the growth rate of unit sales in Months 5-12 (that is, 9%, 11%,..., 19%, 21%)
Variationin500unitincrementsbetween2,500and7,500inthelevelofinitial sales (that is, 2,500, 3,000,..., 7,000, 7,500)
In: Finance
“We really need to get this new material-handling equipment in operation just after the new year begins. I hope we can finance it largely with cash and marketable securities, but if necessary we can get a short-term loan down at MetroBank.” This statement by Beth Davies-Lowry, president of Intercoastal Electronics Company, concluded a meeting she had called with the firm’s top management. Intercoastal is a small, rapidly growing wholesaler of consumer electronic products. The firm’s main product lines are small kitchen appliances and power tools. Marcia Wilcox, Intercoastal’s General Manager of Marketing, has recently completed a sales forecast. She believes the company’s sales during the first quarter of 20x1 will increase by 10 percent each month over the previous month’s sales. Then Wilcox expects sales to remain constant for several months. Intercoastal’s projected balance sheet as of December 31, 20x0, is as follows:
|
Cash |
$ |
35,000 |
|
|
Accounts receivable |
252,000 |
||
|
Marketable securities |
10,000 |
||
|
Inventory |
231,000 |
||
|
Buildings and equipment (net of accumulated depreciation) |
670,000 |
||
|
Total assets |
$ |
1,198,000 |
|
|
Accounts payable |
$ |
220,500 |
|
|
Bond interest payable |
22,500 |
||
|
Property taxes payable |
4,800 |
||
|
Bonds payable (15%; due in 20x6) |
360,000 |
||
|
Common stock |
400,000 |
||
|
Retained earnings |
190,200 |
||
|
Total liabilities and stockholders’ equity |
$ |
1,198,000 |
|
Jack Hanson, the assistant controller, is now preparing a monthly budget for the first quarter of 20x1. In the process, the following information has been accumulated:
|
Sales salaries |
$ |
45,000 |
|
|
Advertising and promotion |
25,000 |
||
|
Administrative salaries |
45,000 |
||
|
Depreciation |
15,000 |
||
|
Interest on bonds |
4,500 |
||
|
Property taxes |
1,200 |
||
In addition, sales commissions run at the rate of 2 percent of sales.
PLEASE PREPARE THE FOLLOWING:
1) Sales budget:
2) Cash receipts budget:
3) Purchases Budget
4) Cash disbursements budget:
5) Complete the first three lines of the summary cash budget. Then do the analysis of short-term financing needs in requirement (6). Then finish requirement (5).
6) Calculation of required short-term borrowing.
7) Prepare Intercoastal Electronics’ budgeted income statement for the first quarter of 20x1. (Ignore income taxes.)
8) Prepare Intercoastal Electronics’ budgeted statement of retained earnings for the first quarter of 20x1.
9) Prepare Intercoastal Electronics’ budgeted balance sheet as of March 31, 20x1. (Hint: On March 31, 20x1, Bond Interest Payable is $9,000 and Property Taxes Payable is $1,200.)
PLEASE HELP! THANK YOU!!
In: Accounting
|
Being Human, Inc., recently issued new securities to finance a new TV show. The project cost $35 million, and the company paid $2.2 million in flotation costs. In addition, the equity issued had a flotation cost of 7 percent of the amount raised, whereas the debt issued had a flotation cost of 3 percent of the amount raised. If the company issued new securities in the same proportion as its target capital structure, what is the company’s target debt-equity ratio? |
In: Finance
1. Take Five Systems, a new start-up, is developing a new iPhone application (“app”) and provides you with the following assumptions: a. Development and testing of the new app will take four months. Month five is the first month of revenue generation. b. Initial monthly app sales of 5,000 downloads at a price of $2.99 c. Unit sales will grow at 15% per month for months six through twelve and then will be flat thereafter d. The app will become obsolete and will need to be revised/replaced after month 18 Use the data provided to forecast Take Five’s monthly revenue for Months 1-18
2. Take Five Systems is concerned about the accuracy of their revenue estimates in Question 1. Specifically, they wish to use sensitivity analysis to evaluate the impact on Month 18 revenue of the following: a. Variations in 2% increments between 9-21% in the growth rate of unit sales in Months 5-12 (that is, 9%, 11%,…, 19%, 21%) b. Variation in 500 unit increments between 2,500 and 7,500 in the level of initial sales (that is, 2,500, 3,000,…, 7,000, 7,500)
could you please show me how to do question 2 on excel? Thank you
In: Finance
New Orleans Shipping. If the share price of Emaline, a New Orleans-based shipping firm, rises from $12.13 to $15.96 over a one-year period, calculate the rate of return to the shareholder given each of the following:
a. The company paid no dividends.
b. The company paid a dividend of $1.01 per share.
c. The company paid the dividend and the total return to the shareholder is separated into the dividend yield and the capital gain.
In: Finance
Oscar’s Corp. is considering starting a new business involving bicycle production. This new business involves purchases of $8 million of new equipment. This new business is anticipated to generate net income of $1.45 million per year for 6 years. The company uses straight-line depreciation to zero salvage value for tax purposes. Assuming a 28 percent tax rate calculate the project's IRR.
In: Finance
In: Operations Management