Answered step by step
Verified Expert Solution
Question
1 Approved Answer
General Requirements 1 . This assignment is to be completed individually. Group submissions will not be considered. 2 . Analyze the problem, design a documented
General Requirements
This assignment is to be completed individually. Group submissions will not be considered.
Analyze the problem, design a documented plan ie flowchart or pseudocode code and test a solution
following the stepbystep approach presented in this course.
Submit your solution and plan to the appropriate assignment folder on DC Connect by the due date
provided.
Your instructor will assign a grade and post feedback on your submission to DC Connect.
Program Requirements
For this lab you will create a simple console application using Python that will graphically display all the square
numbers within a range provided by the user. For our purposes, a square number is any number that can be
computed by multiplying a whole number by itself. The first several square numbers are squared
squared squared and squared This assignment will provide you with the opportunity to design
program logic with both individual and nested loops. It should also reinforce the timesaving value of planning
before you code.
Getting User Input:
In the input phase of the program, display a bannerlike header and then prompt the user for the bottom limit
and the top limit to the numbers they want to investigate. The lower limit must be a whole number between the
range of and inclusive, and the upper limit must be between the lower limit and inclusive. Should
the user enter something other than a valid, inrange number, then display an appropriate message that
describes the problem and give the user the opportunity to input the limit again.
You will need to use try except or another means verifying whether the user input is numeric and a whole
number. Also, make sure that no processing occurs until the application has valid input.
The example below shows multiple invalid inputs; match this as closely as possible:
Assignment : Square Numbers Iteration
Assignment for COSC Intro to Programming
Final Output:
Once you have valid input, you will produce a list of all square numbers between the users entered lower bound
and upper bound. Start by displaying Square numbers between including the boundaries entered. In addition
to displaying the square number, you will also display the square root of the number that it is the square of
The following output example shows what your program should produce if the user entered boundaries were
and ; match this as closely as possible:
At the end, be sure to use input or something similar to wait before closing the program.
Style Guide Notes
To be eligible for full marks on this or any assignment in this course your application must conform to the
requirements as outlined above as well as our prescribed style guide, in this case making sure to observe the
PEP naming conventions for Python as well as appropriate and complete program documentation.
Development Hints
You may be tempted to utilize parts of your existing work or demo code as a starting point for this project.
Expect differences! It is strongly recommended that you code this assignment following the from plan to
program process from the beginning.
Remember that the aim of this lab is to have you practice using loops. There is more than one opportunity to do
so in this problem. An efficient, working solution will probably involve at least three different loops. If you find
yourself writing consecutive ifelif blocks you are taking the wrong approach
PLEASE DONT USE AN INFINTE LOOP
My previous code was missing :
Planning and Preparation
Missing Desk Check
Missing Flow Chart or PseudoCode
Naming Conventions, Declarations, and Documentations
Documentation incomplete
Missing Comment Header
Please explain the code too
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started