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
I) A sag vertical curve is to be designed to join a 4% grade to a 2% grade. If the design
Burka [1]

Answer:

=4/5 because I'm not going to go back in a year meaning that they are you are

4 0
2 years ago
The four strokes in a four stroke cycle engine in proper order.
Morgarella [4.7K]

Answer:

A four-stroke cycle engine is an internal combustion engine that utilizes four distinct piston strokes (intake, compression, power, and exhaust) to complete one operating cycle. The piston make two complete passes in the cylinder to complete one operating cycle.

Explanation:

6 0
3 years ago
What is Pressure measured from absolute zero pressure called?
7nadin3 [17]
Anything greater than total vacuum is technically a form of pressure
5 0
3 years ago
A distillation column is initially designed to separate a mixture of toluene and xylene at around ambient temperature (say, 100°
weeeeeb [17]

Answer:

Purchase cost= 87056

Bar module cost= 292725

Explanation:

solution is attached below

6 0
3 years ago
If a vacuum gau ge reads 9.62 psi, it means that: a. the very highest column of mercury it could support would be 19.58 inches.
scZoUnD [109]

Answer:All of the above

Explanation:

9.62 psi means 497.49 mm of Hg pressure

for (a)19.58 inches is equals to 497.49 mm of Hg

(b)atmospheric pressure is 14.69 psi

vaccum gauge is 9.62psi

absolute pressure is=14.69-9.62=5.07

(c)vaccum means air is sucked and there is negative pressure so it tells about below atmospheric pressure.

thus all are correct

8 0
3 years ago
Other questions:
  • Determine displacement (in) of a 1.37 in diameter steel bar, which is 50 ft long under a force of 27,865 lb if elasticity modulu
    5·1 answer
  • If you’re designing a new pair of shoes, what are some things you’ll have to think about ??
    6·2 answers
  • Compute the estimated actual endurance limit for SAE 4130 WQT 1300 steel bar with a rectangular cross section of 20.0 mm by 60 m
    11·1 answer
  • QUESTIONS
    12·1 answer
  • With a brief description, What are the 14 principles of management by fayol.​
    10·1 answer
  • Nitrogen gas is compressed at steady state from a pressure of 14.2 psi and a temperature 60o F to a pressure of 120 psi and a te
    7·1 answer
  • Please help me with this. Picture
    10·1 answer
  • The annual average of solar photovoltaic energy in Phoenix is 6,720
    8·1 answer
  • 1. You are asked to write a report about one of the structures that Transportation Engineers
    9·1 answer
  • (a) calculate the moment at point "c", where point "c" is the square 3'' below the centroid
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!