Questions
Write a program that creates a file called "data.dat" in the current directory. Prompt the user...

Write a program that creates a file called "data.dat" in the current directory. Prompt the user for five numbers, and write them, one at a time, on both the screen and into the file. Close the file, then open it again for reading only, and display the contents on the screen. Handle error conditions that may occur.

Please Need this to be done in PERL. Thanks

In: Computer Science

Walsh trading company started on 2018, its first year of operations. Here are all the business...

Walsh trading company started on 2018, its first year of operations. Here are all the business transactions occurred:
Nov.30 Walsh Trading Company Issued common stock and raised $42,000 cash from the owners to start the business .
Nov.30 A check was written to Pay office rent of Dec, $1,000.
Nov.30 Purchased office furniture, filing cabinets from Davidson office supply Company at a cost of $5,000. A cash down payment of $2,000 was made by check and the balance to be paid in three equal installments due Dec.31, Jan.31 and Feb. 29.
Nov.30 purchased a microcomputer system from A Computer Store, for $2,500 by check.
Dec. 1 Purchased office supplies From Lim Supplies Company on account, $1,600. Cash will be paid at the end of the month.
Dec. 2 Purchased merchandise to be sold from X Trading Company on account, $6,500.Cash will be paid at the end of the month.
Dec. 2 Sold merchandise to Douglas Company with a price $1,000 on account, cash will be collected within 20 days. The cost of merchandise sold was $600.
Dec. 3 Purchased merchandise on account from Floyd Co., $4,000, terms FOB shipping point, 2/10, n/30.
Dec. 4 Purchased merchandise on account from Kramer Co., $8,500, terms FOB destination, 1/10, n/30.
Dec. 4 Sold merchandise on account to C. F. Howell Co., list price $4,000, trade discount 30%, terms 2/10, n/30. The cost of the merchandise sold was $1,125.
Dec. 5 Purchased office supplies for cash, $150.
Dec. 6 Returned merchandise purchased on Dec.4 from Kramer Co., $1,000.
Dec.12 Paid Floyd Co. on account for purchase of Dec.3, less discount.
Dec.13 Paid Kramer Co. on account for purchase of Dec.4, less return of Dec.6 and discount.
Dec.14 Received cash on account from sale of Dec.4 to C. F. Howell Co., less discount.
Dec.16 Sold merchandise on account to American Express, $2,450. The cost of the merchandise sold was $980.
Dec.17 Sold merchandise on account to Comer Co., $3,480, terms 2/10, n/30. The cost of the merchandise sold was $1,400.
Dec.18 Sold merchandise for cash, $4,350. The cost of the merchandise sold was $1,750.
Dec.19 Received merchandise returned by Comer Co. from sale on Dec.17, $1,480.The cost of the returned merchandise was $600.
Dec.21 Received cash from Douglas Company $1,000
Dec.22 Walsh Trading Company paid a dividend of $1,000 cash to its owners.
Dec.25. Received cash from American Express sales of Dec. 16,
Dec.29 paid office rent for next year $1,200.
Dec.30 paid the following: utilities expense, $325; miscellaneous expense, $75.
Dec.31 paid all that need to be paid as of this date.
Instructions:
1. Journalize each transaction in a two-column journal.
2. Post the journal to the ledger (T-account), extending the month-end balances to the appropriate balance columns after each posting.
3. Prepare a balance sheet for Nov.
4. Prepare a trial balance as of Dec.31
5. Prepare the necessary adjusting journal entries.
Use straight-line method for the depreciation of property (5 years); wages are paid in the beginning of every month ($900 for Dec.) Supplies on hand on December 31 are $900.
6. Determine the balance of the accounts affected by the adjusting entries and prepare the adjusted trial balance.
7. Prepare the appropriate closing entries for the company and a post-closing trial balance. (Income tax rate 15%)
8.Prepare the balance sheet, the statement of owner’s equity and the income statement of 2018 for the company.
9. Prepare the statement of cash flows of 2018 for the company.
  

In: Accounting

What is the  impact of The Opioid Crisis in America?

What is the  impact of The Opioid Crisis in America?

In: Economics

how does immigration effect america

how does immigration effect america

In: Economics

How did WWll transform America?

How did WWll transform America?


In: Economics

Communicate effectively on the topic of healthcare in America.

Communicate effectively on the topic of healthcare in America.

In: Operations Management

The list of individuals from which a sample is actually selected is called the sampling frame....

The list of individuals from which a sample is actually selected is called the sampling frame. Ideally, the sampling frame should list every individual in the population, but in practice this is often difficult. A sampling frame that leaves out part of the population is a common source of undercoverage. In the following questions select all choices that apply; to receive credit for the question you must select all the correct choices and only the correct choices.

Question 1. A pollster wants to select a random sample of households in a particular community. The pollster randomly selects a sample of households in the community from the community telephone directory available in the public library. What households are omitted from this sampling frame?

1Households that connect to the internet with their phone line.

2Households that possess only cellphones Households with a second line for the fax machine.

3Households that have moved into the community since the most recent community telephone directory was printed.

4Households with unlisted numbers. Households with more than one line. Poor households (cannot afford a phone)

5Households without telephones.

Question 2. What types of people do you think are most likely to live in the omitted households selected in question 1?

1These people will probably be underrepresented in the sample. lower income people (cannot afford a phone)

2people who choose not to list their numbers people who choose not to have phones

3people who graduated from UNC-Chapel Hill

4jobless people who have moved into the community to look for employment since the most recent community telephone directory was printed

5people who drive hybrid automobiles high income people

Question 3. It is usual in telephone surveys to use random dialing equipment that selects the last four digits of a telephone number at random after being given the land-line exchange (the first three digits; note that cell phone exchanges differ from land-line exchanges). Which of the households you selected in Question 1 above will be included in this sampling frame by random digit dialing?

1Households that possess only cellphones Poor households (cannot afford a phone)

2Households with unlisted numbers

3Households without telephones

4Households with land-line telephones that have moved into the community since the most recent community telephone directory was printed.

In: Statistics and Probability

Question 5 0/1 point (graded) The following is the full path to a homework assignment file...

Question 5

0/1 point (graded)

The following is the full path to a homework assignment file called "assignment.txt": /Users/student/Documents/projects/homeworks/assignment.txt.

Which line of code will allow you to move the assignment.txt file from the “homeworks” directory into the parent directory “projects”?

mv assignment.txt

mv assignment.txt .

mv assignment.txt ..

mv assignment.txt /projects incorrect

Answer

Incorrect:

Try again. This code does not provide enough information about where to move the file. You need to specify a relative or full path to the location where you want to move the file to.

Question 9

0/1 point (graded)

The source function reads a script from a url or file and evaluates it. Check ?source in the R console for more information.

Suppose you have an R script at ~/myproject/R/plotfig.R and getwd() shows ~/myproject/result, and you are running your R script with source('~/myproject/R/plotfig.R').

Which R function should you write in plotfig.R in order to correctly produce a plot in ~/myproject/result/fig/barplot.png?

ggsave('fig/barplot.png'), because this is the relative path to the current working directory.

ggsave('../result/fig/barplot.png'), because this is the relative path to the source file ("plotfig.R"). incorrect

ggsave('result/fig/barplot.png'), because this is the relative path to the project directory.

ggsave('barplot.png'), because this is the file name.

Question 12

1 point possible (graded)

Which of the following meanings for options following less are not correct?

(Hint: use man less to check.)

-g: Highlights current match of any searched string

-i: case-insensitive searches

-S: automatically save the search object

-X: leave file contents on screen when less exits.

Question 13

1 point possible (graded)

Which of the following statements is incorrect about preparation for a data science project?

Select ALL that apply.

Always use absolute paths when working on a data science project.

Saving .RData every time you exit R will keep your collaborator informed of what you did.

Use ggsave to save generated files for use in a presentation or a report.

Saving your code in a Word file and inserting output images is a good idea for making a reproducible report.

In: Computer Science

1.Historians divide Colonial America into three distinct regions. Compare and contrast these three different areas and...

1.Historians divide Colonial America into three distinct regions. Compare and contrast these three different areas and discuss why each region developed in a unique way.

2. Compare and contrast the society that developed in Colonial America with European society at this same time. What historical factors might explain the differences between the two societies?

3. indentured servant

In: Chemistry

Amanda keeps bees to produce honey. Each hive produces $350 worth of honey each month. The...

Amanda keeps bees to produce honey. Each hive produces $350 worth of honey each month. The table below shows Amanda’s marginal cost of tending each bee hive and her private marginal benefit, which is equal to the market value of the honey each hive produces.

Marginal Cost and Marginal Benefit

Quantity (hives) MCprivate MBprivate MBexternal MBsocial
1 $50 $350 $   $  
2 150 350
3 250 350
4 350 350
5 450 350

Instructions: Enter your answers as a whole number.

a. What is "private quantity" of hives for Amanda to tend?

hive(s)

Now suppose that each of Amanda’s bee hives also provides pollination services to surrounding farms and that these services are worth $100 per hive per month.

b. Fill in the external marginal benefit (MBexternal) and the social marginal benefit (MBsocial) columns in the table above.

c. What is the socially efficient number of hives for Amanda to tend if all costs and benefits are considered?

hive(s)

In: Economics