Question: 4 Algorithm Get a number from the user o o o Verify that it is in the range 2 to 10,000, inclusive If out of

4 Algorithm Get a number from the user o o o Verify that it is in the range 2 to 10,000, inclusive If out of range, display error message, get new input Repeat until valid number entered Find and display all whole numbers that evenly divide into the input value o If there are no divisors, don't print anything other than newline Ask the user if they want to do another o If they enter 'y'(yes), go back to the initial prompt and input, otherwise end program Since every number is divisible by 1 and by itself, don't test with or include those values in the output. Write a program to implement the algorithm above Things to consider before you start: . How do you determine that one number divides evenly into another? . What type loop will you use for the testing? Do you have to test the full range of the input number? What should your stopping point be? Write the program so that input prompts and results display similar to the following (user inputs in bold italic) Sample run Enter number to test, must be positive,
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
