Counting using while loops-Python (Using Pycharm Community edition) Ask the user for 3 inputs.  Tell them NOT to use ZERO 1) the user inputs the a STARTING number"User, what is the starting number of the range?" -- they enter 12) the user inputs an ENDING number for the loop. User, what is the ending number of the range?" --- they enter 103) the user inputs the  INCREMENT for the counter (increments of 1, 3, 4, 6, etc).  User, what is the increment of the range?" --- they enter 2(Go back and look at the previous work on RANGE)   Using inputs, you will create FOUR while loops.  Each loop will look similar in style to this :   while a <= ?:     print (a)     a = a + ?   Loop 1 and Loop 2 will use addition and multiplication to increase the count Loop 3 and Loop 4 will use subtraction and division to decrease the count   Use the Starting number and Ending number and increments for ADDING / SUBTRACTING Reverse the Starting number and the Ending number for SUBTRACTION / DIVISION Example: What is your starting number? 1 What is your ending number? 10 What is the increment you are going by? 2   addition and multiplication - starting number and ending number ADDITION a = a + 2    |    MULTIPLICATION a = a * 2   subtraction and division - reverse The ENDING number MUST BE the STARTING number. The STARTING number MUST be the ENDING number. SUBTRACTION   a = a - 2   |     DIVISION    a = a / 2   IDEA : you could set each counter to be a different letter...a = 0 , b = 0, c = 0, d = 0.   Disclaimer - some of the operations do not have to work depending on when numbers are inputted for the start, end and increment

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter5: Looping
Section: Chapter Questions
Problem 7RQ
icon
Related questions
Question
Counting using while loops-Python
(Using Pycharm Community edition)
Ask the user for 3 inputs.  Tell them NOT to use ZERO
1) the user inputs the a STARTING number
"User, what is the starting number of the range?" -- they enter 1
2) the user inputs an ENDING number for the loop. 
User, what is the ending number of the range?" --- they enter 10
3) the user inputs the  INCREMENT for the counter (increments of 1, 3, 4, 6, etc).  
User, what is the increment of the range?" --- they enter 2

(Go back and look at the previous work on RANGE)
 
Using inputs, you will create FOUR while loops.  Each loop will look similar in style to this :
 
while a <= ?:
    print (a)
    a = a + ?
 
Loop 1 and Loop 2 will use addition and multiplication to increase the count
Loop 3 and Loop 4 will use subtraction and division to decrease the count
 
Use the Starting number and Ending number and increments for ADDING / SUBTRACTING
Reverse the Starting number and the Ending number for SUBTRACTION / DIVISION

Example:
What is your starting number? 1
What is your ending number? 10
What is the increment you are going by? 2
 
addition and multiplication - starting number and ending number
ADDITION a = a + 2    |    MULTIPLICATION a = a * 2
 
subtraction and division - reverse
The ENDING number MUST BE the STARTING number.
The STARTING number MUST be the ENDING number. 
SUBTRACTION   a = a - 2   |     DIVISION    a = a / 2
 
IDEA : you could set each counter to be a different letter...
a = 0 , b = 0, c = 0, d = 0.
 
Disclaimer - some of the operations do not have to work depending on when numbers are inputted for the start, end and increment
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Types of Loop
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning