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:
969.68N
Explanation:
d₁=0.04 m A₁=
d₂=0.02 m A₂=
Q=1.2m³/min Q=1.2/60=0.02m³/s
using continuity equation
Q₁=A₁v₁
v₁=Q₁/A₁=0.02/0.00125=16m/s
Q₂=A₂v₂
v₂=Q₂/A₂=0.02/0.00031=64.5m/s
Force on the nozzle=F_{outlet}-F_{inlet}
= 1289.68-320
=969.68N
Explanation:
Step1
Factor of safety is the number that is taken for the safe design of any component. It is the ratio of failure stress to the maximum allowable stress for the material.
Step2
It is an important parameter for design of any component. This factor of safety is taken according to the environment condition, type of material, strength, type of component etc.
Step3
Different material has different failure stress. So, ductile material fails under shear force. Ductile material’s FOS is based on yield stress as failure stress as after yield point ductile material tends to yield. Brittle material’s FOS is based on ultimate stress as failure stress.
The expression for factor of safety for ductile material is given as follows:
Here, is yield stress and is allowable stress.
The expression for factor of safety for brittle material is given as follows:
Here, is ultimate stress and is allowable stress.
Answer:
The S. I unit of current is Amphere