Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In C Programming: A common statistical problem is to determine how many ways n objects can be selected from a group of m objects. The
In C Programming:
A common statistical problem is to determine how many ways n objects can be selected from a group of m objects. The number of such possibilities is given by the formula m! n! (m -n! where y!= y x (y 1) ~ (y-2) ...X1 e.g. 4! = 4*3*2*1 = 24 Write a function that accepts values for n and m, calculates the possibilities, and prints the number possibilities inside the function. Ask the user to enter the values of n and m in main() and call the function from main(). Test case: use your program to determine the number of ways 5 people can be selected from a group of 10 - do not hard-code the values, you must use printf() /scanf() to prompt the user and accept the values. Write a function that evaluates the equation y = 10x2 + 3x 2, the function should take as input: the starting value of x, the ending value of x, and the increment allow the user to use 0.5 or 1.0 as the increment). The function should print a table of x and y values. Ask the user to enter the star, end, and increment values in main() and call the function from main(). Test case: use your program to evaluate the function from 2.0 to 6.0 in increments of 0.5 do not hard- code the values, you must use printf() /scanf() to prompt the user and accept the three values. In this case, your function should print to screen: X value 2.0 2.5 Nmmtinin y value 44.00 68.00 97.00 131.00 170.00 214.00 263.00 317.00 376.00 5.5 6.0 Write a function named payment() that has three parameters named principal, which is the amount financed; intRate, which is the monthly interest rate; and months which is the number of months the loan is for. The function should return the monthly payment according to the following formula: Principal 1 payment = - intRate intRate x (1 + intRate months Your program should prompt the user for the three parameters, call the payment() function, and print the payment in main()Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started