Answer & Explanation:
function Temprature
NYC=[33 33 18 29 40 55 19 22 32 37 58 54 51 52 45 41 45 39 36 45 33 18 19 19 28 34 44 21 23 30 39];
DEN=[39 48 61 39 14 37 43 38 46 39 55 46 46 39 54 45 52 52 62 45 62 40 25 57 60 57 20 32 50 48 28];
%AVERAGE CALCULATION AND ROUND TO NEAREST INT
avgNYC=round(mean(NYC));
avgDEN=round(mean(DEN));
fprintf('\nThe average temperature for the month of January in New York city is %g (F)',avgNYC);
fprintf('\nThe average temperature for the month of January in Denvar is %g (F)',avgDEN);
%part B
count=1;
NNYC=0;
NDEN=0;
while count<=length(NYC)
if NYC(count)>avgNYC
NNYC=NNYC+1;
end
if DEN(count)>avgDEN
NDEN=NDEN+1;
end
count=count+1;
end
fprintf('\nDuring %g days, the temprature in New York city was above the average',NNYC);
fprintf('\nDuring %g days, the temprature in Denvar was above the average',NDEN);
%part C
count=1;
highDen=0;
while count<=length(NYC)
if NYC(count)>DEN(count)
highDen=highDen+1;
end
count=count+1;
end
fprintf('\nDuring %g days, the temprature in Denver was higher than the temprature in New York city.\n',highDen);
end
%output
check the attachment for additional Information
Define office in one sentence.
Capitalize D in define.
Sentence is one, so take away S.
Always add periods at the end of your sentences
Answer:
The two values of x are 2n*pi + pi/12 and 2n*pi -5pi/12
Explanation:
The given equation is
Sin x +√3 Cosx= √2
Upon dividing the equation by 2 we get

Sin(
)*Sinx + Cos(
)*Cosx = 
This makes the formula of
CosACosB + SinASinB = Cos(A-B)
Cos(x-
) = 
cos(x- pi/6) = cos(pi/4)
upon writing the general equation we get
x-pi/6 = 2n*pi ± pi/4
x = 2n*pi ± pi/4 -pi/6
so we will have two solutions
x = 2n*pi + pi/4 -pi/6
= 2n*pi + pi/12
and
x = 2n*pi - pi/4 -pi/6
= 2n*pi -5pi/12
Therefore the two values of x are 2n*pi + pi/12 and 2n*pi -5pi/12.