Question: C++ for Engineers (MAC 102) Professor: Andi Toce Homework 4 Modify the program below so that it uses a non-recursive solution. You will end up

C++ for Engineers (MAC 102) Professor: Andi Toce Homework 4 Modify the program below so that it uses a non-recursive solution. You will end up having to write more code. (Hint: To make the job easier, write two functions: get alldivisors and get_lowest_divisor. The main function should call get_all_divisors, which in turn has a loop get_all divisors calls get_lowest divisor repeatedly, each time replacing n with n/i, where i is the divisor that was found. If n itself is returned, then the number is prime, and the loop should stop PrimeFactorizationRecursive.cpp Output include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
