Questions
7. Write a C program to generate a 16kHz PWM signal that has 40% duty cycle...

7. Write a C program to generate a 16kHz PWM signal that has 40% duty cycle using Timer2 of an ATMega8 microcontroller.  


8. Consider a push button switch SW0 connected to pin INT0 external interrupts of an ATMega8 AVR. 8 LEDS are connected to port PB0-PB7 on the same AVR. These LEDS are connected such a lit LED displays that the output port is on logic level 1. On start-up, TASK1 is executed and continue indefinitely. If the push-button switch SW0 is pressed, TASK1 is paused and TASK2 is carried out after which TASK1 is resumed.

? TASK1- A roll action is performed using the LEDs: The first LED is lit and roll down to the last LED then back to the first LED. This operation is done indefinitely.

? TASK2- ALL the LEDs blink five (5) times.

In: Electrical Engineering

A political candidate wishes to determine if endorsing increased social spending is likely to decrease her...

A political candidate wishes to determine if endorsing increased social spending is likely to decrease her popularity (α = .05). She has access to data on the popularity of several other candidates who have endorsed increased spending. The data were available both before and after the candidates announced their positions on the issue. The data are as follows:

Popularity rating

Participant

Before

After

1

42

43

2

41

45

3

50

56

4

52

54

5

58

65

6

32

29

7

39

46

8

42

48

Will we need a one- or two-tailed hypothesis test?

State your null hypothesis

State your alternative hypothesis

Provide the SPSS output for your test and identify (circle or highlight) the t-obtained and the p-value

Did you reject or fail to reject the null hypothesis?

What can you conclude?

Calculate the 95 confidence interval for the “Before” mean

Calculate Cohens D

In: Math

In the following problems provide a complete explanation of why it is true(1) Letnbe an integer....

In the following problems provide a complete explanation of why it is true(1) Letnbe an integer. Justify the following statements.(a) The last digit ofnis even if and only ifnis divisible by 2.(b) The last two digits ofnare divisible by 4 if and only ifnis divisible by 4.(c) The last three digits ofnare divisible by 8 if and only ifnis divisible by 8.(d) The lastkdigits ofnare divisible by 2kif and only ifnis divisible by 2k.(2) Letnbe an integer. Justify the following statements.(a) The integernis divisible by 3 if and only if the sum of the digits is divisible by 3.(b) The integernis divisible by 9 if and only if the sum of the digits is divisible by 9.(3) What is the last nonzero digit at the end of 10! ? What is the last nonzero digit at the endof 100! ? What is the last nonzero digit at the end of 1,000,000! ? Describe a procedure forfinding the last non-zero digit at the end ofn! for anyn. Use that procedure to find thelast non-zero digit for the factorial of your student id number

In: Math

4. A Physician orders 40 mL of an IV solution containing ampicillin to run in 30...

4. A Physician orders 40 mL of an IV solution containing ampicillin to run in 30 minutes with a microdrop infusion set. This is to be followed by 500 mL of NS to infuse at 50 drops per minute with an infusion set of 20 gtt/mL. a) What is the flow rate for the ampicillin solution? b) What is the total infusion time for the two IV solutions?

In: Nursing

A train starting at noon, travels north at 40 miles per hour. Another train starting from...

A train starting at noon, travels north at 40 miles per hour. Another train starting from the same point at 2 PM travels east at 50 miles per hour. Find, to the nearest mile per hour, how fast the two trains are separating at 3 PM. How fast the trains are separating after long time?

In: Math

] How much weight do you have to invest in KLM in order to earn the...

]

How much weight do you have to invest in KLM in order to earn the least amount of risk possible, given the following data?

KLM's expected return is 12% and its standard deviation is 50%

FGH's expected return is 10% and its standard deviation is 40%

The two assets have a covariance of 0.1.

28.57%

71.43%

39.02%

30%

In: Finance

Suppose there are two countries – Home and Foreign – that produce only coffee and sugar....

Suppose there are two countries – Home and Foreign – that produce only coffee and sugar. It takes home workers three hours to produce a bag of coffee; and four hours to produce a bag of sugar. Foreign country is less productive – their workers spend seven hours to make a bag of coffee and a half of a day (twelve hours!) to eventually produce a bag of sugar.

1. Which country has an absolute advantage in coffee? Sugar? Explain intuition in 1-2 brief sentences

2. Which country has a comparative advantage in coffee? Sugar? Explain intuition in 1-2 brief sentences

3. Suppose Foreign country made a technical innovation which improved productivity there by one-third. In other words, foreign workers now spend one-third less time producing a bag of sugar than previously. How does your answer for part b) change?

4. Inspired by sugar producers, Foreign country created packaging technology that allowed them to decrease time to produce a bag of coffee by an hour. How does you answer to part b) change after both improvements?

5. The flow of history was exceptionally unsuccessful for Home country – it was colonized, and home worker morale decreased. As a result, Home country lost most of the mechanical innovations and their productivity become three times slower (i.e. both production times were tripled). Likewise, Foreign country kept all improvements discussed in the previous parts. How do your answers for both parts a) and b) change?

In: Economics

[Please show all work - thanks] Suppose an agent has $100,000 today that he wants to...

[Please show all work - thanks]

Suppose an agent has $100,000 today that he wants to save for 10 years. Compare the following two savings plans.

Bank A offers the following alternative:

For the first $50,000 the agent obtains 8% p.a. (per annum) for 10 years. For the other amount he obtains 4% p.a. for the first four years. Then he obtains 1% p.a.

Bank B offers the following alternative:

The interest in year 1 is 2%, in year 2 is 4%, in year 3 is 8%, in year 4 is 20%, then for years 5 to 10 the agent obtains 3% p.a.

For both plans, interest payments are reinvested.

(a) The agent maximizes the amount at t=10. Which plan is better? How much more can he spend at t=10, if he chooses the better one?

(b) Suppose bank B wants to match the offer of bank A. Interest rates for years 2 to 10 are as above. What interest rate for the first year must bank B offer the agent so that he gets the same amount as from bank A? [4p]

In: Finance

A company is considering two mutually exclusive expansion plans. Plan A requires a $40 million expenditure...

A company is considering two mutually exclusive expansion plans. Plan A requires a $40 million expenditure on a large-scale integrated plant that would provide expected cash flows of $6.39 million per year for 20 years. Plan B requires a $13 million expenditure to build a somewhat less efficient, more labor-intensive plant with an expected cash flow of $2.91 million per year for 20 years. The firm's WACC is 11%.

  1. Calculate each project's NPV. Enter your answers in millions. For example, an answer of $10,550,000 should be entered as 10.55. Do not round intermediate calculations. Round your answers to two decimal places.

    Plan A:     $   million

    Plan B:     $   million

    Calculate each project's IRR. Round your answers to one decimal place.

    Plan A:       %

    Plan B:       %

  2. By graphing the NPV profiles for Plan A and Plan B, determine the crossover rate. Round your answer to one decimal place.

      %

  3. Calculate the crossover rate where the two projects' NPVs are equal. Round your answer to one decimal place.

      %

  4. Is NPV better than IRR for making capital budgeting decisions that add to shareholder value?

    -Select-YesNoItem 7

In: Finance

Mr. Franklin is a 60-year-old patient with a history of a thrombotic cerebrovascular accident two years...

Mr. Franklin is a 60-year-old patient with a history of a thrombotic cerebrovascular accident two years ago. After the stroke he started with seizure attacks. He has been suffering from hypertension for the last ten years and ulcerative colitis since last year. He currently takes lisinopril, hydrochlorothiazide, aspirin, carbamazepine, and a low dose of prednisone.

Mr. Franklin has been suffering from epigastric pain, sensation of fullness, and occasional nausea for the last six months. This time, he was brought to the ER because, while he was talking to his son, he had a dizzy spell and fell to the floor. He is conscious and is complaining of severe epigastric pain. He began with mild abdominal pain two days after he started taking a new cycle of prednisone for his colitis, around seven days ago. The pain increases when he eats or drinks something. He is also complaining of suffering from pyrosis, malaise, and dizziness, and he has noticed that his feces are dark.

The patient was a heavy alcohol drinker until he had the stroke. He is a cigarette smoker since he was 20 years old. His mother suffered from Alzheimer's disease and died of colon cancer, and his father died of cirrhosis of the liver.

  • Abdomen: Pain on palpation on epigastric region
  • SOMA: Right hemiplegia and hyperreflexia
  • Integumentary system: Pallor, diaphoresis, coldness
  • Cardiovascular system: Tachycardia. Blood pressure 70/50 mmHg. Radial pulse 110.
  • Digestive system: Tenderness of epigastric region. Rectal exam showed melena.
  • Neurologic system: The patient is conscious and well oriented to time, place, and person. Right hemiplegia and hyperreflexia

Respond to the following

  • Identify and differentiate the symptoms from the signs in this patient.
  • Did you find any remarkable detail in the personal and social history of our patient that can help to make the diagnosis?
  • What results do you expect to find in the tests ordered?
  • What are some future complications the patient is at risk of developing?

In: Nursing