Questions
How can I edit this C code to make sure that the letter P and L...

How can I edit this C code to make sure that the letter P and L would show up separately one at a time on an interval of one second on a raspberry pi?

1 #include <stdio.h>
2 #include <unistd.h>
3 #include "sense.h"
4
5 #define WHITE 0xFFFF
6
7 int main(void) {
8     // getFrameBuffer should only get called once/program
9     pi_framebuffer_t *fb=getFrameBuffer();
10     sense_fb_bitmap_t *bm=fb->bitmap;
11
12      bm->pixel[0][0]=WHITE;
13      bm->pixel[0][1]=WHITE;
14      bm->pixel[0][2]=WHITE;
15      bm->pixel[0][3]=WHITE;
16      bm->pixel[0][4]=WHITE;
17      bm->pixel[0][5]=WHITE;
18      bm->pixel[1][5]=WHITE;
19      bm->pixel[2][5]=WHITE;
20      bm->pixel[3][5]=WHITE;
21      bm->pixel[3][4]=WHITE;
22      bm->pixel[3][3]=WHITE;
23      bm->pixel[2][3]=WHITE;
24      bm->pixel[1][3]=WHITE;
25
26
27     sleep(1);
28
29
30 bm->pixel[0][0]=WHITE;
31 bm->pixel[0][1]=WHITE;
32 bm->pixel[0][2]=WHITE;
33 bm->pixel[0][3]=WHITE;
34 bm->pixel[0][4]=WHITE;
35 bm->pixel[0][5]=WHITE;
36 bm->pixel[1][0]=WHITE;
37 bm->pixel[2][0]=WHITE;
38 bm->pixel[3][0]=WHITE;
39
40
41     /*
42     void drawCFB(void);
43     drawCFB();
44     */
45
46     sleep(1);
47     freeFrameBuffer(fb);
48     return 0;
49 }
50

In: Computer Science

Find the (a) amplitude, (b) period, (c) phase shift (if any), (d) vertical translation(if any), and...

Find the (a) amplitude, (b) period, (c) phase shift (if any), (d) vertical translation(if any), and (e) range of each function. then graph the function over at least one period.

1) y=-1/4 sin(3/4x+180degrees/8)

2)y=-3+3sin1/2x

3)y=2/3cos(x=180degrees/2)

In: Advanced Math

Write a Java program to 1. read in the size of a square boolean matrix A...

Write a Java program to

1. read in the size of a square boolean matrix A

2. read in the 0-1 matrix elements

3. read in a positive integer n

4. display A^n

In: Computer Science

Solve the following IVPs and determine the interval of validity of the solution. (i)y′ = √1+x2...

Solve the following IVPs and determine the interval of validity of the solution.

(i)y′ = √1+x2 , y(0)=1

(ii)y′ =e−y(x−2), y(4)=0

In: Advanced Math

Use the substitution method to prove the solutions for the following recurrences: Recurrence Solution 1 T(n)...

Use the substitution method to prove the solutions for the following recurrences:

Recurrence

Solution

1

T(n) = T(n-1) + n

O(n­2)

2

T(n) = T(n/2) + 1

O(lgn)

3

T(n) = T(n/2) + n

ϴ(nlgn)

4

T(n) = 3T(n/2) + n

O(nlg(3)).

5

T(n) = 2T(n/2) + n2

O(n­2)

6

T(n) = 4T(n/2 + 2) + n

O(n­2)

7

T(n) = 2T(n – 1) + 1

O(2n)

8

T(n) = T(n – 1) + T(n/2) + n

O(2n)

9

T(n) = 4T(n/2) + cn.  

ϴ(n­2)

In: Computer Science

Show manual calculations to illustrate how the following operations would be performed in MATLAB. Determine the...

Show manual calculations to illustrate how the following operations would be performed in MATLAB.

Determine the result and the size of the following expression. Note that the later
arrays may depend on the definition of earlier arrays

(a) a = 6:-3:-4
(b) b = [ a’ a’ a’]
(c) c = b(1:2:3, 1:2:3)
(d) d = b(3:-2:1,: )
(e) w = [zeros(1,3) , ones(3,1)’ , 3:5’]

In: Computer Science

4. Prove that if there are two operators A, ˆ Bˆ, such that their commutator [A,...

4. Prove that if there are two operators A, ˆ Bˆ, such that their commutator [A, ˆ Bˆ] = λ where
λ is a constant. Show that (6 points)

exp[μ(Aˆ + Bˆ)] = exp(μAˆ) exp(μBˆ) exp(−μ
2λ/2)

where given an operator Xˆ; exp(tXˆ) = 1 + tXˆ +
1
2
t
2Xˆ 2 + ... +
1
n!
t
nXˆ n + ... (the usual

exponential series implemented for operators).

In: Physics

Problem 6: R simulation. Use different color lines and appropriate legend to (1) plot the density...

Problem 6: R simulation.

Use different color lines and appropriate legend to

(1) plot the density functions of χ 2 k for k = 1, 2, 3, 4, 6, 9 in one figure;

(2) plot the density functions of tk for k = 3, 5, 10, 30 and N(0, 1) distribution in one figure. Describe respectively what you observe when the degree of freedom increases.

In: Math

You are a student nurse assigned to a 57 year old male patient has come to...

You are a student nurse assigned to a 57 year old male patient has come to medical ward to have treatment due to mild to severe cramping in his abdomen and bloody stool. Your initial findings include a mildly obese man who demonstrate guarding of his abdomen especially the left lower quadrant. His vital signs are 168/98, 119,24, 38 degree Celsius and is slightly diaphoretic. He reported periodic constipation. He has had previous episodes of abdominal cramping, but this time the pain is getting worse. He denies having regular exercise and his diet consist of white bread, meat, potatoes and ice cream with fruit and nuts over it. Further assessment he complaints of being thirsty, tired and his urine output is 20 ml for the past hour and stated that his urine is usually dark in color.

I. Identify health problem of the patient. (list all of them)

II. Based on your list of problem choose 1 problem of each category and write 4 independent nursing management and 1 dependent nursing management

A.Nutrition
Problem: ______________________________

Independent Nursing Management :

1.

2.

3.

4.

Dependent Nursing Management:

1.

B.Bowel/ Elimination
Problem: ______________________________

Independent Nursing Management :

1.

2.

3.

4.

Dependent Nursing Management:

1.

B.Urinary
Problem: ______________________________

Independent Nursing Management :

1.

2.

3.

4.

Dependent Nursing Management:

1.

In: Nursing

Given the integral 1/x dx upper bound 2 lower bound 1 (a) use simpson's rule to...

Given the integral 1/x dx upper bound 2 lower bound 1

(a) use simpson's rule to approximate the answer with n=4

Formula:f(x)=1/3[f(x0)+4f(x1)+2f(x2)+...+f(xn)]Δx(keep answer to 6 decimals)

b)how large is n in order for the error of Simpsons rule for the given integral is no more than 0.000001

Formula: |Es|=(k)(b-a)^5/(180 n^4), where |f^4(x)≤k|

please show all work and steps

In: Advanced Math