Questions
Write a program to ask three options to the user and continue until user selects option...

Write a program to ask three options to the user and continue until user selects option 3.

The first two options prompt a user to enter a string of numbers separated by spaces which is a 2by2 matrix. Do addition and subtraction on the input matrices when user selects 1 and 2.

You must write functions for matrix addition, subtraction and print. You may use the following function str_to_mlist to convert string to a list.

code example is given:

def str_to_mlist(m_str):
"""Converts a string separated by spaces to a list

Parameters
----------
m_str : str, required
Input string separated by spaces
Returns
-------
list
Numbers
"""
    return m_str.split()

A sample run of the code looks like this:

Enter an option
1.Add two matrices
2.Subtract two matrices
3.Quit
1
Enter four numbers separated by spaces and press enter:3 4 -10 3
3 4
-10 3
Enter four numbers separated by spaces and press enter:8 9 0 -2
8 9
0 -2
Your result is:
11 13
-10 1
Enter an option
1.Add two matrices
2.Subtract two matrices
3.Quit
2
Enter four numbers separated by spaces and press enter:1 0 0 1
1 0
0 1
Enter four numbers separated by spaces and press enter:0 -1 -1 0
0 -1
-1 0
Your result is:
1 1
1 1
Enter an option
1.Add two matrices
2.Subtract two matrices
3.Quit
3

In: Computer Science

Determine the running time of each of the algorithms below. For questions 2a. and 2b., you...

Determine the running time of each of the algorithms below. For questions 2a. and 2b., you may determine the running time line-by-line (see Lecture 2, slide No. 8). For questions 2c – 2f, you may determine the running time by focusing on the basic operation of the algorithm.

a,sum = 0; for (i=1; i<=n; i++) sum += n;

b. Algorithm maxVal (numbers, n) currentVal ← numbers [0] for i ← 1 to n − 1 do if numbers [i] > currentVal then currentVal ←A[i] { increment counter i } return currentVal

c. Algorithm prefix1(X, n) //Input array X of n integers //Output array A of prefix averages of X A ← new array of n integers for i ← 0 to n − 1 do s ←X[0] for j ← 1 to i do s ←s + X[j] A[i] ←s / (i + 1) return A

d. Algorithm prefix2(X, n) //Input array X of n integers //Output array A of prefix averages of X A ← new array of n integers s ← 0 for i ← 0 to n − 1 do s ←s + X[i] A[i] ←s / (i + 1) return A

e. Algorithm SumTripleArray(X, n) //Input triple array X[][][] of n by n by n integers //Output sum of elements of X s ← 0 for i ← 0 to n − 1 do for j ← 0 to n − 1 do for k ← 0 to n − 1 do s ←s + X[i][j][k] return s

f. sum = 0; for( i = 0; i < n; i++) for( j = 0; j < n * n; j++) sum++;

In: Computer Science

Product(Facebook Inc.) Remember the brand is wrapped around the product and products can be tangible or...

Product(Facebook Inc.)
Remember the brand is wrapped around the product and products can be tangible or intangible.
a) Describe fully the services provided by Facebook Inc. to consumers (B2C) and businesses (B2B).
Explain why Facebook Inc. product is either tangible or intangible?

For example, for Frito Lays Inc. some of the product types they sell are
potato chips, corn chips, and tortilla chips. For social media companies, there are different types of services.
b) Discuss where you think Facebook Inc. products are in the product life cycle and explain why.
c) Identify the corporate (parent) brand for Facebook Inc. and master brands and include pictures of the logos.   
The parent brand includes the words Company, Corporation, Inc., LLC etc. Sometimes one of the master brands might also include the parent brand name, but without the Inc., Company, Corporation etc. For example, Facebook Inc. and Facebook.
d) Discuss if Facebook Inc. strategy is multi-product branding, multi branding, or private branding and fully explain why based on what you observed and the concepts discussed in the textbook. Include pictures.  
e) Discuss and give examples of Facebook Inc. line extensions or brand extensions. Include pictures.
f) Identify the number of monthly active users and the percent of internet users reached for Facebook Inc.

In: Operations Management

Revisit Shneiderman’s 8 Golden Rules and answer the following questions. Which rules still apply? Which rules...

Revisit Shneiderman’s 8 Golden Rules and answer the following questions.

  1. Which rules still apply?
  2. Which rules apply but require modification?
  3. Do any rules no longer apply?
  4. Do we need new rules for Mobile Apps?

PreviousNext

In: Computer Science

Keep a record of your use of the mass media-television, internet, facebook, gaming, movies, etc.-including your...

Keep a record of your use of the mass media-television, internet, facebook, gaming, movies, etc.-including your reason for using these sources.   Then take the role of a sociologist and write about how you might have been socialized by the media you used. What norms and values were you exposed to? How did they affect you? Which other agents of socialization (besides media) influenced your use of mass media (did peers or other groups/entities entice you?

In: Psychology

In a detailed paragraph please write about the history of covid 19 . Please be as...

In a detailed paragraph please write about the history of covid 19 .

Please be as detailed as possible from how this virus has started and evolved to where it is today.

Thank you

IMPORTANT: If you are going to write please make sure your writing is neat, legible, and easy to read. Please write in print (not cursive). Thank you

In: Nursing

Traversal tree program

Traversal tree program

In: Computer Science

Venn Diagram It is much easier to use Venn Diagrams to proof the DeMorgan's Law. Please...

Venn Diagram

It is much easier to use Venn Diagrams to proof the DeMorgan's Law. Please briefly explain Venn diagrams and Sets.

In: Computer Science

Below is a short list provided by DuPont of common ethical issues in the workplace. Choose...

Below is a short list provided by DuPont of common ethical issues in the workplace. Choose at least three issues and explain what would be a “wrong” expression of that scenario and solve it with a “right” way to solve that scenario.

For example: Mercedes claimed her hair appointment as a company expense. A “wrong” way to handle the situation would be to approve the expense and not confront the employee on the unrelated business expense. A “right” way to solve the issue would be to meet with Mercedes one-on-one to hear her reasoning in qualifying it as an expense. If the expense did not pertain to her work duties, then politely explaining how hair appointments are not considered business-related expenses and she will not be reimbursed for the expense.

Antitrust
Bribes and Kickbacks
Confidential Information
Conflicts of Interest
Expense Reports
Gifts and Entertainment
Harassment
Insider Trading
Misstatement/Falsifying Company Documents
Misuse of Company Assets
Records and Information Management
Responsible Communication
Retaliation and Speaking Up
Sales--Revenue Recognition
Social Media
Third Party Risk
Safety

In: Operations Management

describe the following in detail: a) A Breakout Box b) A Protocol Analyser

describe the following in detail:

a) A Breakout Box

b) A Protocol Analyser

In: Mechanical Engineering

[1] Briefly, what is the difference between: 1- Buffering & Spooling. 2- Synchronous & Asynchronous I/O....

[1] Briefly, what is the difference between:

1- Buffering & Spooling.

2- Synchronous & Asynchronous I/O.

3- CPU-bound & I/O-bound jobs.

4- Multiprogramming & Timesharing.

5- Logical & Physical addresses.

6- User & Monitor modes in Operating System.

[2] (i) Define Timesharing.

(ii) In a one processor system, there is an interrupt clock which is set to a “time slice Q”, that is, every Q an interrupt occurs to stop the process. There is only one I/O device in the system which is interrupted when the process needs an I/O. There are 3 processes A, B, C.

Process A executes an I/O interrupt every T units of time.

Process B executes an I/O interrupt every 2T units of time.

Process C executes an I/O interrupt every 3T units of time.

(a) Which of the above processes will benefit the most and which is not when Q = T.

Explain your answer

(b) Which of the above processes will benefit the most and which is not when Q = 2T.

Explain your answer

(a) Which of the above processes will benefit the most and which is not when Q = 3T.

Explain your answer

What is the best value should Q takes for good performance ? explain your answer in full.

In: Computer Science

CAN I HAVE A 200 WORD EXPLANATION FOR THE FOLLOWING QUESTION. Analyse the security of Lamport’s...

CAN I HAVE A 200 WORD EXPLANATION FOR THE FOLLOWING QUESTION.

Analyse the security of Lamport’s OLP algorithm with the properties of hash function

In: Computer Science

On January 1, NewTune Company exchanges 17,360 shares of its common stock for all of the...

On January 1, NewTune Company exchanges 17,360 shares of its common stock for all of the outstanding shares of On-the-Go, Inc. Each of NewTune’s shares has a $4 par value and a $50 fair value. The fair value of the stock exchanged in the acquisition was considered equal to On-the-Go’s fair value. NewTune also paid $44,650 in stock registration and issuance costs in connection with the merger.

Several of On-the-Go’s accounts’ fair values differ from their book values on this date (credit balances in parentheses):

Book Values Fair Values
Receivables $ 44,250 $ 41,300
Trademarks 117,250 277,750
Record music catalog 66,000 186,750
In-process research and development 0 261,000
Notes payable (54,750 ) (48,350 )

Precombination book values for the two companies are as follows:

NewTune On-the-Go
Cash $ 62,000 $ 50,250
Receivables 125,000 44,250
Trademarks 441,000 117,250
Record music catalog 873,000 66,000
Equipment (net) 344,000 108,000
Total Assets $ 1,845,000 $ 385,750
Accounts payable $ (150,000 ) $ (43,500 )
Notes payable (378,000 ) (54,750 )
Common stock (400,000 ) (50,000 )
Additional paid-in capital (30,000 ) (30,000 )
Retained earnings (887,000 ) (207,500 )
Total liabilities and equities $ (1,845,000 ) $ (385,750 )

1. Assume that this combination is a statutory merger so that On-the-Go’s accounts will be transferred to the records of NewTune. On-the-Go will be dissolved and will no longer exist as a legal entity. Prepare a postcombination balance sheet for NewTune as of the acquisition date.

NEWTUNE COMPANY AND ON-THE-GO, INC.
Post-Combination Balance Sheet
January 1, 20XX
Assets Liabilities and Equity
Cash $67,600 Accounts payable $193,500
Receivables 166,300 Notes payable 426,350
Trademarks 718,750 Common stock 469,440
Record music catalog 1,059,750 Additional paid-in capital 783,910
In-process research and development 261,000 Retained earnings 887,000
Equipment (net) 452,000
Goodwill 34,800
Total assets $2,760,200 Total liabilities and equities $2,760,200

2. Assume that no dissolution takes place in connection with this combination. Rather, both companies retain their separate legal identities. Prepare a worksheet to consolidate the two companies as of the combination date.

NEWTUNE COMPANY AND ON-THE-GO, INC.
Consolidation Worksheet
January 1, 20XX
Consolidation Entries
Accounts Newtune Co On-the-Go, Inc. Debit Credit Consolidated Totals
Cash $17,350 $50,250 $67,600
Receivables 125,000 44,250 2,950 166,300
Investment in On-the-Go 868,000
Trademarks 441,000 117,250 160,500 718,750
Record music catalog 873,000 66,000 120,750 1,059,750
In-process research and development 261,000 261,000
Equipment (net) 344,000 108,000 452,000
Goodwill 34,800 34,800
Total assets $2,668,350 $385,750 $2,760,200
Accounts payable $150,000 $43,500 $193,500
Notes payable 378,000 54,750 6,400 426,350
Common stock 469,440 50,000 50,000 469,440
Additional paid-in capital 783,910 30,000 30,000 783,910
Retained earnings 887,000 207,500 207,500 887,000
Total liabilities and equities $2,668,350 $385,750 $870,950 $2,950 $2,760,200

In: Accounting

Develop a 25 questionnaire Survey question on the topic "the Impact of Qualifications and Experience on...

Develop a 25 questionnaire Survey question on the topic "the Impact of Qualifications and Experience on Promotional Opportunities.

In: Operations Management

Explain Maslow’s hierarchy of needs. What does it tell us about employee motivation? Cite an example...

Explain Maslow’s hierarchy of needs. What does it tell us about employee motivation? Cite an example of what a company does to provide motivation for each of the levels within the hierarchy?

I believe having a diverse workforce is very valuable,as diversity is much needed in today's world.When in business you have people to be able to meet all needs which may require language, nationality, socioeconomic status, gender, religion, or sexual orientation.Is it a challenge for human resource managers yes.Having to learn and understand everyone's background and coming to an understanding with what works best for everyone to work together.I believe these challenges are overcome by open door policies and communication.If you are interviewing probably and knowing your teams weak and strong needs you are able to bring in the right fit to make everything balance in the work place.I also believe open door leaves room for employees and employers to discuss things properly without confrontation and understanding core values.

What is your reply about that post?

In: Operations Management