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 03:10
What precautions should you take to prevent injuries when dealing with heavy loads?
Answers: 1
question
Engineering, 04.07.2019 16:10
The force on a cutting tool are 2600n vertically downward and 2100 horizontal. determine the resultant force acting on the tool and the angle at which it acts.
Answers: 1
question
Engineering, 04.07.2019 18:10
Coiled springs ought to be very strong and stiff. si3n4 is a strong, stiff material. would you select this material for a spring? explain.
Answers: 2
question
Engineering, 04.07.2019 18:10
Afour cylinder four-stroke in-line engine has a stroke of 160mm, connecting rod length of 150mm, a reciprocating mass of 3kg and its firing order is 1-3-4-2. the spacing between cylinders is 100mm. i. show that the engine is in balance with regard to the primary inertia forces and primary 3. a and secondary inertia couples. li determine the out of balance secondary inertia force ii. propose ways of balancing this out of balance force and discuss the challenges that will arise
Answers: 3
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
Computers and Technology, 26.08.2021 20:30
question
Mathematics, 26.08.2021 20:30
question
Mathematics, 26.08.2021 20:30
question
Mathematics, 26.08.2021 20:30
Questions on the website: 13722362