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 rigid insulated tank is divided into 2 equal compartments by a thin rigid partition. One of the compartments contains air, ass
Illusion [34]
Https://www.slader.com/discussion/question/an-insulated-rigid-tank-is-divided-into-two-equal-parts-by-a-partition-initially-one-part-contains-4/



there will be the answer

6 0
3 years ago
Suppose you must remove an average of 3.9×108J of thermal energy per day to keep your house cool during the summer. Part A If yo
noname [10]

Answer:

The required mechanical work is required to reduce each day by 1.05×10^8 Joules.

Explanation:

Coefficient of Performance (COP) = Q/W

Q is thermal energy absorbed by the air conditioner

W is mechanical work done

Q = 3.9×10^8 J

COP of old air conditioner = 2.3

W = Q/COP = 3.9×10^8/2.3 = 1.70×10^8 J

COP of new air conditioner = 6

W = Q/COP = 3.9×10^8/6 = 6.5×10^7 J

Reduction in mechanical work = (1.7×10^8) - (6.5×10^7) = 1.05×10^8 J

3 0
3 years ago
The position of a particle is given by s = 0.27t
Natali [406]
Sorry bro people do this22.2 pls
8 0
2 years ago
Our rule-of-thumb for presenting final results is to round to three significant digits or four if the first digit is a one. By t
olga_2 [115]

Answer:

To four significant digits = 2097 psi

Explanation:

<u>Applying the rule of thumb </u>

σ = Mc/I  ---- ( 1 )

M = 1835 Ibf in ,  I/c = 0.875 in^3

∴ c/l = 1 / 0.875 = 1.1429

back to equation 1

σ = 1835 * 1.1429 = 2097.2215 psi

To four significant digits = 2097 psi

4 0
3 years ago
7. A single-pole GFCI breaker is rated at
soldi70 [24.7K]
The answer to this question is C
3 0
3 years ago
Other questions:
  • Air flows steadily through a variable sized duct in a heat transfer experiment with a speed of u = 20 – 2x, where x is the dista
    10·1 answer
  • Iven &amp; Find: Compare the average heat transfer coefficients for three different fluids. In all cases the length of the plate
    10·1 answer
  • A steam turbine receives 8 kg/s of steam at 9 MPa, 650 C and 60 m/s (pressure, temperature and velocity). It discharges liquid-v
    7·1 answer
  • Technician A says a "dry park check" is a good way to check ball joints and control arm bushings for looseness. Technician B say
    15·2 answers
  • Compare the use of a low-strength, ductile material (1018 CD) in which the stress-concentration factor can be ignored to a high-
    15·1 answer
  • How is the minimum circuit ampacity for an air-conditioning condensing unit calculated?
    7·1 answer
  • Hey answr this sajida Yusof
    15·2 answers
  • Okay<br>going offline bye<br>have a great day​
    10·2 answers
  • when you are performing an advanced filter, in which argument box do you enter the range for the dataset?
    14·1 answer
  • Technician A says that the connecting rod and main bearing caps should be marked before removing to ensure that they can be inst
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!