Overview This program will prompt a user for a start and a limit, it will then while-loop through, doubling the iterator each pass, until the limit is reached. Expected Output Example 1 Enter the start of the loop: Enter the limit of the loop: The current value is 3 The current value is 6 The current value is 12 The current value is 24 The last value of current that was less than 25 was 24 Example 2 Enter the start of the loop: 25 Enter the limit of the loop: The current value is 25 The current value is 50 The current value is 100 The last value of current that was less than 102 was 100 Specifications • You should submit a single file called M5A2.py • It should follow the submission standards outlined here: Submission Standards • Your program populate an integer named start using input • Your program populate an integer named limit using input • Your program must use an iterator named current • Your program must move through the values using a while-loop Tips and Tricks That last print statement will require some backward-math and casting. It's not hard, but it's there

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter5: Looping
Section: Chapter Questions
Problem 3RQ
icon
Related questions
Question
Overview
This program will prompt a user for a start and a limit, it will then while-loop through, doubling the iterator each pass, until the limit is reached.
Expected Output
Example 1
Enter the start of the loop:
Enter the limit of the loop: 25
The current value is 3
The current value is 6
The current value is 12
The current value is 24
The last value of current that was less than 25 was 24
Example 2
Enter the start of the loop: 25
Enter the limit of the loop: 102
The current value is 25
The current value is 50
The current value is 100
The last value of current that was less than 102 was 100
Specifications
• You should submit a single file called M5A2.py
• It should follow the submission standards outlined here: Submission Standards
Your program populate an integer named start using input
• Your program populate an integer named limit using input
Your program must use an iterator named current
Your program must move through the values using a while-loop
Tips and Tricks
That last print statement will require some backward-math and casting. It's not hard, but it's there
Transcribed Image Text:Overview This program will prompt a user for a start and a limit, it will then while-loop through, doubling the iterator each pass, until the limit is reached. Expected Output Example 1 Enter the start of the loop: Enter the limit of the loop: 25 The current value is 3 The current value is 6 The current value is 12 The current value is 24 The last value of current that was less than 25 was 24 Example 2 Enter the start of the loop: 25 Enter the limit of the loop: 102 The current value is 25 The current value is 50 The current value is 100 The last value of current that was less than 102 was 100 Specifications • You should submit a single file called M5A2.py • It should follow the submission standards outlined here: Submission Standards Your program populate an integer named start using input • Your program populate an integer named limit using input Your program must use an iterator named current Your program must move through the values using a while-loop Tips and Tricks That last print statement will require some backward-math and casting. It's not hard, but it's there
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 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
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning