2 Multiply.py - This program prints the numbers 0 through 10 along Summary 3 with these values multiplied by 2 and by 10. 4 Input: None. In this lab, you use a counter-controlled while loop in a 5 Output: Prints the numbers 0 through 10 along with their values multi Python program. When completed, the program should 6 2 and by 10. print the numbers 0 through 10, along with their values 8 multiplied by 2 and by 10. The data file contains the 9 necessary variable declarations and output statements. 10 head1 = "Number: " 11 head2 = "Multiplied by 2: " 12 head3 = "Multiplied by 10: 13 NUM_LOOPS = 10 # Constant used to control loop. Instructions 1. Make sure the file Multiply.py is selected and opened. 14 15 print("0 through 10 multiplied by 2 and by 10" + "\n") 16 2. Write a counter-controlled while loop that uses the loop control variable ( numberCounter ) to take on 17 # Initialize loop control variable. 18 # Write your counter controlled while loop here the values O through 10. 19 # Multiply by 10. 20 # Multiply by 2. print(headl + str(numberCounter)) print(head2 + str(byTwo)) print(head3 + str(byTen)) 3. In the body of the loop, multiply the value of the loop 21 control variable by 2 and by 10. Remember to change 22 the value of the loop control variable in the body of 23 the loop. 24 # Next number. 25 4. Execute the program by clicking the Run button at the bottom of the screen.
2 Multiply.py - This program prints the numbers 0 through 10 along Summary 3 with these values multiplied by 2 and by 10. 4 Input: None. In this lab, you use a counter-controlled while loop in a 5 Output: Prints the numbers 0 through 10 along with their values multi Python program. When completed, the program should 6 2 and by 10. print the numbers 0 through 10, along with their values 8 multiplied by 2 and by 10. The data file contains the 9 necessary variable declarations and output statements. 10 head1 = "Number: " 11 head2 = "Multiplied by 2: " 12 head3 = "Multiplied by 10: 13 NUM_LOOPS = 10 # Constant used to control loop. Instructions 1. Make sure the file Multiply.py is selected and opened. 14 15 print("0 through 10 multiplied by 2 and by 10" + "\n") 16 2. Write a counter-controlled while loop that uses the loop control variable ( numberCounter ) to take on 17 # Initialize loop control variable. 18 # Write your counter controlled while loop here the values O through 10. 19 # Multiply by 10. 20 # Multiply by 2. print(headl + str(numberCounter)) print(head2 + str(byTwo)) print(head3 + str(byTen)) 3. In the body of the loop, multiply the value of the loop 21 control variable by 2 and by 10. Remember to change 22 the value of the loop control variable in the body of 23 the loop. 24 # Next number. 25 4. Execute the program by clicking the Run button at the bottom of the screen.
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
The information on this is not giving me a idea on this

Transcribed Image Text:2 Multiply.py - This program prints the numbers 0 through 10 along
Summary
3
with these values multiplied by 2 and by 10.
4 Input: None.
In this lab, you use a counter-controlled while loop in a
5 Output: Prints the numbers 0 through 10 along with their values multipli
Python program. When completed, the program should
6
2 and by 10.
print the numbers 0 through 10, along with their values
8
multiplied by 2 and by 10. The data file contains the
9
necessary variable declarations and output statements.
10 headl = "Number: "
11 head2 = "Multiplied by 2: "
Instructions
12 head3 = "Multiplied by 10:
13 NUM_LOOPS = 10
II
# Constant used to control loop.
14
1. Make sure the file Multiply.py is selected and opened.
15 print("0 through 10 multiplied by 2 and by 10" + "\n")
2. Write a counter-controlled while loop that uses the
16
loop control variable ( numberCounter ) to take on
17 # Initialize loop control variable.
18 # Write your counter controlled while loop here
the values 0 through 10.
19
# Multiply by 10.
# Multiply by 2.
print(headl + str(numberCounter))
print (head2 + str(byTwo))
print(head3 + str(byTen))
20
3. In the body of the loop, multiply the value of the loop
21
control variable by 2 and by 10. Remember to change
22
the value of the loop control variable in the body of
23
the loop.
24
# Next number.
25
4. Execute the program by clicking the Run button at the
bottom of the screen.
Grading
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY