1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
lbvjy [14]
3 years ago
10

Please write the following code in Python 3. Also please show all output(s) and share your code.

Engineering
1 answer:
maksim [4K]3 years ago
6 0

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

You might be interested in
Engineers need to be open-ended when dealing with their designs. Why?
melomori [17]
I think the answer would be A if its wrong I’m sorry
7 0
3 years ago
Technician A says independent shops are not affiliated with vehicle manufacturers, but it is easy for technicians who work in th
KatRina [158]

Answer:

b

Explanation:

i did it yeater dayajsbs

8 0
3 years ago
Determine (a) the principal stresses and (b) the maximum in-plane shear stress and average normal stress at the point. Specify t
raketka [301]

Answer:

a) 53 MPa,  14.87 degree

b) 60.5 MPa  

Average shear = -7.5 MPa

Explanation:

Given

A = 45

B = -60

C = 30

a) stress P1 = (A+B)/2 + Sqrt ({(A-B)/2}^2 + C)

Substituting the given values, we get -

P1 = (45-60)/2 + Sqrt ({(45-(-60))/2}^2 + 30)

P1 = 53 MPa

Likewise P2 = (A+B)/2 - Sqrt ({(A-B)/2}^2 + C)

Substituting the given values, we get -

P1 = (45-60)/2 - Sqrt ({(45-(-60))/2}^2 + 30)

P1 = -68 MPa

Tan 2a = C/{(A-B)/2}

Tan 2a = 30/(45+60)/2

a = 14.87 degree

Principal stress

p1 = (45+60)/2 + (45-60)/2 cos 2a + 30 sin2a = 53 MPa

b) Shear stress in plane

Sqrt ({(45-(-60))/2}^2 + 30) = 60.5 MPa

Average = (45-(-60))/2 = -7.5 MPa

5 0
3 years ago
The function below takes a single parameter, a list of numbers called number_list. Complete the function to return a string of t
makkiz [27]

Answer:

The solution code is written in Python:

  1. def convertCSV(number_list):
  2.    str_list = []
  3.    for num in number_list:
  4.        str_list.append(str(num))
  5.    
  6.    return ",".join(str_list)
  7. result = convertCSV([22,33,44])
  8. print(result)

Explanation:

Firstly, create a function "convertCSV" with one parameter "number_list". (Line 1)

Next, create an empty list and assign it to a new variable <em>str_list</em>. (Line 2)

Use for-loop to iterate through all the number in the <em>number_list</em>.(Line 4). Within the loop, each number is converted to a string using the Python built-in function <em>str() </em>and then use the list append method to add the string version of the number to <em>str_list</em>.

Use Python string<em> join() </em>method to join all the elements in the str_list as a single string. The "," is used as a separator between the elements (Line 7) . At the end return the string as an output.

We can test the function by calling the function and passing [22,33,34] as an argument and we shall see "22,33,44" is printed as an output. (Line 9 - 10)

6 0
3 years ago
You can help build a safe work environment by using your knowledge of violence prevention strategies to spot what?
Ostrovityanka [42]

Answer:

warning signs

Explanation:

give directions on your surroundings

4 0
3 years ago
Other questions:
  • The type of current that flows from the electrode across the arc to the work is called what?
    5·1 answer
  • An approach to a signalized intersection has a saturation flow rate of 1800 veh/h. At the beginning of an effective red, there a
    15·1 answer
  • Tech A says that proper footwear may include both leather and steel-toed shoes. Tech B says that when working in the shop, you o
    15·1 answer
  • The difference in quantity between the add and full marks on an engine oil dipstick is typically
    5·1 answer
  • Find the value of P(-1.5≤Z≤2)
    12·1 answer
  • ____________ is the organization that oversees environmental compliance.
    14·1 answer
  • PLS :(((( HELP HELPPPP
    13·1 answer
  • What is the definition of insert view and why do we use it
    10·1 answer
  • Planetary gears require the armature to be offset via a gear housing that holds the starter drive.
    12·2 answers
  • Briefly explain the term soil sampling and outline its importance in building engineering works.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!