Question: HELP PLEASE I ' m suppose to print a list of integers and the factorial of one less than the number on the line beside

HELP PLEASE I'm suppose to print a list of integers and the factorial of one less than the number on the line beside it but the code is wrong. SFT221 Workshop 4 Learning Outcomes Recognize common bugs, Fix common bugs, Learn debugging techniques. Instructions The following program is supposed to print a list of integers and the factorial of one less than the number on the line beside it. Unfortunately, some bugs have crept into the program. You should: Run the program and see how it works, Look for bug clues that were covered in the lectures, Use whatever debugging techniques you want to find the bugs, Fix the bug(s), Repeat steps above until all bugs are fixed. #define _CRT_SECURE_NO_WARNINGS #include #define MAX_FACTORIALS 10000 #define NUM_FACTS 100 struct FactorialResults int results[MAX_FACTORIALS]; int numResults; ; int factorial(const int n) return (n <= n)? n * factorial(n -1) : 1; int reduceFactorial(const int n) return n / n; void computeFactorials(struct FactorialResults results, int numFactorials) int i; for (i =0; i < numFactorials; i++) results.results[i]= factorial(i); results.numResults = numFactorials; int main(void) struct FactorialResults results =0,0 ; int i; computeFactorials(results, NUM_FACTS); for (i =0; i < NUM_FACTS; i++) results.results[i]= reduceFactorial(results.results[i]); printf("

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!