subject
Engineering, 02.03.2020 20:56 Queenquestion5967

PYTHON:In this lab the completed program should print the numbers 0 through 10, along with their values multiplied by 2 and by 10. 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

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:10
The drive force for diffusion is 7 fick's first law can be used to solve the non-steady state diffusion. a)-true b)-false
Answers: 1
question
Engineering, 04.07.2019 18:10
At 12 noon, the count in a bacteria culture was 400; at 4: 00 pm the count was 1200 let p(t) denote the bacteria cou population growth law. find: (a) an expression for the bacteria count at any time t (b) the bacteria count at 10 am. (c) the time required for the bacteria count to reach 1800.
Answers: 1
question
Engineering, 04.07.2019 18:10
Carbon dioxide gas expands isotherm a turbine from 1 mpa, 500 k at 200 kpa. assuming the ideal gas model and neglecting the kinetic and potential energies, determine the change in entropy, heat transfer and work for each kilogram of co2.
Answers: 2
question
Engineering, 04.07.2019 18:10
Ifa component is made of two or more materials with different modulus of elasticity (e), it is called a composite member and we calculate the factor·n". mention the formula for calculating n". also, ifn> 1, explain what will happen to the 1. transformed.gi) ifn 1, what will happen to the material when transformed material when
Answers: 1
You know the right answer?
PYTHON:In this lab the completed program should print the numbers 0 through 10, along with their val...
Questions
question
Mathematics, 24.02.2021 23:20
question
English, 24.02.2021 23:20
Questions on the website: 13722359