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
A masonry facade consisting of 3,800 square feet is to be constructed for a building. The total cost per worker hour is estimate
lana66690 [7]

Answer:

Days: 6.9444 days

Production rate: 547.2035 ft²/s

Explanation:

the solution is attached in the Word file

Download docx
6 0
2 years ago
¿Cuándo se formarán cristales en una mezcla que se está evaporando?
Georgia [21]
Answer - La cristalización ye un procesu químicu pol cual a partir d'un gas, un líquidu o una disolución, los iones, átomos o molécules establecen enllaces hasta formar una rede cristalina, la unidá básica d'un cristal. La cristalización emplegar con bastante frecuencia en química para purificar una sustancia sólida.
5 0
3 years ago
What is the composition, in atom percent, of an alloy that consists of 4.5 wt% Pb and 95.5 wt% Sn?
jeka57 [31]

Answer: Option A is correct -- 2.6 at% Pb and 97.4 at% Sn.

Explanation:

Option A is the only correct option -- 2.6 at% Pb and 97.4 at% Sn. While option B, which is 7.6 at% Pb and 92.4 at% Sn. and option C, which is 97.4 at% Pb and 2.6 at% Sn. and option D, which is 92.4 at% Pb and 7.6 at% Sn. are wrong.

6 0
3 years ago
Engineers create a new metal that is stronger than steel but much lighter. This material is also significantly cheaper than what
zysi [14]

The best step for the engineers to make next is option D. Begin to design an airplane using this metal.

<h3>What is the metallic is plane parts?</h3>

Aluminum and its alloys are nevertheless very famous uncooked substances for the production of business planes, because of their excessive electricity at exceedingly low density. Currently, excessive-electricity alloy 7075, which includes copper, magnesium and zinc, is the only used predominantly withinside the plane industry.

The solution is D, due to the fact even as it's far crucial to marketplace the fabric and ensure humans are inquisitive about buying, they first want to attempt to layout aircraft the usage of this fabric. There isn't anyt any use promoting an aircraft constituted of this material_ if a aircraft can not be built.

Read more about the aircraft:

brainly.com/question/5055463

#SPJ1

7 0
2 years ago
When a variable is stored in memory, it is associated with an address. To obtain the address of a variable, the &amp; operator c
liubo4ka [24]

Answer:

Explanation:

1) C program file addressOfScalar.c

#include <stdio.h>

int main()

{

//intialize a char variable, print its address and the next address

char charvar = 'a';

printf("address of charvar = %p\n", (void *)(&charvar));

printf("address of charvar - 1 = %p\n", (void *)(&charvar - 1));

printf("address of charvar + 1 = %p\n", (void *)(&charvar + 1));

//intialize a int variable, print its address and the next address

int intvar = 1;

printf("address of intvar = %p\n", (void *)(&intvar));

printf("address of intvar - 1 = %p\n", (void *)(&intvar - 1));

printf("address of intvar + 1 = %p\n", (void *)(&intvar + 1));

}

In C programming language, an int variable takes 4 bytes of memory. So any arithmetic on integer address, always considers it as 4 bytes of data. So intvar-1 refers to a location 4 bytes before intvar's address and intvar+1 refers to 4 bytes after intvar's address.

3 0
3 years ago
Other questions:
  • Suppose that the president of a small island nation has decided to increase government spending by constructing three beach reso
    11·1 answer
  • Write a modular program that finds the equation, area, and circumference of a circle, given the coordinates of the center of the
    11·1 answer
  • If a building is too humid, what harmful substance may be stored there?
    13·2 answers
  • Which of the following do pumps provide to a fluid power system?
    8·1 answer
  • Water is contained in a rigid vessel of 5 m3 at a quality of 0.8 and a pressure of 1 MPa. If the pressure is reduced to 270.3 kP
    9·1 answer
  • Explain why surface temperature increases when two bodies are rubbed against each other. What is the significance of temperature
    13·1 answer
  • Air is compressed in a well insulated compressor from 95 kPa and 27 C to 600 kPa and 277 C. Use the air tables; assume negligibl
    11·1 answer
  • What is the fastest motorcycle in the world ?
    7·2 answers
  • QUESTION<br> Which of the following would assembler do an ideal automated assembly line?
    8·1 answer
  • What is acid mine drainage
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!