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
Atmospheric air has a temperature (dry bulb) of 80° f and a wet bulb temperature of 60° f when the barometric pressure is 14.696 psia. determine the specific humidity, grains/lb dry air. a. 11.4 c. 55.8 d. 22.5 b. 44.1
Answers: 1
question
Engineering, 04.07.2019 18:20
An open feedwater heater operates at steady state with liquid entering at inlet 1 with t? = 40°c and pl = 1 .2 mpa. water vapor att2-200°c and p2 = 1.2 mpa enters at inlet 2. saturated liquid water exits with a pressure of pa 1.2 mpa. neglect heat transfer with the surroundings and all kinetic and potential energy effects, determine the mass flow rate of steam at inlet 2 if the mass flow rate of liquid water at inlet 1 is given as 2 kg/s.
Answers: 3
question
Engineering, 04.07.2019 19:10
Tom is having a problem with his washing machine. he notices that the machine vibrates violently at a frequency of 1500 rpm due to an unknown rotating unbalance. the machine is mounted on 4 springs each having a stiffness of 10 kn/m. tom wishes to add an undamped vibration absorber attached by a spring under the machine the machine working frequency ranges between 800 rpm to 2000 rpm and its total mass while loaded is assumed to be 80 kg a) what should be the mass of the absorber added to the machine so that the natural frequency falls outside the working range? b) after a first trial of an absorber using a mass of 35 kg, the amplitude of the oscillation was found to be 10 cm. what is the value of the rotating unbalance? c) using me-3.5 kg.m, find the optimal absorber (by minimizing its mass). what would be the amplitude of the oscillation of the absorber?
Answers: 3
question
Engineering, 04.07.2019 19:10
Ahelical coil spring has a mean diameter of 50 mm, a wire diameter of 5.5 mm and is wound with a pitch of 10 mm. the spring steel has an ultimate strength of 1250 mpa. find the force needed to compress the spring solid and the wire stress in this condition. state whether the spring will return to its initial length.
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