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
48/64 reduced to its lowest term
QveST [7]

Answer:

3/4

Explanation:

48/64 = 3/4

5 0
3 years ago
Read 2 more answers
A 300 mm long steel bar with a square cross section (25 mm per edge) is pulled in tension with a load of 83,051 N , and experien
umka2103 [35]

Answer:

the answer is attached with required units.

Explanation:

5 0
3 years ago
Proper handling of blueprints includes which of the following
marta [7]

Answer:

folding plans neatly after use

3 0
3 years ago
Which of the following refers to a full-scale version of a product used to validate performance?
kompoz [17]
I’m thinking it would be c sorry if it’s wrong .
4 0
3 years ago
Read 2 more answers
A steady stream (1000 kg/hr) of air flows through a compressor, entering at (300 K, 0.1 MPa) and leaving at (425 K, 1 MPa). The
AleksandrR [38]

Answer:

The work furnished by the compressor is 69.77kJ/s

The minimum work required for the state to change is 55.26kW

Explanation:

The explanation to these solution is on the first, second , third and fourth uploaded image respectively

8 0
3 years ago
Other questions:
  • There are two piston-cylinder systems that each contain 1 kg of an idea gas at a pressure of 300 kPa and temperature of 350 K. T
    8·1 answer
  • A parison is extruded from a die with outside diameter = 11.5 mm and inside diameter = 7.5 mm. The observed die swell = 1.25. Th
    8·1 answer
  • What is measurement in term of electrical engineering ​
    5·1 answer
  • A heat engine does 210 J of work per cycle while exhausting 440 J of waste heat. Part A What is the engine's thermal efficiency?
    6·1 answer
  • A random sample of 5 hinges is selected from a steady stream of product from a punch press, and the a. b. proportion nonconformi
    12·1 answer
  • You apply a force of 19 lbs on to the end of a lever to lift a crate. The resistance of the load is 106 lbs. Calculate the
    13·1 answer
  • If my current directory is ‘AR’ write the path for my current directory
    5·1 answer
  • Two ball bearings from different manufacturers are being considered for a certain application. Bearing A has a catalog rating of
    10·1 answer
  • 1. Làm thế nào để đảm bảo tính khả thi của văn bản hành chính ?
    12·1 answer
  • Label each of the line types in the drawing below. ( will not mark you brainlest or whatever if you don't at least try to help)
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!