Answer:
Not having enough money to pay to get it fixed
Explanation:
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:
B) 2.22
Explanation:
In a first step, the system will look in cache number 1. If it is not found in cache number 1, then the system will look in cache number 2. Finally (if not in cache 2 also) the system will look in main memory.
The average access time will take into consideration success in cache 1, failure in cache number 1 but success in cache number 2, failure in cache number 1 and 2 but success in main memory.
Mathematically we can write it into the following equation :

Where AAT is the average access time
H1,H2 and Hm are the hit rate of cache 1,cache 2 and main memory respectively.
T1,T2 and Tm are the access time of cache 1, cache 2 and main memory respectively
Hm = 1


Therefore, option b) is the correct.
Answer:
a) 2.18 m/s^2
b) 9.83 m/s
Explanation:
The flywheel has a moment of inertia
J = m * k^2
Where
J: moment of inertia
k: radius of gyration
In this case:
J = 144 * 0.45^2 = 29.2 kg*m^2
The block is attached through a wire that is wrapped around the wheel. The weight of the block causes a torque.
T = p * r
r is the radius of the wheel.
T = m1 * g * r
T = 18 * 9.81 * 0.6 = 106 N*m
The torque will cause an acceleration on the flywheel:
T = J * γ
γ = T/J
γ = 106/29.2 = 3.63 rad/s^2
SInce the block is attached to the wheel the acceleration of the block is the same as the tangential acceleration at the eddge of the wheel:
at = γ * r
at = 3.63 * 0.6 = 2.81 m/s^2
Now that we know the acceleration of the block we can forget about the flywheel.
The equation for uniformly accelerated movement is:
X(t) = X0 + V0*t + 1/2*a*t^2
We can set a frame of reference that has X0 = 0, V0 = 0 and the X axis points in the direction the block will move. Then:
X(t) = 1/2*a*t^2
Rearranging
t^2 = 2*X(t)/a


It will reach the 1.8 m in 3.6 s.
Now we use the equation for speed under constant acceleration:
V(t) = V0 + a*t
V(3.6) = 2.81 * 3.6 = 9.83 m/s