[solved]-Task 2 Instructions 1 Write Program Following 2 Prompt User Positive Integer Greater 1 San Q38994250
myboard is a KL46Z freedom board i need help new to coding
Task #2 Instructions 1. You are to write a program to do the following. 2. Prompt the user for a positive integer greater than 1 and sanity- check the input. 3. Calculate the smallest factor of the number (other than 1). 4. Using some reasonable message, the smallest factor is to be output to the user. 5. Divide the number by the smallest factor to generate a new integer and repeat the process, finding the smallest factor of the new number. 6. Repeat until the smallest factor is equal to the number itself. 7. For example, if the user initially entered 30, the smallest factor found would be 2, leaving a new number of 15. The smallest factor found would be 3, leaving a number of 5. The smallest factor found would be 5 and the program would end. Show transcribed image text Task #2 Instructions 1. You are to write a program to do the following. 2. Prompt the user for a positive integer greater than 1 and sanity- check the input. 3. Calculate the smallest factor of the number (other than 1). 4. Using some reasonable message, the smallest factor is to be output to the user. 5. Divide the number by the smallest factor to generate a new integer and repeat the process, finding the smallest factor of the new number. 6. Repeat until the smallest factor is equal to the number itself. 7. For example, if the user initially entered 30, the smallest factor found would be 2, leaving a new number of 15. The smallest factor found would be 3, leaving a number of 5. The smallest factor found would be 5 and the program would end.
Expert Answer
Answer to Task #2 Instructions 1. You are to write a program to do the following. 2. Prompt the user for a positive integer greate… . . .
OR

