Questions
Using C language 0. (3pts.) Using opendir() and readdir(), open the current directory and output all...

Using C language

0. (3pts.)
Using opendir() and readdir(), open the current directory and output all filenames until there are no more. Include a main that does this below.

1. (4pts.)
Parse the dirent struct to see if an entry is a directory or a file. If it is a directory, prepend "./" to the filename before printing it out. Include a main that does this below.

2. (3pts.)
Open a file handle to each file, use lseek to determine the file's size in bytes and print out the file's size in bytes next to its name. Include a main that does this below.

EX. (3pts.)
Add a color formatting element. Print out executable binaries in bold red, regular files in light green, directories in light blue and anything else in white. Be careful - changing the console printout color is a durable operation that is global in scope, so once you change the color, anything printed from anywhere in your Process will be in in that color. It is a good practice to always presume the color is incorrectly set before you print and to set it to what you want before you print anywhere (especially in informational or error outputs). You will also need to find a way to determine if a file is executable or not

In: Computer Science

Prepare Trial Balance: Nov 1. Reimbursed graham's business automobile expense for 1,000 kilometers at $1.00 per...

Prepare Trial Balance:

Nov 1. Reimbursed graham's business automobile expense for 1,000 kilometers at $1.00 per kilometer

Nov 2. Received $9,300 cash from Elite Corporation for computer services rendered

Nov 5. Purchased $1,920 of computer supplies for cash from Abbott Office Products

Nov 8. Billed Fostek Co. $8,700 for computer services rendered

Nov 13. Notified by Alamo Engineering Co. that Echo's bid of $7,500 for an upcoming project was accepted

Nov 18. Received $3,750 from Decker Company againts the bill dated October 28

Nov 22. Donated $1,500 to the United Way in the company's name

Nove 24. Completed work fr Alamo Engineering Co. and sent a bill for $7,500

Nov 25. Sent another bill to Decker Company for the past due amount of $2,700

Nov 28. Reimbursed Graham's business expense for $1,200 kilometers at $1.00 per kilometer

Nov 30. Paid Carly Smith for 14 days work

Nov 30. Withdrew $3,600 cash from the business for personal use

In: Accounting

On January 1, 2009, Jack Zheng bought a $1 million whole life insurance contract on his...

  1. On January 1, 2009, Jack Zheng bought a $1 million whole life insurance contract on his life from HRD Life Insurance Co.  Answer each of the following questions pertaining to that contract. Note that the dates are highly important.  Be sure to name any policy provision that is relevant to your answer.
  1. On December 21, 2012, Jack committed suicide.  Will HRD Life pay the claim when the beneficiary files it?  Why or why not?  
  2. Jack was murdered by a stranger on December 1, 2012.  The insurer discovers that Jack gave false information about his health on his application.
    1. What is required for false information to render an insurance contract voidable?
    2. Will Jack’s contract be voidable?  Explain why or why not, referencing any relevant policy provisions.
  3. When Jack bought his policy he told the agent he was age 22.  In fact, he was age 28.  If he died in a boat accident on June 3, 2011:
    1. Would the insurer pay the death benefit?  Explain why or why not?  
    2. If the insurer would pay, name and describe the provision that would govern the payment; explain whether the payment would have been the “face value of the policy,” “more than the face value,” or “less than the face value.”
  4. On June 1, 2015, Jack left for a cruise to Patagonia.  When he returned on August 31, 2015, he found a premium notice stating that the premium on his policy was due on July 1, 2015.  Even though the grace period has passed, if Jack has elected to add a certain option to his policy the policy would remain in force until he returned from the cruise.  Name and describe that option.  
  5. When Jack submitted his application, he also tendered a check for the first premium and received an insurability premium receipt.  If Jack was hit by a truck and killed the next day, explain whether and under what circumstances the company would pay his beneficiary.  Give your legal reasoning as to why or why not.

In: Accounting

On January 1, 2009, Jack Zheng bought a $1 million whole life insurance contract on his...

On January 1, 2009, Jack Zheng bought a $1 million whole life insurance contract on his life from HRD Life Insurance Co. Answer each of the following questions pertaining to that contract. Note that the dates are highly important. Be sure to name any policy provision that is relevant to your answer.

A. On December 21, 2012, Jack committed suicide. Will HRD Life pay the claim when the beneficiary files it? Why or why not?

B. Jack was murdered by a stranger on December 1, 2012. The insurer discovers that Jack gave false information about his health on his application.

i. What is required for false information to render an insurance contract voidable?

ii. Will Jack’s contract be voidable? Explain why or why not, referencing any relevant policy provisions.

C. When Jack bought his policy he told the agent he was age 22. In fact, he was age 28. If he died in a boat accident on June 3, 2011:

i. Would the insurer pay the death benefit? Explain why or why not?

ii. If the insurer would pay, name and describe the provision that would govern the payment; explain whether the payment would have been the “face value of the policy,” “more than the face value,” or “less than the face value.”

D. On June 1, 2015, Jack left for a cruise to Patagonia. When he returned on August 31, 2015, he found a premium notice stating that the premium on his policy was due on July 1, 2015. Even though the grace period has passed, if Jack has elected to add a certain option to his policy the policy would remain in force until he returned from the cruise. Name and describe that option.

E. When Jack submitted his application, he also tendered a check for the first premium and received an insurability premium receipt. If Jack was hit by a truck and killed the next day, explain whether and under what circumstances the company would pay his beneficiary. Give your legal reasoning as to why or why not.

In: Operations Management

46. Several years ago, students from the FSC Aviation Department traveled to Elmira-Corning Regional Airport (ELM)...

46. Several years ago, students from the FSC Aviation Department traveled to Elmira-Corning Regional Airport (ELM) to participate in the airport's Air Service Development (ASD) Project. While at ELM, the students stayed at a local hotel and ate at local restaurants. What type of economic impact is this?

  1. Direct
  2. Indirect
  3. Redacted
  4. Trickle down

47 According to the FAA General Aviation Airport: A National Asset Report (ASSET I) Appendix B,- Farmingdale's Republic Airport is classified as a/an_________ airport

  1. Basic
  2. Local
  3. Natio.nal
  4. Non-primary commercial service airport
  5. Regional

48 Which of the following airlines are not governed by the Railway Labor Act of 1926

  1. American Airlines
  2. Delta Airlines
  3. Federal Express
  4. Flying Tiger
  5. United Parcel Service (UPS) (page 226)

49 According to Joseph A. McCartin, author of Collison Course; Ronald Reagan, The Air Traffic Controllers, and the Strike that Changed America, the union that represented air traffic controllers during the strike of 1981 was

  1. American Air Traffic Controllers Trade Union (AATCTU)
  2. National Air Traffic Controllers Association (NATCA)
  3. Professional Air Traffic Controllers Organization (PATCO)
  4. United Air Traffic Professions (UATP)

50 Which of the following legislative acts forever changed the relationship between labor unions and airline management?

  1. Airline Deregulation Act of 1978
  2. Civil Aeronautics Act of 1938
  3. Department of Transportation Act of 1966
  4. Federal Aviation Act of 1958

In: Economics

What role does the mission statement play in the planning process? a.)Links strategy and operations b.)...

What role does the mission statement play in the planning process?

a.)Links strategy and operations

b.) Sets purpose of business

c.) Guides day to day activities

d.) Sets company direction

2.Given what you know about Twitter’s plans, which one of Twitter’s goals listed is a strategic goal?

a.) Increase data licensing revenue by 50%

b.) Increase internal capacity to meet client requests for engineered predictive models and algorithms on massive scale data sets by 20% by the start of the second quarter

c.)Strengthen the core user base usage by time spent on timeline, content generation, and mobile engagement

d.) Update the profile experience on the iPhone with an increased focus on bios, tweets, and photos

3.For Twitter to achieve its mission and accomplish its strategic goals, it must also set tactical goals. Which one of the goals listed is an example of a tactical goal Twitter might set?

a.)Acquire new users globally with a focus on stimulating primary demand in Latin America

b.) Launch #Twitternovela engagement campaign in Latin American markets: users can see Tweets from telenovela celebrities and create and tweet their own #twitternovela story with Vines

c.) Increase number of user timeline views 15% year-over-year

d.)Secure agreements with 5 Latin American telenovela actors and actresses who will participate in #Twitternovela by February 1

In: Operations Management

Topic: Media activity Now you are employed as the public relations officer of an information technology...

Topic: Media activity

Now you are employed as the public relations officer of an information technology company. The company is going to promote a new product at early in November 2020. Being the PR officer, your assignment is to propose a press conference for the promotion of the new product at the end of October 2020.

Your assignment should include:

  1. Introduction/background of the company (under 100 words)
  2. Brief description of the new product with news value (under 70 words)
  3. Illustration of the press conference including the objectives, target audiences and the three stages from preparation to after the event. (about 730 words in essay forms)
  4. Conclusion (under 100 words)
  5. (Whatever the product is, it must be new and technological)

In: Economics

NET PRESENT VALUE EXERCISE You are investing in a container ship to move your products across...

NET PRESENT VALUE EXERCISE

You are investing in a container ship to move your products across the Atlantic Ocean.   Building the ship will cost $2.5 billion, and after operating costs it is expected to bring in $350 million per year for the next 10 years, after which it will have no salvage value. What is the NPV of this project? Assume k = 14%

(Be sure to show your work)

YEAR

NET CASHFLOW

0

($2.5 B)

1

$350 M

2

$350 M

3

$350 M

4

$350 M

5

$350 M

6

$350 M

7

$350 M

8

$350 M

9

$350 M

10

$350 M

What do your results mean? Should you proceed with this project? How would country risk change your considerations?


** Please Answer, Time Sensitive**

In: Finance

Prepare journal entries to record the following transactions involving the short-term securities investments of Krum Co.,...

Prepare journal entries to record the following transactions involving the short-term securities investments of Krum Co., all of which occurred during year 2017.

On August 1, paid $76,000 cash to purchase Houtte's 12% debt securities ($76,000 principal), dated July 30, 2017, and maturing January 30, 2018 (categorized as available-for-sale securities).

On October 30, received a check from Houtte for 90 days' interest on the debt securities purchased in transaction a. (Use 360 days in a year. Do not round your intermediate calculations.)

In: Accounting

Follow this link to the Wikipedia page describing the Asian Financial Crisis (I have crossed referenced...

Follow this link to the Wikipedia page describing the Asian Financial Crisis (I have crossed referenced the data on Wikipedia for accuracy and have found the information to be correct).

Many of the Asian Tigers (Singapore, Malaysia, South Korea, Thailand, Hong Kong, Taiwan, etc.) blamed the downturn of their economies on currency traders. Malaysia and Thailand took drastic measures to clamp down on trading in the Thai baht and the Malaysian ringgit as well as foreign direct investment in their nations.

Do you think an international policy restricting currency trading amongst arbitraguers and speculators will prevent monetary problems in the future?

Do you think it is ethical for global speculators to bet against domestic currencies (i.e. American speculators betting against the dollar) possibly sending entire economies into a tailspin?

Or do you think currency speculators perform a valuable service by correcting overvalued and undervalued currencies?

In: Economics