Questions
Implement function get_contact(contacts, name) that returns a string. The contacts and the name parameter are both...

Implement function get_contact(contacts, name) that returns a string. The contacts and the name parameter are both type string. This function checks for the name string in the contacts string and returns that person’s contact information. If the person is not found, the function returns, “name not in contact”. Assume input is always valid. Assume the same name is not repeated in contacts.

[You may use split(), range(), len() ONLY and no other built-in function or method]


Examples:

              contacts = “Frank 703-222-2222 Sue 703-111-1111 Jane 703-333-3333”

              name = “Sue”

              print(get_contact(contacts, name))

              returns:

              703-111-1111

              name = “Sam”

print(get_contact(contacts, name))

              returns:

              name not in contact

In: Computer Science

A common argument from contrarians of the human impact on global warming about the increase in...

A common argument from contrarians of the human impact on global warming about the increase in CO2 levels of the atmosphere is that the increase in carbon dioxide by humans is only a small percentage of the total sources of emitted CO2. In other words, the argument is that humans cannot be the cause of the increase in warming of the climate since the added emissions is a small percentage of what is added to the atmosphere from natural forces like volcanoes. In your response, address the following: What are the natural carbon sources and sinks? How does the emission of carbon by humans affect this balance? Why is this argument short-sighted of the feedback mechanisms built into our ecosystem? How would you explain to this contrarian that his argument is missing a larger picture?

In: Physics

Write a program that performs the following two tasks: Reads an arithmetic expression in an infix...

Write a program that performs the following two tasks:

  1. Reads an arithmetic expression in an infix form, stores it in a queue (infix queue) and converts it to a postfix form (saved in a postfix queue).
  2. Evaluates the postfix expression.

Use the algorithms described in class/ lecture notes. Use linked lists to implement the Queue and Stack ADTs. Using Java built-in classes will result in 0 points. You must use your own Stack and Queue classes (my code is a good starting point). Submit the code + example runs to validate your code. Submit UML chart to show the program design.

TO ANSWERER: Please give a clear, complete, and detailed program in Java. Thank you!

In: Computer Science

Write a brief description of a vulnerability found in the scan, including the operating system on...

  1. Write a brief description of a vulnerability found in the scan, including the operating system on which it was found, its risk factor, and its CVSS scores.
  2. Are the results of default scans different than the credentialed scan?
  3. Why might that be?
  4. What types of vulnerabilities might an attacker without any credentials be able to identify and exploit?
  5. This was a simple three computer LAN. How much more complicated would this process be for 100 computers? What about an enterprise with 10,000 computers on their LAN/WAN?
  6. Consider a cloud-hosted Infrastructure as a Service (IaaS) environment with many new, internet-accessible systems regularly being built and brought online. What advantages or challenges might there be with regard to vulnerability management in the cloud?

In: Computer Science

Patient A - has been seen in clinic often. Does not have a job or income....

Patient A - has been seen in clinic often. Does not have a job or income. Is on a state-funded medical insurance. Patient B - is a single parent who works two part time jobs to make ends meet. Neither job allows them to qualify for health insurance. Patient states they are concerned about the cost of their visit and the only reason they visited the clinic is because their boss sent them home because of their cough and they were told that they can not return to work without a doctor?s note. - Both patients present to the clinic with a cough, tightness in chest, difficulty breathing and a slight fever. As a healthcare provider you have determined that both patients are experiencing a bout of bronchitis, but there might be an underlying heart condition that has not been previously detected. You notice that there is only a slightly elevated blood pressure, but patient does have a high BMI that registers near obese levels. Both patients might also be pre-type II diabetic based on age and weight, but further testing would be needed to confirm. 1. Address the following questions in your post and response posts: A. Would both of these patients receive the same level of treatment? B. Would both patients receive the same testing? C. Do you think it is important to know the patient?s financial and insurance status prior to treatment and examination?

In: Nursing

The Drug Company developed a new sleeping pill. The drug is called Star and was approved...

The Drug Company developed a new sleeping pill. The drug is called Star and was approved by the FDA in 2016. In 2017 the company began to notice problems with this drug. People who were prescribed Star reported feeling sleepy during the next day and developing a dependence on this drug. The company reacted immediately and stopped selling Star near the end of 2017. In the last six months of 2018, the company was sued by 1,000 people who experienced grogginess and dependency reaction to the sleeping pill. At the end of 2018, the company’s attorneys believe there is a 60% chance the company will need to make payments in the range of $1,000 to $5,000 to settle each claim. At the end of 2019, while none of the cases have been resolved, the company’s attorneys now believe there is an 80% chance the company will need to make payments in the range of $2,000 to $7,000 to settle each claim. In 2020, 400 claims were settled at a total cost of $1.2 million. Based on this experience, the company believes 30% of the remaining cases will be settled for $3,000 each, 50% will be settled for $5,000 and 20% will be settled for $10,000 each. The company is in the process of the first-time adoption of IFRS and needs to report under US GAAP and IFRS, as required by IFRS 1. Using US GAAP and IFRS, show what journal entries would be required in 2017, 2018, 2019 and 2020.

In: Accounting

Sunshine Company is a calendar year accrual-basis taxpayer and is in its first year of operations....

Sunshine Company is a calendar year accrual-basis taxpayer and is in its first year of operations. Sunshine Company had the following income, expense, and loss items for the current year:

Sales

$650,000

Corporate dividend (from 5% owned corporation)

60,000

Municipal bond interest

25,000

Long-term capital gain

0

Short-term capital loss

(8,000)

Cost of goods sold

320,000

Depreciation

65,000

Nondeductible fines

4,000

Advertising

7,000

Utilities

6,000

Rent

5,000

Furthermore, Sunshine’s liabilities (all recourse) increased from $0 on 1/1 to $300,000 on 12/31 of the current year.

  1. Assume that Sunshine Company is owned by Alvin as a sole proprietorship. Alvin received $2,400 per month ($28,800 in total) from Sunshine Company as an owner’s draw. Additionally, Alvin took $55,000 out of Sunshine Company near the end of the year as a partial distribution of profits. (11 points)
    1. Calculate the net business income of Sunshine Company/Alvin that would be reported on Schedule C of Alvin’s Form 1040.
    2. How much of the $2,400 per month ($28,800 total) and the $55,000 distribution would Alvin include as taxable income on his Form 1040?
    3. What amount of Alvin’s income will be subject to self-employment tax?
    4. Note that you do not need to complete Schedule C or other forms, but these form will be a useful guide in completing this portion of the assignment.                       

In: Accounting

Meganol Company is a calendar year accrual-basis taxpayer and is in its first year of operations....

Meganol Company is a calendar year accrual-basis taxpayer and is in its first year of operations. Meganol Company had the following income, expense, and loss items for the current year:

Sales

$650,000

Corporate dividend (from 5% owned corporation)

60,000

Municipal bond interest

25,000

Long-term capital gain

0

Short-term capital loss

(8,000)

Cost of goods sold

320,000

Depreciation

65,000

Nondeductible fines

4,000

Advertising

7,000

Utilities

6,000

Rent

5,000

Furthermore, Meganol's liabilities (all recourse) increased from $0 on 1/1 to $300,000 on 12/31 of the current year.

  1. Assume that Meganol Company is owned by Thomas as a sole proprietorship. Thomas received $2,400 per month ($28,800 in total) from Meganol Company as an owner’s draw. Additionally, Thomas took $55,000 out of Meganol Company near the end of the year as a partial distribution of profits. (11 points)
    1. Calculate the net business income of Meganol Company/Thomas that would be reported on Schedule C of Thomas Form 1040.
    2. How much of the $2,400 per month ($28,800 total) and the $55,000 distribution would Thomas include as taxable income on his Form 1040?
    3. What amount of Thomas's income will be subject to self-employment tax?
    4. Note that you do not need to complete Schedule C or other forms, but these form will be a useful guide in completing this portion of the assignment.                       

In: Accounting

Scenic Flights provides 3 hour sightseeing flights over the Eastern Sea Board along the Greet Ocean...

Scenic Flights provides 3 hour sightseeing flights over the Eastern Sea Board along the Greet Ocean Road near Lorne Victoria. The average flight has 20 passengers on board. Each passenger pays $300 for a 2 hour scenic flight. The business averages 90 flights each year based on current demand over the weekend – Saturday and / or Sunday dependent on demand. Each flight requires two pilots who are each paid $500 per flight and two flight attendants who receive $200 each per flight. Pilots and flight attendants are employed on a casual basis only receiving payment when flights operate. Other variable costs include: inflight passenger refreshments costing $30 per passenger and fuel which costs $800 per flight. Total annual fixed costs are $150,000.

Calculate income and variable costs and contribution margin of each scenic flight.

Calculate the number of scenic flights needed to break even.

Scenic Flights would like to increase current profits by 40 percent. Calculate the number of additional flights required to meet this financial goal.

Discuss whether this increased profit target is realistic under current conditions and possible assumptions and limitations of the “cost / volume / profit model” at such higher volume levels. (word limit 40)

In: Accounting

Analysts expect Walmart Inc. to have earnings per share of $5.60 for the coming year (year...

Analysts expect Walmart Inc. to have earnings per share of $5.60 for the coming year (year 1). Walmart intends to invest heavily in its online platform in the near term and therefore plans to retain and reinvest 80% of its earnings for the next three years (years 1, 2 and 3). For the next two years (years 4 and 5), retention and reinvestment is anticipated to decrease, with Walmart expected to retain 60% of its earnings. After that (year 6 onwards) the retention rate is expected to drop to 40% and remain that way. Walmart’s new investments in online shopping are expected to generate a return of 15% per year. Walmart’s equity cost of capital is estimated to be 9%.

a. Using the information provided above, estimate Walmart’s share price today.

Suppose the retention rate estimate for year 6 onwards given above is not credible and you therefore ignore it (estimates prior to year 5 are still valid). Instead, you expect Walmart’s 1- year forward price to earnings ratio in year 5 (i.e. PE ratio based on year 5 price and year 6 expected earnings) to be 24.5 (the midpoint between the S&P 500 historical average of 16 and Walmart’s current PE ratio of 33).

b. Use this information to come up with another estimate of Walmart’s share price.

In: Finance