Answered step by step
Verified Expert Solution
Link Copied!

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:image text in transcribedimage text in transcribedimage text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2016 Riva Del Garda Italy September 19 23 2016 Proceedings Part 3 Lnai 9853

Authors: Bettina Berendt ,Bjorn Bringmann ,Elisa Fromont ,Gemma Garriga ,Pauli Miettinen ,Nikolaj Tatti ,Volker Tresp

1st Edition

3319461303, 978-3319461304

More Books

Students also viewed these Databases questions

Question

(a) What model can you fit with the original 42 experiment? Pg45

Answered: 1 week ago

Question

Determine miller indices of plane A Z a/2 X a/2 a/2 Y

Answered: 1 week ago

Question

1. Define mass and mediated communication

Answered: 1 week ago