Answer:
<em>Written in Python</em>
def SumN(n):
total = 0
for i in range(1,n+1):
total = total + i
print("Total: ",total)
def SumNCubes(n):
total = 0
for i in range(1,n+1):
total = total + i**3
print("Cube: ",total)
n = int(input("User Input: "))
if n > 0:
SumN(n)
SumNCubes(n)
Explanation:
The SumN function is defined here
def SumN(n):
This line initializes the total to 0
total = 0
The following iteration compute the required sum
<em> for i in range(1,n+1):
</em>
<em> total = total + i
</em>
This line outputs the calculated sum
print("Total: ",total)
The SumNCubes function is defined here
def SumNCubes(n):
This line initializes the total to 0
total = 0
The following iteration compute the required sum of cubes
<em> for i in range(1,n+1):
</em>
<em> total = total + i**3
</em>
This line outputs the calculated sum of cubes
print("Cube: ",total)
The main starts here; The first line prompts user for input
n = int(input("User Input: "))
The next line checks if input is greater than 0; If yes, the two defined functions are called
if n > 0:
SumN(n)
SumNCubes(n)
Answer:
Ts = 413.66 K
Explanation:
given data
temperature = 20°C
velocity = 10 m/s
diameter = 5 mm
surface emissivity = 0.95
surrounding temperature = 20°C
heat flux dissipated = 17000 W/m²
to find out
surface temperature
solution
we know that here properties of air at 70°C
k = 0.02881 W/m.K
v = 1.995 ×
m²/s
Pr = 0.7177
we find here reynolds no for air flow that is
Re =
Re = 
Re = 2506
now we use churchill and bernstein relation for nusselt no
Nu =
= 0.3 + ![\frac{0.62 Re6{0.5}Pr^{0.33}}{[1+(0.4/Pr)^{2/3}]^{1/4}} [1+ (\frac{2506}{282000})^{5/8}]^{4/5}](https://tex.z-dn.net/?f=%5Cfrac%7B0.62%20Re6%7B0.5%7DPr%5E%7B0.33%7D%7D%7B%5B1%2B%280.4%2FPr%29%5E%7B2%2F3%7D%5D%5E%7B1%2F4%7D%7D%20%5B1%2B%20%28%5Cfrac%7B2506%7D%7B282000%7D%29%5E%7B5%2F8%7D%5D%5E%7B4%2F5%7D)
h =
0.3 + ![\frac{0.62*2506{0.5}0.7177^{0.33}}{[1+(0.4/0.7177)^{2/3}]^{1/4}} [1+ (\frac{2506}{282000})^{5/8}]^{4/5}](https://tex.z-dn.net/?f=%5Cfrac%7B0.62%2A2506%7B0.5%7D0.7177%5E%7B0.33%7D%7D%7B%5B1%2B%280.4%2F0.7177%29%5E%7B2%2F3%7D%5D%5E%7B1%2F4%7D%7D%20%5B1%2B%20%28%5Cfrac%7B2506%7D%7B282000%7D%29%5E%7B5%2F8%7D%5D%5E%7B4%2F5%7D)
h = 148.3 W/m².K
so
q conv = h∈(Ts- T∞ )
17000 = 148.3 ( 0.95) ( Ts - (20 + 273 ))
Ts = 413.66 K
Yea, ‘Who wants to fight with me’
Given :
Capacitor , C = 55 μF .
Energy is given by :
.
To Find :
The current through the capacitor.
Solution :
Energy in capacitor is given by :

Now , current i is given by :
![i=C\dfrac{dv}{dt}\\\\i=C\dfrac{d[603.02cos(337t)]}{dt}\\\\i=-55\times 10^{-6}\times 603.03\times 337\times sin(337t)\\\\i=-11.18\ sin(337t)](https://tex.z-dn.net/?f=i%3DC%5Cdfrac%7Bdv%7D%7Bdt%7D%5C%5C%5C%5Ci%3DC%5Cdfrac%7Bd%5B603.02cos%28337t%29%5D%7D%7Bdt%7D%5C%5C%5C%5Ci%3D-55%5Ctimes%2010%5E%7B-6%7D%5Ctimes%20603.03%5Ctimes%20337%5Ctimes%20sin%28337t%29%5C%5C%5C%5Ci%3D-11.18%5C%20sin%28337t%29)
( differentiation of cos x is - sin x )
Therefore , the current through the capacitor is -11.18 sin ( 377t).
Hence , this is the required solution .
Answer:
A) attached below
B) 743 KJ
C) 1.8983 KJ/K
Explanation:
A) Diagram of system schematic and set up states
attached below
<u>B) Calculate the amount of work received from the paddle wheel </u>
assuming ideal gas situation
v1 = v2 ( for a constant volume process )
work generated by paddle wheel = system internal energy
dw = mCv dT . where ; Cv = 0.743 KJ/kgk
= 5 * 0.743 * ( 500 - 300 )
= 3.715 * 200 = 743 KJ
<u>C) calculate the amount of entropy generated ( KJ/K )</u>
S2 - S1 = 1.8983 KJ/K
attached below is the detailed solution