This is an easy functionsprograming problem I was ill and didn\'t go class so Ic
ID: 3614273 • Letter: T
Question
This is an easy functionsprograming problem
I was ill and didn't go class so Ican't solve it. I need help before 10 PM today.
It's about atemplateprogram that I have tomodify.
The template program is at theend of this post.
a template that contains a programmer-built function forfactorial. You will modify this program by adding anotherfunction that will perform the following calculation forcombinations
You will modify this program by adding another function thatwill perform the following calculation for combinations:
where n and k are integer values.
Your new function should be called from main and will call thefactorial function. Your new function should return thecalculation above to main, and main should output the result. Do NOT use the same identifier (variable name) in more than onefunction. Make sure you have some test data before you try towrite the program.
Hint: Complete this assignment in two steps. In thefirst step write the new function to do the division
and test it. Once your program is performing thiscalculation correctly, then modify the numerator and denominator ofthe fraction to call the factorial function.
Things to think about….