Answer:
The code is given below in python
# Code Block 1
count = 0 # count variable
total = 0 # total variable
enter = '' # input variable
while enter != 'stop':
enter = input('Enter a grade:' )
if enter != 'stop' and enter.isdigit():
total += int(enter) # add to total value
count = count + 1 # then to the count
print float(total) / count
# Code Block 2
numbers = []
while enter != 'stop':
enter = input('Enter a grade:' )
if enter != 'stop':
numbers.append(int(enter))
print sum(numbers) / float(len(numbers))
There are lot of factors that influences race. The explanation of the term is given below.
<h3>What is the
race condition?</h3>
A race condition is known to be a type of situation that one finds to be unattractive or undesirable.
This type of condition often takes when a tool, device or system tries every possible way to carry out two or more work at the same time, but due to the the nature of the tool, device or system, the work have to be done in a sequential manner or the right steps so that there will be no error.
A common and well known example of a race condition is the light switch.
Learn more about race condition from
brainly.com/question/13445523
Answer:
a) 3.5 m
b) 14 secs
c) 1.4 secs
Explanation:
<u>a) Determine the distance the particle will travel</u>
given velocity ( final velocity ) = 5 m/s
v^2 = u^2 + 2as
s = ( v^2 - u^2 ) / 2a
= ( 5^2 - 8^2 ) / 2 ( -0.5 * 5^3/2 )
= 3.5 m
<u>b) Determine the time when v = 1m/s</u>
V = u + at
1 = 8 + ( -0.5 * 1^3/2 ) * t
∴ t = 14 secs
c) Determine the time required for particle to travel 8 m
<em>we will employ both equations above </em>
V^2 = u^2 + 2as
s = 8 m , V = unknown , u = 8 m/s back to equation
V^2 = 8^2 + 2 ( - 1/2 * V^3/2 ) * 8
∴ V^2 + 8V^3/2 - 64 = 0
resolving the above equation
V = 3.478 m/s
now using the second equation
V = u + at
3.478 = 8 + ( - 1/2 * 3.478^3/2 ) * t
hence : t = 1.4 secs
Answer:
R = 148.346 N
M₀ = - 237.2792 N-m
Explanation:
Point O is selected as a convenient reference point for the force-couple system which is to represent the given system
We can apply
∑Fx = Rx = - 60N*Cos 45° + 40N + 80*Cos 30° = 66.8556 N
∑Fy = Ry = 60N*Sin 45° + 50N + 80*Sin 30° = 132.4264 N
Then
R = √(Rx²+Ry²) ⇒ R = √((66.8556 N)²+(132.4264 N)²)
⇒ R = 148.346 N
Now, we obtain the moment about the origin as follows
M₀ = (0 m*40 N)-(7 m*60 N*Sin 45°)+(4 m*60 N*Cos 45°)-(5 m*50 N)+ 140 N-m + (0 m*80 N*Cos 30°) + (0 m*80 N*Sin 30°) = - 237.2792 N-m (clockwise)
We can see the pic shown in order to understand the question.