Questions
for (i=0; i<n; i++) for (j=1; j<n; j=j*2)    for (k=0; k<j; k++) ... // Constant...

for (i=0; i<n; i++)

for (j=1; j<n; j=j*2)
  
for (k=0; k<j; k++)
... // Constant time operations
end for

end for

end for
Analyze the following code and provide a "Big-O" estimate of its running time in terms of n. Explain your analysis.

Note: Credit will not be given only for answers - show all your work:

(2 points) steps you took to get your answer.

(1 point) your answer.

In: Computer Science

what is Kant’s account of the false promise its relation to the first version of the...

what is Kant’s account of the false promise its relation to the first version of the categorical imperative; on what virtue is according to Aristotle

In: Psychology

Martin, Barry, and Sims each have $4,000 to contribute toward an office supply business that they...

Martin, Barry, and Sims each have $4,000 to contribute toward an office supply business that they would like to start up. They are aware that there will be stiff competition in the business district where they will be opening. The three of them want to begin the business with as little hassle as possible and with minimal overhead costs. On the other hand, they do not want to do so in a way that subjects them to unnecessary taxes or makes them more liable than they have to be for potential lawsuits based on torts or contracts. Please prepare a PowerPoint presentation discussing what the advantages and disadvantages would be to organize as a: 1) partnership, 2) corporation, and 3) limited liability company. Make a recommendation and explain why you reached your conclusions. As to the liability issue, would it make a difference whether the potential suits were based on tort or contract issues? Explaining why you reached your conclusion is just as important as the conclusions themselves.

In: Operations Management

Chemical Equilibrium gives us a snapshot of the possible interactions of potential chemical interaction of reacted...

Chemical Equilibrium gives us a snapshot of the possible interactions of potential chemical interaction of reacted or of partially reacted components of chemical. Many of our problems were hypothetical or postulated results, which (if known) give us insight into possibilities – discuss how knowing this helps us to know which reactions are most important and how this relates to utilization of fuel in combustion or assessing hypothetical pollutants at a snap shot in time.

In: Chemistry

Discuss motivational theories that impact buying behavior? CASE STUDY SITUATION You are the vice president of...

Discuss motivational theories that impact buying behavior?

CASE STUDY SITUATION You are the vice president of development for BULLET, the second largest discount retailer in the nation. The senior VP has asked you to analyze a new sales venture and determine how to build a clientele foe the new venture and for traditional BULLET stores. There are close to 2000 BULLET stores across the country, most anchoring strip malls or outdoor shopping centers. BULLET stores feature typical grocery store items along with pharmacies, apparel, home décor, books, toys, electronics, seasonal items and health and beauty sections. BULLET’S biggest competitor is BOX MART, the leading discount retailer. BULLET does not come close to the number of store locations nor the revenue that BOX MART produces each year. Aside from similar store layouts and product offerings, there are notable differences between the two discount retailers. Although product offerings are similar, BULLET has a much different image than BOX MART. BULLET is perceived to be better organized, with a more streamlined store layout. They are also more in touch with fashion trends and home décor. BULLET also markets higher quality house brands in all departments, most notably in its food and beverage departments. BULLET offers a wide variety of fresh, ready-to-eat meals that beat BOX MART’S offerings in customer ratings each year. Executives at BULLET have decided to test market a concept for a BULLET branded convenience store. The BULLET convenience store will be located away form BULLET stores and will offer fuel and the loyal BULLET customer, and also new clientele who does not usually shop at BULLET stores. They are also hoping to attract the BOX MART customer. YOUR CHALLENGE The senior VP wants you to determine how a BULLET C-store can feel like a BULLET store, rather than a typical convenience store. You are to suggest techniques tha can expose BULLET C-store customers to BULLET retail store products, ideally resulting in a larger clientele for BULLET retail stores. In addition, you need to plan the product mix the BULLET C-stores; what typical convenience store products should be sold and what other products should be sold to keep up with BULLET’S well-regarded image? Are there store services that should be offered or not?

In: Operations Management

Friedel-Crafts Alkylation is a special type of EAS reaction. The reaction involves the use of highly...

Friedel-Crafts Alkylation is a special type of EAS reaction. The reaction involves the use of highly caustic and dangerous chemicals. Why are these conditions necessary? What conditions would be required if these chemicals were not used?

In: Chemistry

Asks the user "How many parrots do you own?"         2: Reads in that many single...

Asks the user "How many parrots do you own?"

        2: Reads in that many single word names (one for each parrots) from the user and stores the names in an array.

        3: After the user has finished entering names, the program should display the list of all the parrots the user entered.

        4: then display the parrots  in alphabetical order for part 3. Note: string objects can be compared with the “<” operator, which will determine if a given string is alphabetically less than another string.

You may assume the user will own at most 50 parrots.

c++

In: Computer Science

1.“Balancing Home and Work.”Write one APA bibliographical entry and one example of an in-text citation.

1.“Balancing Home and Work.”Write one APA bibliographical entry and one example of an in-text citation.

In: Psychology

Following is the payoff table for the Pittsburgh Development Corporation (PDC) Condominium Project. Amounts are in...

Following is the payoff table for the Pittsburgh Development Corporation (PDC) Condominium Project. Amounts are in millions of dollars.

State of Nature
Decision Alternative Strong Demand S1 Weak Demand S2
Small complex, d1 8 7
Medium complex, d2 14 5
Large complex, d3 20 -9

Suppose PDC is optimistic about the potential for the luxury high-rise condominium complex and that this optimism leads to an initial subjective probability assessment of 0.8 that demand will be strong (S1) and a corresponding probability of 0.2 that demand will be weak (S2). Assume the decision alternative to build the large condominium complex was found to be optimal using the expected value approach. Also, a sensitivity analysis was conducted for the payoffs associated with this decision alternative. It was found that the large complex remained optimal as long as the payoff for the strong demand was greater than or equal to $17.5 million and as long as the payoff for the weak demand was greater than or equal to -$19 million.

  1. Consider the medium complex decision. How much could the payoff under strong demand increase and still keep decision alternative d3 the optimal solution? If required, round your answer to one decimal place.

    The payoff for the medium complex under strong demand remains less than or equal to $ ??? million, the large complex remains the best decision.
  2. Consider the small complex decision. How much could the payoff under strong demand increase and still keep decision alternative d3 the optimal solution? If required, round your answer to one decimal place.

    The payoff for the small complex under strong demand remains less than or equal to $ ??? million, the large complex remains the best decision.

In: Operations Management

In C++ write an application that calculates total retail values for 5 different shoes entered by...

In C++ write an application that calculates total retail values for 5 different shoes entered by the user.

Shoe 1 $15.50
Shoe 2 $27.30
Shoe 3 $34.50
Shoe 4 $42.11
Shoe 5 $54.25

Application must read shoe number and quantity sold for each transaction stdin, compute the total value of that sale, and add the value of that sale to a grand total for that shoe. After all data has been entered, display the total value of each of the five shoe items. Must have driver and a class, must use a switch structure to which shoes sales to update, must use a sentinel controlled loop to determine when the program should stop looping and display result.
Data members
Product price
Total sales for product(in dollars)
Member Functions
One 1 argument constructor(representing the shoe price), set the value of the data member using this argument. Getters and setters for data member, and updateTotalSales method(uses one parameter representing quantity sold and does not return a value) . must use getter and setter methods to access the fields do not access them directly. It computes the total value of the current sale by multiplying the argument passed by the shoess price. It updates the shoes total Sales data member by adding the value calculated in the previous step to the shoes existing totalSales. Must use getter and setter functions. Do not access the data members directly.

Main function
Instantiate 5 separate objects of the class Shoe, passing the appropriate argument to each constructor. The Shoe class constructor requires the price of that instance of the shoe. The prices can be hard coded numbers.
Using Sentinel controlled loop
1.   Read the shoe number and the quantity sold for one transaction.
2.   Use a switch statement to determine which Shoe objects sales to update.
3.   Call the appropriate Shoe objects updateTotalSales function.
4.   Continue loop until user enters 0 for the shoe number.
5.   After the loop is complete display each shoe objects total sales, including the dollar sign, two decimal places with a field width of 10.

Sample run
Shoe number: 2
Quantity sold: 4
Shoe number: 1
Quantity sold: 3
Shoe Number: 5
Quantity sold: 2
Shoe number: 1
Quantity sold: 2
Shoe number: 5
Quantity sold: 3
Shoe Number: 4
Quantity sold: 2
Shoe Number: 0

Total Sales
Shoe 1 : $77.50
Shoe 2: $109.20
Shoe 3: $0
Shoe 4: $84.22
Shoe 5: $271.25

In: Computer Science

1) cultures around the world tend to give mothers and fathers different roles in parenting. Describe...

1) cultures around the world tend to give mothers and fathers different roles in parenting. Describe the different socializing strategies that mothers and fathers use in raising their children.

2) List for characteristics that are generally associated with the first born child. Discuss what accounts for these differences.

3) should parents staying unhappy or conflicted in a marriage for the sake of their children?

In: Psychology

%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520class%253D%2522c1%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c1%2522%250Axml%253Alang%253D%2522EN-US%2522%253EI%253C%252Fspan%253E%253C%252Fspan%253E%253C%252Fp%253E%250A%2

%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520class%253D%2522c1%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c1%2522%250Axml%253Alang%253D%2522EN-US%2522%253EI%253C%252Fspan%253E%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520class%253D%2522c1%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c1%2522%250Axml%253Alang%253D%2522EN-US%2522%253E%253Cbr%2520%252F%253E%253C%252Fspan%253E%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520class%253D%2522c1%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c1%2522%250Axml%253Alang%253D%2522EN-US%2522%253E%253Cbr%2520%252F%253E%253C%252Fspan%253E%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520class%253D%2522c1%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c1%2522%250Axml%253Alang%253D%2522EN-US%2522%253Envestigation%2520A.%2520The%2520pith%2520ball%250AElectroscope%253C%252Fspan%253E%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c2%2522%2520xml%253Alang%253D%250A%2522EN-US%2522%253E%2520%2526nbsp%253B%2526nbsp%253B%2520%2526nbsp%253B%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2520c3%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c2%2522%2520xml%253Alang%253D%250A%2522EN-US%2522%253EThe%2520pith%2520ball%2520electroscope%2520consists%2520of%2520a%2520light%252C%2520conducting%250Apith%2520ball%2520suspended%2520from%2520a%2520support%2520by%2520means%2520of%2520an%2520insulating%250Astring.%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520class%253D%2522c1%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c1%2522%250Axml%253Alang%253D%2522EN-US%2522%253E%2526nbsp%253B%253C%252Fspan%253E%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520class%253D%2522c1%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c1%2522%250Axml%253Alang%253D%2522EN-US%2522%253E%2526nbsp%253B%253C%252Fspan%253E%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c2%2522%2520xml%253Alang%253D%250A%2522EN-US%2522%253EQ1.%2520%2526nbsp%253BA.%2520Ground%2520the%2520pith%2520ball%2520by%2520touching%250Ait.%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c2%2522%2520xml%253Alang%253D%250A%2522EN-US%2522%253E%2526nbsp%253B%2526nbsp%253B%2520%2526nbsp%253B%2526nbsp%253BB.%2520Rub%2520a%2520rubber%2520rod%2520with%2520wool%2520of%250Afur%2520and%2520bring%2520it%2520near%2520the%2520pith%2520ball%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c2%2522%2520xml%253Alang%253D%250A%2522EN-US%2522%253E%2526nbsp%253B%2526nbsp%253B%2526nbsp%253B%2526nbsp%253B%2520C.%2520Remove%2520the%2520rod%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c2%2522%2520xml%253Alang%253D%250A%2522EN-US%2522%253E%2526nbsp%253B%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c2%2522%2520xml%253Alang%253D%250A%2522EN-US%2522%253EQ2.%2526nbsp%253B%2520A.%2520Ground%2520the%2520pith%2520ball.%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c2%2522%2520xml%253Alang%253D%250A%2522EN-US%2522%253E%2526nbsp%253B%2526nbsp%253B%2526nbsp%253B%2526nbsp%253B%2520B.%2520Rub%2520a%2520glass%2520rod%2520with%2520silk%2520and%250Abring%2520it%2520near%2520the%2520pith%2520ball.%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c2%2522%2520xml%253Alang%253D%250A%2522EN-US%2522%253E%2526nbsp%253B%2526nbsp%253B%2526nbsp%253B%2526nbsp%253B%2520C.%2520Remove%2520the%2520rod%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c2%2522%2520xml%253Alang%253D%250A%2522EN-US%2522%253E%2526nbsp%253B%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c2%2522%2520xml%253Alang%253D%250A%2522EN-US%2522%253EQ3.%2526nbsp%253B%2520A.%2520Ground%2520the%2520pith%2520ball.%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c2%2522%2520xml%253Alang%253D%250A%2522EN-US%2522%253E%2526nbsp%253B%2526nbsp%253B%2526nbsp%253B%2526nbsp%253B%2520B.%2520Bring%2520a%2520negatively%2520charged%2520rod%250Anear%2520the%2520pith%2520ball.%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c2%2522%2520xml%253Alang%253D%250A%2522EN-US%2522%253E%2526nbsp%253B%2526nbsp%253B%2526nbsp%253B%2526nbsp%253B%2520C.%2520Touch%2520the%2520pith%2520ball%2520with%2520the%250Arod%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c2%2522%2520xml%253Alang%253D%250A%2522EN-US%2522%253E%2526nbsp%253B%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c2%2522%2520xml%253Alang%253D%250A%2522EN-US%2522%253EQ4.%2526nbsp%253B%2520A.%2520Charges%2520the%2520pith%2520ball%2520as%2520in%25203%252C%2520by%250Acontact.%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c2%2522%2520xml%253Alang%253D%250A%2522EN-US%2522%253E%2526nbsp%253B%2526nbsp%253B%2526nbsp%253B%2526nbsp%253B%2520B.%2520Bring%2520a%2520negatively%2520charged%2520rod%250Anear%2520the%2520pith%2520ball.%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c2%2522%2520xml%253Alang%253D%250A%2522EN-US%2522%253E%2526nbsp%253B%2526nbsp%253B%2526nbsp%253B%2526nbsp%253B%2520C.%2520Removes%2520the%2520rod.%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c2%2522%2520xml%253Alang%253D%250A%2522EN-US%2522%253E%2526nbsp%253B%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c2%2522%2520xml%253Alang%253D%250A%2522EN-US%2522%253EQ5.%2526nbsp%253B%2520A.%2526nbsp%253B%2520Charge%2520the%2520pith%2520ball%2520as%2520in%25203%252C%2520by%250Acontact.%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c2%2522%2520xml%253Alang%253D%250A%2522EN-US%2522%253E%2526nbsp%253B%2526nbsp%253B%2526nbsp%253B%2526nbsp%253B%2520B.%2526nbsp%253B%2520Bring%2520a%2520positively%250Acharged%2520rod%2520near%2520the%2520pith%2520ball.%253C%252Fspan%253E%253C%252Fp%253E%250A%253Cp%2520class%253D%2522MsoNormal%2522%253E%253Cspan%2520lang%253D%2522EN-US%2522%2520class%253D%2522c2%2522%2520xml%253Alang%253D%250A%2522EN-US%2522%253E%2526nbsp%253B%2526nbsp%253B%2526nbsp%253B%2526nbsp%253B%2520C.%2526nbsp%253B%2520Remove%2520the%250Arod.%253C%252Fspan%253E%253C%252Fp%253E%250A

In: Physics

African Americans, Hispanics, American Indians and people from India, Bangladesh, Sri Lanka and Pakistan have a...

African Americans, Hispanics, American Indians and people from India, Bangladesh, Sri Lanka and Pakistan have a higher risk of Chronic Kidney Disease. Why is this? What are the effects of Chronic Kidney Disease on the quality of life of an individual?

In: Anatomy and Physiology

Two articles describing firms’ use of a cooperative strategy: one where trust is being used as...

Two articles describing firms’ use of a cooperative strategy: one where trust is being used as a strategic asset and another where contracts and monitoring are being emphasized. What are the differences between the managerial approaches being used in the two companies? Which of the cooperative strategies has the highest probability of being successful? Why?

- No TALK ABOUT: Apple, McDonald's, Whole Food Market, Walmart or T-Mobile.

nor Plagiarism!!

Please

In: Operations Management

A 2.50 kg block on a horizontal floor is attached to a horizontal spring that is...

A 2.50 kg block on a horizontal floor is attached to a horizontal spring that is initially compressed 0.0300 m . The spring has force constant 835 N/m . The coefficient of kinetic friction between the floor and the block is 0.41 . The block and spring are released from rest and the block slides along the floor. Part A What is the speed of the block when it has moved a distance of 0.0130 m from its initial position? (At this point the spring is compressed 0.0170 m .)

In: Physics