Questions
Infile and getline - how can I change this code to get the whole line from...

Infile and getline - how can I change this code to get the whole line from a text file? Right now it only gets the first word each time it reads. NUMBER can be any integer. This code gets strings that are in multiple lines from a text file. Some words are separated by whitespace and that makes the input wrong. It only works if there is only one word.

infile >> arrayOne[dive] >> arrayTwo[dive];

while (infile && dive< NUMBER)
{
dive++;
infile >> arrayOne[dive] >> arrayTwo[dive];
}

infile >> arrayOne[dive] >> arrayTwo[dive];
}

In: Computer Science

The primary emphasis in statutory accounting is supposedly on financial conservatism. However, some statutory techniques violate...

The primary emphasis in statutory accounting is supposedly on financial conservatism. However, some statutory techniques violate this principle. Discuss three ways in which statutory accounting is ultraconservative and two areas where the principle of conservatism is violated.

In: Accounting

There is a 95.05% chance the project below can be completed in X days or less....

There is a 95.05% chance the project below can be completed in X days or less. What is X? In the space provided below type in the values for each activity’s expected time, variance, list of critical activities, Project duration and value of X. Draw the network diagram (diagram required only in the pdf file). Activity ----- Predecessors----------- Optimistic (days)----------- Most likely (days) ------------pessimistic(days) ------A ------------none ---------------------------1 --------------------------------4 --------------------------------------- 7 ------B------------none ----------------------------2 --------------------------------2 --------------------------------------- 2 ------C---------------A-------------------------------2 --------------------------------5 --------------------------------------- 8 ------D---------------A-------------------------------3 --------------------------------4 --------------------------------------- 5 ------E--------------B,C -----------------------------4 --------------------------------6 --------------------------------------- 8 ------F--------------B,C------------------------------0---------------------------------0 --------------------------------------- 6 ------G--------------D,E -----------------------------3 --------------------------------6 --------------------------------------- 9

1. Expected value for each activity: BLANK-1

2. Variance for each activity: BLANK-2

3. Critical activities: BLANK-3

4. Project duration: BLANK-4

5. X = BLANK-5

In: Operations Management

Discuss the concept of risk as it relates to pediatrics patient satisfaction survey

Discuss the concept of risk as it relates to pediatrics patient satisfaction survey

In: Operations Management

analysis essay on "Roadblocks to laws for healthy eating and activity" Nola M. Ries MPA LLM,...

analysis essay on "Roadblocks to laws for healthy eating and activity" Nola M. Ries MPA LLM, Barbara von Tigerstrom LLB PhD

In: Psychology

For each of the following side chain interactions in a protein, give an example of two...

For each of the following side chain interactions in a protein, give an example of two amono acids that interact that way and draw a structure that illustrates the interaction.

a. Hydrophobic interaction, b. Metal ion coordination, c. Covalent bond (in the side chain), d. Hydrogen bonding, e. Salt bridge

In: Chemistry

2. Would the following transactions be part of U.S. GDP, U.S. GNP, both or neither? a....

2. Would the following transactions be part of U.S. GDP, U.S. GNP, both or neither?

a. You received dividends from a company based in Germany.

b. Colin Firth, a British citizen, earns money acting in a movie made in Hollywood.

c. You buy a Volkswagen automobile which was made in Germany.

d. An American citizen works at a Honda factory in South Carolina

In: Economics

Marketing Reflection: Analyze data sources and uses in the local, national, and global marketplaces. Evaluate various...

Marketing Reflection:

  • Analyze data sources and uses in the local, national, and global marketplaces.
  • Evaluate various methods for creating customer value.
  • Compare and contrast the ways that a company can create a brand identity.

In: Operations Management

The Cost of the Cheap Shirt Conduct some research about the working conditions and regulatory environment...

The Cost of the Cheap Shirt Conduct some research about the working conditions and regulatory environment in clothing factories in Bangladesh. Economists warn about quick fixes for wages and the imposition of U.S. safety standards on foreign factories. They offer the following figures to illustrate that the issue of labor conditions in other countries is complex. In Bangladesh, clothing factories get about $6.75 per shirt. These are the factory costs: $4.75 for the fabric and thread $1.00 for the shirt’s labels $0.38 wage costs for each shirt (workers earn $70 to $80 a month) $0.15 per shirt for laundering That leaves $0.47 per shirt for facilities, shipment, marketing, and perhaps the interest on loans. The cost of living in Bangladesh is $40 per month for rent, and food per adult is $13 per month. Milk for a child is $5 per month. Those who work in the factories are generally the main wage earners in their families because no other jobs pay as well. Given this analysis, where do you see some fixes for the safety and wage issues? What needs to be done besides instituting codes of ethics and factory and labor standards? Assume that you are a manager for a clothing firm in the United States and you are being sent to Bangladesh to select a new manufacturer for your clothing lines. Discuss some of the issues that will affect your decisions about choosing a new facility to work with.

In: Finance

2. WHERE DOES TRUTH LIE? IS IN IN THE OBJECT (on the things known) ITSELF? OR...

2. WHERE DOES TRUTH LIE? IS IN IN THE OBJECT (on the things known) ITSELF? OR IN THE SUBJECT (on the person saying it) CLAIMING IT TO BE?

A paragraph long answer please

In: Psychology

Create a query using query design. from the Clients table, display the client first name and...

Create a query using query design. from the Clients table, display the client first name and last name. From the Accounts Table, select the savings balance. Add appropriate grouping so the clients total retirement account savings balances are displayed. Add a sort so the highest total savings balances are displayed first.

In: Computer Science

Write a journal. What two agents of socialization have influenced you the most?  Can you pinpoint their...

Write a journal. What two agents of socialization have influenced you the most?  Can you pinpoint their influence on your attitudes, beliefs, values, or other orientation to life?

In: Psychology

Consider the five survey questions below from a job satisfaction survey, and indicate the levels of...

Consider the five survey questions below from a job satisfaction survey, and indicate the levels of measurement used for each question (nominal, ordinal, interval, or ratio). Briefly explain your rationale for each decision.

A. I feel I am being paid a fair amount for the work I do (Fields, 2002).



  1. Disagree very much
  2. Disagree moderately
  3. Disagree slightly
  4. Agree slightly
  5. Agree moderately
  6. Agree very much

B. My primary role within the company is:

  1. administrative.
  2. maintenance.
  3. laborer.
  4. manager.
  5. driver.


C. A reasonable amount I should be expected to contribute annually to the company's health plan is:

  1. 0 to $2,000.
  2. $2,001 to $4,000.
  3. $4,001 to $6,000.
  4. $6,001 to $8,000.
  5. $8,001 or greater.


D. Indicate the highest amount you were able to contribute to your 401k in 2017.

  1. $1,000
  2. $2,000
  3. $3,000
  4. $4,000
  5. $5,000
  6. $6,000
  7. $7,000
  8. $8,000
  9. $9,000
  10. $10,000
  11. $11,000
  12. $12,000
  13. $13,000
  14. $14,000
  15. $15,000
  16. $16,000
  17. $17,000
  18. $18,000
  19. $19,000
  20. $20,000
  21. $21,000
  22. $22,000
  23. $23,000
  24. $24,000


Reference

Fields, D. L. (2002). Taking the measure of work: A guide to validated scales for organizational research and diagnosis. Thousand Oaks, CA: Sage.

Please include the name of the person or question to which you are replying in the subject line. For example, "Tom's response to Susan's comment."

In: Operations Management

Examples, please Paired design with repeated measures Paired design with matched pairs

Examples, please

Paired design with repeated measures

Paired design with matched pairs

In: Math

Rodriguez Company pays $320,000 for real estate plus $16,960 in closing costs. The real estate consists...

Rodriguez Company pays $320,000 for real estate plus $16,960 in closing costs. The real estate consists of land appraised at $207,000; land improvements appraised at $69,000; and a building appraised at $184,000.

Required:
1. Allocate the total cost among the three purchased assets.
2. Prepare the journal entry to record the purchase.

Allocate the total cost among the three purchased assets. (Round your "Apportioned Cost" answers to 2 decimal places.)

Appraised Value Percent of Total Appraised Value x Total Cost of Acquisition = Apportioned Cost
Land
Land improvements
Building
Totals $0 0% $0.00
  • Record the costs of lump-sum purchase.

Note: Enter debits before credits.

Transaction General Journal Debit Credit
1

In: Accounting