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 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:
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
In: Computer Science
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 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 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.
In: Accounting
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.
In: Accounting
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 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