Question: 1) User Requirements: Create a program that will: a) Allow the user to enter a number between 100 and 1000 b) Allow the user to
1) User Requirements: Create a program that will:
a) Allow the user to enter a number between 100 and 1000
b) Allow the user to enter a possible factor of the number
c) Display whether the possible factor is or is not an actual factor of the original number
d) If the possible factor is an actual factor, display whether or not it is the square root of the original number
2) Technical Requirements:
a) Use input statements for both numbers
b) If number is less than 100 or greater than 1000, print an error message
c) Use the modulus operator and decision statements to determine whether second number is a factor of first number
d) If the second number is factor of the first, use decision statements to determine whether second number is or is not the square root of the first number
3) Follow standard programming procedures including initializing all variables prior to usage, variable naming conventions, use of constants where appropriate, code separated into IPO sections, and appropriate comments.
4) NOTE: Do not use any Python programming techniques that we have not yet covered in class. This includes lists, arrays, functions and tuples.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
