You have been given a program Lab01_P2.c that computes the prime factorization of a hardcoded integer value.
Question:
You have been given a program Lab01_P2.c that computes the prime factorization of a hardcoded integer value. This program does not work in its current state: it has 1 syntax error (this will cause the project build to fail) and 1 logical error (once built & run, the program output is incorrect). You are free to make any changes necessary to correct the program, provided the correct output will still be given if the input value is changed. An example of correct program output is shown below: Input value: 84 Output factors: 2 2 3 7 Please also measure the number of clock cycles taken by the function call get_prime_factors() for at least two different input values, and include these measurements in your report. How does the input value affect the number of cycles taken
Auditing The Art and Science of Assurance Engagements
ISBN: 978-0133405507
13th Canadian edition
Authors: Alvin A. Arens, Randal J. Elder, Mark S. Beasley, Joanne C. Jones