Answer:
<h2>Please click above answer. </h2>
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)
<h2>
Answer:</h2>
7532V
<h2>
Explanation:</h2>
For a given transformer, the ratio of the number of turns in its primary coil () to the number of turns in its secondary coil () is equal to the ratio of the input voltage () to the output voltage () of the transformer. i.e
= ----------------(i)
<em>From the question;</em>
= number of turns in the primary coil = 8 turns
= number of turns in the secondary coil = 515 turns
= input voltage = 117V
<em>Substitute these values into equation (i) as follows;</em>
=
<em>Solve for </em><em>;</em>
= 117 x 515 / 8
= 7532V
Therefore, the output voltage (in V) of the transformer is 7532
Answer:
A vehicle is considered to be legally parked if it is parked 20 feet (6 m) or more from a pedestrian crosswalk or a marked or unmarked intersection.
Explanation:
Hello!
I obtained the provided data from the New York State Driver's Manual. I wish it was useful to help you.
Success in your homework!