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
Neporo4naja [7]
3 years ago
13

PYTHON:In this lab the completed program should print the numbers 0 through 10, along with their values multiplied by 2 and by 1

0. You should accomplish this using a for loop instead of a counter-controlled while loop.InstructionsWrite a for loop that uses the loop control variable to take on the values 0 through 10.In the body of the loop, multiply the value of the loop control variable by 2 and by 10.Execute the program and verify that the output is correct.GradingWhen you have completed your program, click the "Grade" button to record your score.CODE GIVEN:# NewMultiply.py - This program prints the numbers 0 through 10 along# with these values multiplied by 2 and by 10.# Input: None# Output: Prints the numbers 0 through 10 along with their values multiplied by 2 and by 10.head1 = "Number: "head2 = "Multiplied by 2: "head3 = "Multiplied by 10: "NUM_LOOP_START = 0 # Constant used to control loopNUM_LOOP_END = 10 # Constant used to control loopprint("0 through 10 multiplied by 2 and by 10.")# Write your for loop hereint numberCounter; // Numbers 0 through 10int byTen; // Stores the number multiplied by 10int byTwo; // Stores the number multiplied by 2const int NUM_LOOPS = 10; // Constant used to control loop
Engineering
1 answer:
san4es73 [151]3 years ago
8 0

Answer:

  1. for i in range(0,11):
  2.    print("Number: " + str(i) + " | Multiplied by 2: " + str(i * 2) + " | Multiplied by 10: " + str(i*10))

Explanation:

Firstly, create a for loop (Line 1). Since we intend to print 0 through 10, we need values 0 and 11 as parameters of range function. The range(0,11) will create a range of values 0 - 10 (11 not inclusive). The for loop will iterate through the range of values 0 - 11 one by one and then print the original value followed by value multiplied by 2 and also the value multiplied by 10 (Line 2).

You might be interested in
A(n) _____________ is used commonly in open split-phase motors to disconnect the start winding from the electrical circuit when
Alenkasestr [34]

A <u>centrifugal switch</u> is used commonly in open split-phase motors to disconnect the start winding from the electrical circuit when the motor reaches approximately 75% of its rated speed.

Hope that helps!

7 0
3 years ago
What type of engineer makes sure equipment is safe and operational
zvonat [6]

Answer:

mechanical engineer is the best answer

8 0
3 years ago
Decide whether the function is an exponential growth or exponential decay function, and find the constant percentage rate of gro
sasho [114]

Answer:

Just answered this to confirm my profile.

Explanation:

I dont have a clue, this is just to confirm my profile.

8 0
3 years ago
If the channel-Length modulation effect is neglected, ID in the saturation region is considered to be independent of VDS
djverab [1.8K]
The answer is true because if the effect is neglected, the saturation id region is considered true
4 0
3 years ago
Two steel plates are to be held together by means of 16-mm-diameter high-strength steel bolts fitting snugly inside cylindrical
dusya [7]

Answer:

The outer diameter of the spacers that yields the most economical and safe design is 25.03 mm

Explanation:

For steel bolt

Stress = 210 MPa or 210 N/mm2

Pressure = Stress* Area

Pbolt = 210 N/mm2 * 16^2 *(pi)/4

Pbolt = 210 N/mm2 * 200.96 mm^2 = 42201.6  N

For Brass spacer

Pressure = 42201.6  N

Area of Brass spacer = Pressure/Stress

Area of Brass spacer = 42201.6  N/145 N/mm^2 = 291.044 mm^2

Area of Brass spacer = (pi) (d^2 - 16^2)/4 =  291.044 mm^2

d^2 - 16^2 = 291.044 mm^2* 4/(pi) = 370.758

d^2 =  370.758 + 16^2

d^2 =   626.758

d = 25.03 mm

The outer diameter of the spacers that yields the most economical and safe design is 25.03 mm

5 0
3 years ago
Other questions:
  • (a) Draw the Moore finite state machine (FSM) of an electronic combination lock with a RESET button, two number buttons (0 and 1
    12·1 answer
  • Assume the following LTI system where the input signal is an impulse train (i.e.,x(t)=∑????(t−nT0)[infinity]n=−[infinity].a)Find
    10·1 answer
  • Calculate the number of atoms per cubic meter in Metal B (units atoms/m^3). Write your answer with 4 significant figures metal:
    11·1 answer
  • Basic output with variables (Java) This zyLab activity is intended for students to prepare for a larger programming assignment.
    7·1 answer
  • Determine the total condensation rate of water vapor onto the front surface of a vertical plate that is 10 mm high and 1 m in th
    8·2 answers
  • Turbine blades mounted to a rotating disc in a gas turbine engine are exposed to a gas stream that is at [infinity] = 1100°C and
    6·1 answer
  • One who is trained in math, science and physics in order to work in a branch of engineering
    7·2 answers
  • A digital Filter is defined by the following difference equation:
    11·1 answer
  • Cold water at 20 degrees C and 5000 kg/hr is to be heated by hot water supplied at 80 degrees C and 10,000 kg/hr. You select fro
    14·1 answer
  • Is A fine by the EPA may be imposed on the employer or
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!