Question: 2 . Write a C + + program that uses five value return functions, to implement the following five functions: F 1 ( N )

2. Write a C++ program that uses five value return functions, to implement the following five functions:
F1(N)= N1.5
F2(N)= NlgN (lgN = logN/log2)
F3(N)=(1.2)N
F4(N)= NN
F5(N)= N3
Assume return value for each function will be the ceiling of the number. The return values from the function should be integer. To take a ceiling of a real number (ceiling is the largest integer which is equal or higher than a number), can be found by using math function ceil(number)
Then in main, prepare a table with values of N from 10 to 200 in steps of 10 by calling each of the function from an output statement.
Your output should look like:
N F1 F2 F3 F4 F5

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 Programming Questions!