Answer:
sum2 = 0
counter = 0
lst = [65, 78, 21, 33]
while counter < len(lst):
sum2 = sum2 + lst[counter]
counter += 1
Explanation:
The counter variable is initialized to control the while loop and access the numbers in <em>lst</em>
While there are numbers in the <em>lst</em>, loop through <em>lst</em>
Add the numbers in <em>lst</em> to the sum2
Increment <em>counter</em> by 1 after each iteration
Answer:
(A) Because the angle of twist of a material is often used to predict its shear toughness
Explanation:
In engineering, torsion is the solicitation that occurs when a moment is applied on the longitudinal axis of a construction element or mechanical prism, such as axes or, in general, elements where one dimension predominates over the other two, although it is possible to find it in diverse situations.
The torsion is characterized geometrically because any curve parallel to the axis of the piece is no longer contained in the plane initially formed by the two curves. Instead, a curve parallel to the axis is twisted around it.
The general study of torsion is complicated because under that type of solicitation the cross section of a piece in general is characterized by two phenomena:
1- Tangential tensions appear parallel to the cross section.
2- When the previous tensions are not properly distributed, which always happens unless the section has circular symmetry, sectional warps appear that make the deformed cross sections not flat.
54 volts
Ohms law. E= I x R
Answer:
<em>Python code is as follows:
</em>
********************************************************************************
#function to get number up to any number of decimal places
def toFixed(value, digits):
return "%.*f" % (digits, value)
print("Enter the price: ", end='', flush=True) #prompt for the input of price
price = float(input()) #taken input
totalCost = price + 0.05 * price #calculating cost
print("Total Cost after the sales tax of 5% is applied: " + toFixed(totalCost,2)) #print and output totalCost
************************************************************************************
Answer:
Answer to both the parts A and B are provided in the word document attached.
Explanation:
The explanation of the programs is provided in the attached file along with the screenshot of ATM application output.